Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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   Report Post  
Posted to microsoft.public.excel.misc
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)?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting cels contents into two cells stew Excel Discussion (Misc queries) 5 December 6th 09 04:07 PM
splitting out cell contents ksh Excel Discussion (Misc queries) 2 January 14th 08 06:14 PM
Splitting the contents of a cell Keith Excel Discussion (Misc queries) 7 September 21st 06 07:21 PM
Splitting the contents of a cell? Dan B Excel Worksheet Functions 4 December 8th 05 08:34 PM
Splitting up a cells contents Anthony Excel Worksheet Functions 3 September 1st 05 12:18 PM


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

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

About Us

"It's about Microsoft Excel"