Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# count row in excel if = to 2 conditions

Posted on 2011-02-11
Medium Priority
340 Views
I need to count row P in my excel spreedsheet if row H > 17 and row P = 1 or 3.

How can I write the query to do this in and excel field.

thanks
0
Question by:running32
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 59

Accepted Solution

Saurabh Singh Teotia earned 2000 total points
ID: 34874349

Use this formula...

=SUMPRODUCT((H1:H100>17)*(P1:P100=1)+(P1:P100=3))

Saurabh...
0

Author Closing Comment

ID: 34874498
thank you for the quick answer
0

LVL 12

Expert Comment

ID: 34874592
Assuming the range is 1,2,3 then try
=COUNTIFS(H1:H9999,"= 17",P1:P9999,"<4")-COUNTIFS(H1:A9999,"= 17",P1:P9999,"=2")
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
###### Suggested Courses
Course of the Month7 days, 10 hours left to enroll