Hour Count

E

EliA

I'm trying to count the number of times a particular hour appears on my
spreadsheet. For example I have a spreadsheet listing dates and times. I
created an =MOD function to only display the time (hh:mm:ss, military time).
I would like to count the number of times a particular hour appears on the
spreadshe, ie how many times the hour "7", appears then "8" and so on and so
on until all hours are
acccounted for. I tried using =COUNTIF(B2:B520,"7*") for the the 7am hour,
but the results comes up as "0". Can anyone help with this. e
 
M

Mike H

Hi

=COUNT(IF(HOUR(B2:B520)=7,B2:B520,FALSE))

Which is an array so commit with
Ctrl+Shift+Enter

Mike
 

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