how do you count cells with a time criteria??

P

pschar

I need to get a count of cells in a column based off of a time criteria.
The colum is a in "TIME" format ( 8:00 AM, 12:00 PM, etc).

I need to get a count of cells that are between 8:00 AM and 12 PM . .
what formula would I use??
 
D

David McRitchie

Hi ...,

=countif(A2:A20,">=08:00")-countif(A2:A20,">12:00")

if you want it under row 20 you can use
A21: =countif(A$2:OFFSET(A21,-1,0),">=08:00")-countif(A$2:OFFSET(A21,-1,0),">12:00")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top