Counting results using SUMPRODUCT

Andrew Barbaro

New Member
Joined
Feb 23, 2004
Messages
15
Code:
=SUMPRODUCT((Ledger!$L$1:$L$25000="D")*(Ledger!$M$1:$M$25000=SalesRefer!$A5)*(Ledger!$AA$1:$AA$25000=1)*(Ledger!$N$1:$N$25000=1)*(Ledger!$O$1:$O$25000=A1),(Ledger!$H$1:$H$25000))

I'm successfully using the above formula to list invoice balances that have been referred to sales people to collect. The references relates to whether or not they are overdue in column AA (1= overdue, anything else is not) etc.

I'd ideally like to be able to count the number of cells satisfying the above criteria that are contained in column H.

Any help gratefully received. Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Can you not use =countif(H1:H25000>=.01) so if there is a balance over this amount it will count the cell
 
Upvote 0
Hi,

If you just remove the last reference in the formula, you should get the count:

=SUMPRODUCT((Ledger!$L$1:$L$25000="D")*(Ledger!$M$1:$M$25000=SalesRefer!$A5)*(Ledger!$AA$1:$AA$25000=1)*(Ledger!$N$1:$N$25000=1)*(Ledger!$O$1:$O$25000=A1))
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

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