A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Splitting cell contents into 2 cells



 
 
Thread Tools Display Modes
  #1  
Old May 17th, 2010, 01:52 PM posted to microsoft.public.excel.misc
Florence Tay
external usenet poster
 
Posts: 1
Default Splitting cell contents into 2 cells

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)?
  #2  
Old May 17th, 2010, 01:55 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
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)?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.