How to select the numbers?

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

Does anyone have any suggestions on how to select the numbers within a string?
For example, in cell A1, there is a string 6023 - 10056. I would like to
retrieve any number before "-" in cell B1, it should return 6023, and I would
like to retrieve any number after "-" in cell C1, it should return 10056.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
 
try this

Select Col A
Go to | data | text to column | delimited | next |
in other : give hyphen ( - ) | next | Destination | B1 |
Select the second part values i.e, after hyphen values |
Select do not import column(skip) | finish |
 
Select Col A
Go to | data | text to column | delimited | next |
in Other : give hyphen ( - ) | next | Destination:= B1 | Finish
 
Back
Top