Avatar of Rayne
Rayne
Flag for United States of America asked on

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
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
Subodh Tiwari (Neeraj)

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

Rayne

ASKER
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
ASKER CERTIFIED SOLUTION
Subodh Tiwari (Neeraj)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Rayne

ASKER
thank you :)
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Subodh Tiwari (Neeraj)

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