ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Convert time to time range (https://www.excelbanter.com/excel-discussion-misc-queries/136179-convert-time-time-range.html)

sueshe

Convert time to time range
 
Is there something I can do to change a time to a time range: For instance
13:45 would show as 13:01-14:00, or 2:32 would show as 2:01-3:00?

Thanks!!
--
Tasha

John

Convert time to time range
 
you could use vlookup =VLOOKUP(A1,D1:E24,2) with A1 being the time, D1:D24
being 00:01 to 23:01 & E1 to E24 being 00:01-01:00 to 23:01 to 24:00
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"sueshe" wrote:

Is there something I can do to change a time to a time range: For instance
13:45 would show as 13:01-14:00, or 2:32 would show as 2:01-3:00?

Thanks!!
--
Tasha


Fred Smith

Convert time to time range
 
How about:

=TEXT(A1-MOD(A1,"00:30"),"hh:mm")&"-"&TEXT(A1-MOD(A1,"00:30")+"00:30","hh:mm")

--
Regards,
Fred


"sueshe" wrote in message
...
Is there something I can do to change a time to a time range: For instance
13:45 would show as 13:01-14:00, or 2:32 would show as 2:01-3:00?

Thanks!!
--
Tasha





All times are GMT +1. The time now is 05:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com