Using countifs with If or function

anshikam

Board Regular
Joined
Aug 20, 2016
Messages
87
IF(OR((C2:C2323>=00:00, C2:C2323<=00:59, COUNTIFS(F2:F2323, "=M")))

The above formula doesnt work

What I am doing?
Counting the no of "M" in a coloumn for patient entry between 00:00 to 00:59 hours from another coloumn.
data set looks like this:

Name Patient in Time Gender
Anshika 00:15 F
Mike 01:15 M
Jack 00:30 M
John 00:45 M

Should give me 2 as a result from the above dataset

Have tried pivots but somehow not able to group by range
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about
Rich (BB code):
=COUNTIFS(C2:C2323,">="& "0:00",C2:C2323,"<=" & "00:59",F2:F2323,"M")
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

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