View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Luke M[_4_] Luke M[_4_] is offline
external usenet poster
 
Posts: 457
Default Splitting cell contents into 2 cells

You can either do the simple:
Data - Text to columns, delimited by hypen

Or, you could try and do:
=VALUE(LEFT(A2,FIND("-",A2)-1))
in one cells and
=VALUE(MID(A2,FIND("-",A2)+1,999))
in the other.

--
Best Regards,

Luke M
"Florence Tay" <Florence wrote in message
...
If a cell contains a set of numbers separated by a hyphen (eg, 1234-5678,
can
the contents be splitted up into 2 cells without the hyphen (ie, 1234 in 1
cell and 5678 in another cell)?