Count If

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to Count the Sales Only that DO Not Have a Sale in B. So it
would only count the Blank sales.

A B
1 Sales
2 Supply 3
3 Sales 3
4 Supply

Total With No Sales:1

Any help would be great!!
 
One way ..

Assume this data is in Sheet1
A B
1 Sales
2 Supply 3
3 Sales 3
4 Supply

In Sheet2
-------------
Put in A1: Sales, in A2: Supply, etc

Put in B1:
=SUMPRODUCT((Sheet1!$A$1:$A$100=TRIM(A1))*ISBLANK(Sheet1!$B$1:$B$100))
Copy down

Col B will return the number of "blank" Sales, Supply, etc from Sheet1

Adapt the ranges to suit ..
(but note that you can't use entire col references "A:A, B:B" etc in
SUMPRODUCT )
 
MAX I would like it to Only Count the Blank "Sales" Only.

Can this be done?

Thanks for your Help!!!!!!
 
... I would like it to Only Count the Blank "Sales" Only.

well, you could put in say cell B20 on the same sheet as the data:
=SUMPRODUCT(($A$1:$A$10="Sales")*ISBLANK($B$1:$B$10))

It's the same formula given earlier in Sheet2's B1, except that
it's now hardcoded and designed to fit your layout <g>

Adapt the ranges to suit ..
 
Typo:
=SUMPRODUCT((A1:A100="Sales)*ISBLANK(B1:B100))
should be
=SUMPRODUCT((A1:A100="Sales")*ISBLANK(B1:B100))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top