Sumif / product help

smartphreak

Board Regular
Joined
Mar 24, 2011
Messages
52
Hi all,

I have a challenge that I cannot quite figure out...

COLACOLBCOLC
Ray100,000
MaryRay50,000
JohnSam80,000
Sam60,000

<tbody>
</tbody>

I would like to have a sumproduct or sumif formula that can add up the total amount for each person. Where there are two names on a line, they each have 50% of ColC.

Formula should return:
Ray 125,000
Mary 25,000
John 40,000
Sam 100,00

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I'm sure there's a better way, but this works - assuming your summary is in columns E & F, enter the following into F1 (confirm with ctrl+shift+enter) and copy down to F4:
=SUMPRODUCT(--($A$1:$A$4=E1),--($B$1:$B$4=""),($C$1:$C$4))+SUM(IF($A$1:$A$4=E1,IF($B$1:$B$4<>"",$C$1:$C$4/2)))+SUMIF($B$1:$B$4,E1,C$1:$C$4)/2
 
Upvote 0
The way i just did it. Again CSE:

=SUMPRODUCT(IFERROR((($A$1:$A$10=E1)+($B$1:$B$10=E1))/(($A$1:$A$10<>"")+($B$1:$B$10<>"")),0),$C$1:$C$10)
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,741
Members
449,256
Latest member
Gavlaar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top