View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
miketordoff miketordoff is offline
external usenet poster
 
Posts: 1
Default How can I insert a colon into a column of existing numbers

On Jun 7, 12:00 pm, jcmonzon
wrote:
I have two columns of numbers which are suppose to represent times, but were
entered as a number format. Example: "1845" instead of 18:45. I'm looking
for a way to insert the colon into the numbers so I can do a time calculation.

Note: formating the columns as Time does not work because of the way Excel
handles date & time in a serial manner.

Thanks


Try:

=LEFT(A1,2) & ":" & RIGHT(A1,2)

This puts a colon between the left two numbers and right two numbers

Mike in Philadelphia