SUMIF / SUMPRODUCT multiple criteria

Hedwardson

New Member
Joined
Jul 12, 2017
Messages
5
Hello,

I have included the formulae I am using below. The one I am not happy with is the one in bold.
Currently this picks up all items with a Vendor (col O) of 'CASH', but this double counts the codes listed (col H).
I would like help with a formula to look at the 'CASH' (col O) and EXCLUDE any of the accounts listed (col H).

Thanks in advance.
Hayley
Total Accruals Report
=SUM(NS5_Data!$N$2:$N$6000)
A/cs not to accrue
330
=SUMPRODUCT((LEFT(NS5_Data!$H$2:$H$6000,3)=B5&"")*NS5_Data!$N$2:$N$6000)
430
=SUMPRODUCT((LEFT(NS5_Data!$H$2:$H$6000,3)=B6&"")*NS5_Data!$N$2:$N$6000)
431010
=SUMIF(NS5_Data!$H$2:$H$6000,B7,NS5_Data!$N$2:$N$6000)
431020
=SUMIF(NS5_Data!$H$2:$H$6000,B8,NS5_Data!$N$2:$N$6000)
431030
=SUMIF(NS5_Data!$H$2:$H$6000,B9,NS5_Data!$N$2:$N$6000)
CASH
=SUMIF(NS5_Data!$O$2:$O$6000,B10,NS5_Data!$N$2:$N$6000)
Total Accruals to Post
=+C2-SUM(C5:C10)

<tbody>
</tbody>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Maybe...

=SUMPRODUCT(ISNA(MATCH(LEFT(NS5_Data!$H$2:$H$6000,3),B5:B10&"",0))*ISNA(MATCH(NS5_Data!$H$2:$H$6000&"",B5:B10&"",0)),--(NS5_Data!$O$2:$O$6000=B10),NS5_Data!$N$2:$N$6000)

M.
 
Upvote 0

Forum statistics

Threads
1,216,533
Messages
6,131,216
Members
449,636
Latest member
ajdebm

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