ConditionL sumif or sumproduct

Hi,
I have two sheets. One sheet holds the raw data. The other one is the final display sheet. The display sheet looks up AMT from raw sheet. Now assuming there is an account list that has several folks enlisted with. Each seem to have a definite value for AMT. The only thing is > when we want to display the data in the display sheet, it would be preferred to add up batman and batwomen together as batman’s account and add up their AMT. Please see attached file. How do I do a sum product of some kind that sums up (Batman and batwomen) but looks up other individual amounts as expected?
Thank you
EEcel.xlsx
RayneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Maybe this...
In B2
=SUMPRODUCT((LEFT('Raw Data'!$A$2:$A$8,3)=LEFT(A2,3))*'Raw Data'!$B$2:$B$8)

Open in new window

RayneAuthor Commented:
Hi,
I think we are getting close. But there are several accounts and the two account that I want t group will not always have the first three same letters. So for example see attached
So how to group Ronny and Moniie’s numbers  into Monnie  in the display sheet….how do we do it? So how to mention specially in the sumproduct that add Ronnie and Monnie but do usual for the rest?
EEcel_2.xlsx
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
The formulas are derived on the basis of a logic and we don't have any logic to sum those numbers.
All you can do is, create a helper column and put one identifier for names to be grouped and then you can get the sum for those groups.
See the attached where I have created a helper column on Raw Data Sheet and placed 1 for Batman and Batwomen and 2 for Ronny and Monny. So we are telling Excel to find the numbers for same name group and sum them.
Is that something you can work with?
EEcel-1.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RayneAuthor Commented:
thank you :)
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad I could offer some help. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.