Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Countif based on condition in another cell.

Status
Not open for further replies.

Chuck712

Technical User
Mar 1, 2002
133
US
I have a spreadsheet that I need to do some analysis on. I am trying to count a range of cells if they have a value higher than a standard, but need to only count them if the value in another cell is met. Here is what I have (short version)

Waist Gender
11.0 F
12.0 M
06.0 M
10.5 F

I want to count the cell if the waist is greater than 10, but the Gender is F.

I am sure that this is simple, but I am having trouble finding anything on it.
 
=sumproduct((a1:a4>=10)*(b1:b4="F"))

For explanation, see FAQ68-4725

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Thanks. I looked all over but couldn't find it. This is just what I needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top