![]() |
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. |
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 |
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. |
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. |
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. |
All times are GMT +1. The time now is 09:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com