Time question

  • Thread starter Thread starter Cesar Zapata
  • Start date Start date
C

Cesar Zapata

help please.

im using a vlookup method to mach if someone works at specific time for
example if cesars is next to 5:00 AM then it works but ovbiosly it does
not work if cesar is schedule from 5:15 or 5:30. is there a formula that
can check the whole hour? one idea is to use < > but i wonder if there
is an more efficient way.



thanks
 
You could use

=INDEX(D4:D9,MATCH(HOUR(A1),HOUR(C4:C9),0))

entered with ctrl + shift & enter

it would be the same as

=VLOOKUP(A1,C4:D9,2,0)

it will round down to nearest hour thus a time like 05:45 will match 05:00
where it won't using vlookup.
 
Back
Top