#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Text to a number

I received a large csv file from our vendor and I would like to use Excel
functions.
I currently have a cell that has the following value:

19:00

I would like convert this to the number 19. There are also blank spaces in
front of the value above.

Thank you for any help you can give, Dave


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default Text to a number

Do all of the numbers have a colon? If so, try:
=TRIM(LEFT(A1,(FIND(":",A1)-1)))

TRIM takes out any spaces
FIND locates the colon (the -1 tells it capture one less than the
position of the colon)
LEFT tells it to capture the data preceding the found colon

On Apr 24, 11:09 am, "Dave" wrote:
I received a large csv file from our vendor and I would like to use Excel
functions.
I currently have a cell that has the following value:

19:00

I would like convert this to the number 19. There are also blank spaces in
front of the value above.

Thank you for any help you can give, Dave


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
Formula to change scientific number to regular number or text Compare Values Excel Discussion (Misc queries) 2 August 23rd 07 06:10 PM
Counting a mixed text/number column based on text in another colum Sierra Vista Steve Excel Discussion (Misc queries) 3 December 17th 06 05:30 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
Why does this fail? =TEXT(RC3,Number)&" / "&TEXT(R32C,Number) =TEXT(RC3,Number)& / &TEXT(R32C,Number Excel Worksheet Functions 2 June 23rd 05 01:02 AM
not able to convert text, or graphic number to regular number in e knutsenk Excel Worksheet Functions 1 April 2nd 05 08:41 AM


All times are GMT +1. The time now is 07:50 PM.

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

About Us

"It's about Microsoft Excel"