Splitting cell contents into 2 cells

F

Florence Tay

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)?
 
L

Luke M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top