View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Eric Eric is offline
external usenet poster
 
Posts: 1,670
Default How to select the numbers?

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