Count If Formula vs Ranges

donnajay

New Member
Joined
Jul 30, 2009
Messages
36
Good Morning,

In a bind (as usual), I want to do a countif formula that will tell me if a persons daily productivity is under or over goal. When I type in all the days it tells me too many ranges. I have no other way to sort my file.

Any ideas?

My formula looks like this =countif(d8,d19,d25,d37,d42,d55,d61,d74,d88,d90,"<200")

there are more "d" cells in this formula

Thanks again!:)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Countif works with 1 range and 1 criteria only.

What exactly are you trying to do? Your brief description above means nothing without sample data, expected result and how you got that result.
 
Upvote 0
Do you have the person's name or some identifier to those rows in another column? If so you could use something like this.

Excel Workbook
ABCDEFG
7
8Name A150Excel 2007+2
9Name B162Excel 2003-2
10Name C174
11Name D186
12Name E198
13Name F210
14Name B222
15Name C212
16Name D202
17Name E192
18Name F182
19Name A215
20Name B162
21Name C152
22Name D2
23Name E56
24Name F89
25Name A22
26
COUNTIF
 
Upvote 0
Hi,

May be

=SUMPRODUCT(--(D8:D90<200),--ISNUMBER(MATCH(ROW(D8:D90),INDEX(M5:M14,0,0),0)))

where M5:M14 holds the row number 8,19,25,37.....88,90

adjust the range.
 
Upvote 0
Hi donnajay

Try:

=INDEX(FREQUENCY((D8,D19,D25,D37,D42,D55,D61,D74,D88,D90),{199}),1)

I assumed the number of days is integer. If you have fractions of the day adjust the limit.
 
Upvote 0
Thank you for the suggestions! I have printed them and I will try each one to see what works!

Have a great weekend!
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top