Count Formula

chrysti

Board Regular
Joined
Dec 20, 2006
Messages
218
I am using a sumproduct (without the range to sum) to count a list of information that I have, but the issue that I am having is that because this list has everything that we carry and who we have sold it to, things appear in the list more than once. I only want to know how many different items we sold, not how many times we sold that item...is there anyway to get the formula to count only the first time that it encounters a style on the list? They all have different names so it is hard to say only count this, because I am wanting to do it for hundreds of different styles and thousands of sales.

Thanks in advace for the help
Chrysti
 
SUMPRODUCT(--(Season1!$A$2:$A$65536=COVER!$B$11),--(Season1!$B$2:$B$65536=COVER!C$14),--(Season1!$C$2:$C$65536=COVER!C$15),--(Season1!$H$2:$H$65536=$A16),--(Season1!$F$2:$F$65536=COVER!$C$11),--(Season1!$E$2:$E$65536=1),(Season1!$D$2:$D$65536<>""))/COUNTIF(Season1!$D$2:$D$65536,Season1!$D$2:$D$65536&"")

This is what I have tried and it doesn't work :( but I need to have all of these filters in place so that I only get the information that I want!

Help please

Thanks
Chrysti
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Maybe you have one parenthesis in the wrong place:

=SUMPRODUCT(--(Season1!$A$2:$A$65536=COVER!$B$11),--(Season1!$B$2:$B$65536=COVER!C$14),--(Season1!$C$2:$C$65536=COVER!C$15),--(Season1!$H$2:$H$65536=$A16),--(Season1!$F$2:$F$65536=COVER!$C$11),--(Season1!$E$2:$E$65536=1),(Season1!$D$2:$D$65536<>""))/COUNTIF(Season1!$D$2:$D$65536,Season1!$D$2:$D$65536&"")

Try this:

=SUMPRODUCT(--(Season1!$A$2:$A$65536=COVER!$B$11),--(Season1!$B$2:$B$65536=COVER!C$14),--(Season1!$C$2:$C$65536=COVER!C$15),--(Season1!$H$2:$H$65536=$A16),--(Season1!$F$2:$F$65536=COVER!$C$11),--(Season1!$E$2:$E$65536=1),(Season1!$D$2:$D$65536<>"")/COUNTIF(Season1!$D$2:$D$65536,Season1!$D$2:$D$65536&""))

I have my fingers crossed!!
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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