Calculating a total with 3 different criterias

D

Desper84AnAnswer

Formula: =COUNTIFS(B:B,"AS2",D:D,"MCT")

In column E (Total amount) - I have dollar values. I want to count all the
cells in this column that has a "$" sign. Or... I want the formula to
subtract any blank cells in this column so that it gives me a total number.
I've tried to use: =COUNTIFS(B:B,"AS2",D:D,"MCT",E:E,"$") - RESULT: "0"
(Which is incorrect)
 
F

Fred Smith

You're telling Countifs to count those cells which contain only a $ sign. If
there's anything else in the cell, it won't be counted. You need to use
wildcards, as in:

=COUNTIFS(B:B,"AS2",D:D,"MCT",E:E,"*$*")

Regards,
Fred
 
S

Sheeloo

Try
=Sumproduct(--(B1:B100="AS2"),--(D1:D100="MCT"),--(E1:E100>0))
This will give you the non zero count

If you want the sum then
Sumproduct(--(B1:B100="AS2"),--(D1:D100="MCT"),--(E1:E100>0),(E1:E100))

Adjust the range according to your data.

There are innumerable posts on SUMPRODUCT on this forum.
 
D

Desper84AnAnswer

Hi Fred

I've tried the formula as advised, but its populating an answer of "0".
It should be "35". (I manually counted it using the filter option) lol!

Is there any other option you can think of?
Am I able to send you a copy of the excel sheet that I'm working on?

Regards
Michaela
 
P

Pete_UK

Are those cellls formatted as currency to show the $, or are they text
values? If the former, then the $ doesn't actually exist within the
cell, so you can't search for it directly.

Pete
 

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

Top