Computing.Net > Forums > Office Software > If.. and if.. and if.. then count

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

If.. and if.. and if.. then count

Reply to Message Icon

Name: Rezix
Date: November 2, 2008 at 21:30:39 Pacific
OS: Microsoft Excel 2003
CPU/Ram: Excel
Product: Microsoft
Comment:

Hey guys,

Firstly just wanted to say a big thanks to "DerbyDad03" for the help with my issue a while back - http://www.computing.net/answers/of...

Suggestion worked like a charm and I was able to get the excel formula up and running, which saved me a lot of time!!!

Secondly, just hoping someone can shed some light on how to set up on a couple of new formulae I need:

* First: I need a function that counts a row only if BOTH of the following conditions within that row are met:

K3:K15 = "Oct-08"
H3:H15 = "PDM"

* Second: Same deal as above, but with a third, additional criteria - ie count the row if all of the conditions for it are met:

K3:K15 = "Oct-08"
H3:H15 = "PDM"
M3:M15 = "Yes"

Tried a combination of "Countif" and "AND" functions, but with no luck, so any help would be greatly appreciated.

Thanks in advance,
Chris



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: November 3, 2008 at 09:07:51 Pacific
Reply:

use sumproduct (the double - forces it to evaluate the expression in the brackets to 1 or 0):

=SUMPRODUCT(--(K3:K15="Oct-08"),--(H3:H15="PDM),--(M3:M15="Yes"))

Note this is pretty slow if you have a lot on one sheet.

Also note if your dates (Oct-08) are formatted as dates, you might need to use datavalue for the condition to work.

HTH


0

Response Number 2
Name: Rezix
Date: November 3, 2008 at 21:13:05 Pacific
Reply:

Thanks heaps mate! Exactly what I needed. Legend!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: If.. and if.. and if.. then count

IF-Then, (else) (Jennifer SUMN) www.computing.net/answers/office/ifthen-else-jennifer-sumn/2953.html

ms word: if, then, else usage www.computing.net/answers/office/ms-word-if-then-else-usage/7650.html

Complex IF/THEN Statement www.computing.net/answers/office/complex-ifthen-statement/8695.html