ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculating a total with 3 different criterias (https://www.excelbanter.com/excel-discussion-misc-queries/205762-calculating-total-3-different-criterias.html)

Desper84AnAnswer

Calculating a total with 3 different criterias
 
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)

Fred Smith[_4_]

Calculating a total with 3 different criterias
 
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

"Desper84AnAnswer" wrote in
message ...
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)



Sheeloo[_2_]

Calculating a total with 3 different criterias
 
Try
=Sumproduct(--(B1:B100="AS2"),--(D1:D100="MCT"),--(E1:E1000))
This will give you the non zero count

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

Adjust the range according to your data.

There are innumerable posts on SUMPRODUCT on this forum.

"Desper84AnAnswer" wrote:

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)


Desper84AnAnswer

Calculating a total with 3 different criterias
 
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

"Fred Smith" wrote:

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

"Desper84AnAnswer" wrote in
message ...
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)




Pete_UK

Calculating a total with 3 different criterias
 
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

On Oct 10, 2:09*am, Desper84AnAnswer
wrote:
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



"Fred Smith" wrote:
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


"Desper84AnAnswer" wrote in
...
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)- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 03:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com