Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
JJ JJ is offline
external usenet poster
 
Posts: 122
Default How to get number from text?

I have data like these: 123ABC, 456EFG
Is there any way to return just number from those cells? How to do it? Thx.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to get number from text?


JJ;221872 Wrote:
I have data like these: 123ABC, 456EFG
Is there any way to return just number from those cells? How to do it?
Thx.


If it just 3 numbers always to the left, then use

=LEFT(A1,3) or

=LEFT(A1,3)*1 to format it to a number


--
oldchippy
------------------------------------------------------------------------
oldchippy's Profile: http://www.thecodecage.com/forumz/member.php?userid=111
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=61197

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default How to get number from text?

Assuming the number is always in the beginning of the text...

=LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99)))

If the referenced cell could be blank, then use this...

=IF(A1="","",LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99))))

to suppress the error message when the referenced cell is empty.

--
Rick (MVP - Excel)


"JJ" wrote in message ...
I have data like these: 123ABC, 456EFG
Is there any way to return just number from those cells? How to do it? Thx.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default How to get number from text?

Hi,

If they are consistantly 3 numbers followed by 3 letters, you can
1. Choose the Data, Text to Columns command and follow the wizard
2. =--LEFT(A1,3)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"JJ" wrote:

I have data like these: 123ABC, 456EFG
Is there any way to return just number from those cells? How to do it? Thx.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default How to get number from text?

Just for clarification... the formula I posted will retrieve a numbers of varying number of digits from the front of the text. If, as others have pointed out, your data is always 3-digits long, then use the LEFT function to get it...

=--LEFT(A1,3)

where the double minus sign turns the text number returned by the LEFT function into a real number.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message ...
Assuming the number is always in the beginning of the text...

=LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99)))

If the referenced cell could be blank, then use this...

=IF(A1="","",LOOKUP(9.9E+307,--LEFT(A1,ROW($1:$99))))

to suppress the error message when the referenced cell is empty.

--
Rick (MVP - Excel)


"JJ" wrote in message ...
I have data like these: 123ABC, 456EFG
Is there any way to return just number from those cells? How to do it? Thx.

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:52 AM.

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"