# Counting results using SUMPRODUCT

#### Andrew Barbaro

##### New Member
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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

#### krisso

##### Active Member
Can you not use =countif(H1:H25000>=.01) so if there is a balance over this amount it will count the cell

#### fairwinds

##### MrExcel MVP
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))

### Similar threads

Replies
2
Views
163
Replies
68
Views
1K
Replies
8
Views
383
Replies
1
Views
266
Replies
4
Views
119

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Threads
1,163,502
Messages
5,832,099
Members
430,111
Latest member
Francis Xavier

### 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

### 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