Help summing based on two columns

rharper

New Member
Joined
Jul 11, 2005
Messages
6
Hi all. Thanks in advance for any help.

I need to sum information in a new table based on the values in TWO columns in another table that may have duplicates of those two columns. Looking at the tables below, I need a formula in the “Paid to Date” column in Table 2 that will give me the totals from Table 1 for each name but only if both the name matches and the “Paid?” column is set to “Yes.”

Table 1 – Information to gather
[TABLE="width: 395"]
<tbody>[TR]
[TD="width: 183"]Employee
[/TD]
[TD="width: 104"]Payout Due[/TD]
[TD="width: 108"]Paid?[/TD]
[/TR]
[TR]
[TD="width: 183"]Albiston, Jake[/TD]
[TD="width: 104"]200[/TD]
[TD="width: 108"]Yes[/TD]
[/TR]
[TR]
[TD="width: 183"]Anderson, James[/TD]
[TD="width: 104"]100[/TD]
[TD="width: 108"]Yes[/TD]
[/TR]
[TR]
[TD="width: 183"]Anderson, Mindy[/TD]
[TD="width: 104"]200[/TD]
[TD="width: 108"][/TD]
[/TR]
[TR]
[TD="width: 183"]Albiston, Jake[/TD]
[TD="width: 104"]200[/TD]
[TD="width: 108"]Yes[/TD]
[/TR]
[TR]
[TD="width: 183"]Anderson, James[/TD]
[TD="width: 104"]100[/TD]
[TD="width: 108"][/TD]
[/TR]
[TR]
[TD="width: 183"]Anderson, Mindy[/TD]
[TD="width: 104"]200[/TD]
[TD="width: 108"]Yes[/TD]
[/TR]
</tbody>[/TABLE]

Table 2 – Where totals need to go
[TABLE="width: 264"]
<tbody>[TR]
[TD="width: 165"]Name
[/TD]
[TD="width: 99"]Paid to Date[/TD]
[/TR]
[TR]
[TD="width: 165"]Albiston, Jake[/TD]
[TD="width: 99"][/TD]
[/TR]
[TR]
[TD="width: 165"]Anderson, James[/TD]
[TD="width: 99"][/TD]
[/TR]
[TR]
[TD="width: 165"]Anderson, Mindy[/TD]
[TD="width: 99"][/TD]
[/TR]
</tbody>[/TABLE]

“=SUMIF” doesn’t seem to work because I can’t figure out how to give it two parameters. I’m thinking it’s probably some combination of sumif and lookup but I haven’t been able to figure it out.

Any help would be greatly appreciated!
 
Last edited by a moderator:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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