ConditionL sumif or sumproduct

Rayne
Rayne used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
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

Author

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
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
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

Author

Commented:
thank you :)
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome. Glad I could offer some help. :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial