Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Un-Delimiting

If I find that I have a single cell with values delimited with | , how
could I split each value into new cells across columns

so

YES|NO|MAYBE in A1 would be "YES" in C1, "NO" in D1, "MAYBE" in E1
NO in A2 would be "NO" in C2
YES|NO|MAYBE|ALWAYS in A3 would be "YES" in C3, "NO" in D3, "MAYBE" in
E3

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Un-Delimiting

Hi,

Select the data then

data|Text to columns
Select delimited
Next
Check 'other' and enter your delimiter in the other box
Finish

Mike

"caveman.savant" wrote:

If I find that I have a single cell with values delimited with | , how
could I split each value into new cells across columns

so

YES|NO|MAYBE in A1 would be "YES" in C1, "NO" in D1, "MAYBE" in E1
NO in A2 would be "NO" in C2
YES|NO|MAYBE|ALWAYS in A3 would be "YES" in C3, "NO" in D3, "MAYBE" in
E3


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Un-Delimiting

Great Solution!
Do you think there would be a way to do that within a formula?
like
=LEN($A$1)-LEN(SUBSTITUTE($A$1,"|",""))+1
to find the number of time "|" occurs
and then do a midstring in C1 based on A1 to get everything up to the
"|"
and then do a midstring in C2 based on A1 to get everything up to the
(2nd) next "|"
....and so on until the number of "|" occurances is met

On Apr 30, 6:09*am, Mike H wrote:
Hi,

Select the data then

data|Text to columns
Select delimited
Next
Check 'other' and enter your delimiter in the other box
Finish

Mike



"caveman.savant" wrote:
If I find that I have a single cell with values delimited with | , how
could I split each value into new cells across columns


so


YES|NO|MAYBE in A1 would be "YES" in C1, "NO" in D1, "MAYBE" in E1
NO in A2 would be "NO" in C2
YES|NO|MAYBE|ALWAYS in A3 would be "YES" in C3, "NO" in D3, "MAYBE" in
E3


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
Copy/paste from other application without delimiting it? Jennifer Excel Discussion (Misc queries) 2 December 10th 08 11:49 PM
tab delimiting numbers EngelseBoer Excel Discussion (Misc queries) 3 September 8th 08 02:53 AM
Delimiting and Formatting Delimiting and Formatting Excel Discussion (Misc queries) 2 May 9th 07 07:26 PM
Macro delimiting text if column has value Beverly76 Excel Programming 3 June 8th 06 11:41 PM
delimiting w/multiple delimiters? NTaylor Excel Discussion (Misc queries) 0 January 11th 06 04:22 PM


All times are GMT +1. The time now is 01:19 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"