Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Converting text to numbers

I have to import a report into excel which contains times in to
columns. The time is formated as 9:45 and 11:23 (as an example). when
the times are pasted into Excel the times with 4 digits (11:23) excel
automaticly sets the cell formula to hh:mm but if the time only has 3
digits (9:45) excel automaticly sets the cell format to general. I
have tried formating the cells as hh:mm prior to pasting but that did
not help.

Any ideas how I can convert the 9:45 to the proper time format?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Converting text to numbers

=TIME(LEFT(A1,1), RIGHT(A1,2),0)

format cells as hh:mm

" wrote:

I have to import a report into excel which contains times in to
columns. The time is formated as 9:45 and 11:23 (as an example). when
the times are pasted into Excel the times with 4 digits (11:23) excel
automaticly sets the cell formula to hh:mm but if the time only has 3
digits (9:45) excel automaticly sets the cell format to general. I
have tried formating the cells as hh:mm prior to pasting but that did
not help.

Any ideas how I can convert the 9:45 to the proper time format?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Converting text to numbers

You have to perform a methamatical operation over the time values to convert
them from text.
Type 1 in any cell and copy. Select time column. Paste special. Multiply
Format column as hh:mm

" wrote:

I have to import a report into excel which contains times in to
columns. The time is formated as 9:45 and 11:23 (as an example). when
the times are pasted into Excel the times with 4 digits (11:23) excel
automaticly sets the cell formula to hh:mm but if the time only has 3
digits (9:45) excel automaticly sets the cell format to general. I
have tried formating the cells as hh:mm prior to pasting but that did
not help.

Any ideas how I can convert the 9:45 to the proper time format?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting numbers to text Chrisj20 Excel Worksheet Functions 2 November 17th 05 06:04 PM
converting numbers to text gls858 New Users to Excel 2 October 18th 05 10:56 PM
Converting numbers formatted as text to numbers Bill Excel Discussion (Misc queries) 1 July 19th 05 07:10 PM
converting numbers to text and prefill text field with 0's Jan Buckley Excel Discussion (Misc queries) 2 January 20th 05 09:03 PM
Converting text to numbers Scott Excel Discussion (Misc queries) 3 November 26th 04 09:17 PM


All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"