sumprodcut issue

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
hello there

having some issue with a simply sumproduct

=SUMPRODUCT(--('Invoice Count (Combined)'!$A$2:$A$12000=Sheet5!$A14),--('Invoice Count (Combined)'!$D$2:$D$12000=Sheet5!$B$4),('Invoice Count (Combined)'!$F$2:$AW$2=Sheet5!$B$15))

'Invoice Count (Combined)'!$A$2:$A$12000 ...range where country i.e. CA, US etc

A14 = Country i.e. CA, US

'Invoice Count (Combined)'!$F$2:$AW$2=Sheet5!....row where it contains the data i want to obtain, with AW being the header i.e. P7 YTD

$B$15 = P7 YTD (header title)

B4 = Purge (type of invoice - i want by, other than country)

'Invoice Count (Combined)'!$D$2:$D$12000 ...type of invoice i.e. purge, offsite etc.


so im trying to get by country i.e CA, by criteria i.e. purge, the value in sheet Invoice Count (Combined) in cell AW.

can someone pls help me with my logic

thx u so much <!-- / message -->
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Does this work for you?

=SUMPRODUCT(('Invoice Count (Combined)'!$A$2:$A$12000=Sheet5!$A14)*('Invoice Count (Combined)'!$D$2:$D$12000=Sheet5!$B$4)*('Invoice Count (Combined)'!$F$2:$AW$2=Sheet5!$B$15),'Invoice Count (Combined)'!$F$2:$AW$12000)

....or possibly more efficient if there will only be one match for B15 in header row

=SUMPRODUCT(--('Invoice Count (Combined)'!$A$2:$A$12000=Sheet5!$A14),--('Invoice Count (Combined)'!$D$2:$D$12000=Sheet5!$B$4),INDEX('Invoice Count (Combined)'!$F$2:$AW$12000,0,MATCH(Sheet5!$B$15,'Invoice Count (Combined)'!$F$2:$AW$2,0)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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