New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

count records with only one of multiple criteria met

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

count records with only one of multiple criteria met

Postby ronj56 » Sat Dec 24, 2011 9:08 am

I have a large table with each row containing multiple values, each with a different acceptance criterion. How can I count the number of rows with at least one value over an acceptance criterion?

I have been able to make it work with only 2 criteria,

for example
(COUNTIF(Table2[Hi],">5")+COUNTIF(Table2[Med],"<3050"))-(SUMPRODUCT((Table2[Hi]>5)*(Table2[Med]<3050)))

but not with more than 2.

I expect there is a simple solution, there usually is, but I just can't get it.

Thanks for any help
  • 0

ronj56
Rookie
 
Posts: 2
Joined: Dec 24, 2011
Reputation: 0

Re: count records with only one of multiple criteria met

Postby ronj56 » Sat Dec 24, 2011 10:52 am

Don't spend any time on this. I found it.

=SUM(IF((Table2[Hi]>5)+(Table2[Med]>5)+(Table2[Lo]>5),1,0)) (CSE)

Use + for or logic and * for and logic.
  • 0

ronj56
Rookie
 
Posts: 2
Joined: Dec 24, 2011
Reputation: 0

Re: count records with only one of multiple criteria met

Postby Don » Sat Dec 24, 2011 11:23 am

Thanks for posting your solution!
  • 0

Don
Moderator
 
Posts: 733
Joined: Dec 4, 2011
Reputation: 2
Excel Version: 2010

Re: count records with only one of multiple criteria met

Postby Ourpat1 » Sat Dec 24, 2011 12:18 pm

Use a Vlookup formula..............too many if's.....always Vlookup.post example and I'll fix

Pat Savage
  • 0

Ourpat1
Rookie
 
Posts: 23
Joined: Dec 13, 2011
Reputation: 0

Re: count records with only one of multiple criteria met

Postby Ourpat1 » Sat Dec 24, 2011 12:22 pm

Old addage......programme small.......save often..............it's only "true or "false" 1 or 2..........and hide colums that do the steps
  • 0

Ourpat1
Rookie
 
Posts: 23
Joined: Dec 13, 2011
Reputation: 0


Return to General Excel Questions

Who is online

Users browsing this forum: Google [Bot] and 257 guests

cron