Solved

count row in excel if = to 2 conditions

Posted on 2011-02-11
3
337 Views
Last Modified: 2012-08-13
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
Comment
Question by:running32
3 Comments
 
LVL 59

Accepted Solution

by:
Saurabh Singh Teotia earned 500 total points
ID: 34874349

Use this formula...

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

Please adjust ranges as per your data...

Saurabh...
0
 

Author Closing Comment

by:running32
ID: 34874498
thank you for the quick answer
0
 
LVL 12

Expert Comment

by:Amick
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question