Converting time to a range of time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to take a time in a spreadsheet and change it to a time
range? For instance, 13:45 would show as 13:01-14:00 or 2:25 would show as
2:01-3:00?
 
Tasha,

With the time of interest in cell A1:

=TEXT(INT(A1*24)/24,"hh:mm") & "-" & TEXT(INT(A1*24+1)/24,"hh:mm")

HTH,
Bernie
MS Excel MVP
 
=TEXT(TIME(HOUR(A1-1/24/60),1,0),"h:mm")&" -
"&TEXT(TIME(HOUR(A1-1/24/60)+1,0,0),"h:mm")

Won't cope with an input of 00:00, but in general it's better to use 23:59
or 00:01.
 
Back
Top