Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Countif, Multiple Colums with another Countif per column!

$
0
0
Hi there,

I have been using the following formula successfully for counting instances in rows that match all 3 criteria (spread across 3 columns):


=SUMPRODUCT(--(H120:H126="R02"),--(I120:I126="NO"),--(J120:J126="Lol"))


So this formula tells you how many rows contain "R02" AND "NO" AND "Lol" in the required columns and ignores anything which does not contain ALL 3

What if my "Lol" criteria was changed to a COUNTIF argument? Instead of looking at "Lol" as my criteria, I only want to look at cells which contain ANY value and ignore blank cells. this would be =COUNTIF(AH2:AH129,">0")




So Im looking to substitue my third criteria which was set to "Lol" for a countif greater than 0 argument.


This would give me a count on all rows which contain "R02", "NO" AND "anything at all in this third column, ignoring the blanks"


I am struggling with this one! :P Is there an excel wizard out there who could solve this one?




G

Viewing all articles
Browse latest Browse all 13329

Trending Articles