Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Text to columns using a formula

In Excel 2003... I've got a column with several items (between 0 and 7
items) delineated by commas. I need to be able to break out the various
items into adjacent cells (so that, for example, if the original data
is in column A, the first item would be in column B, the second (if
present) would be in column C, etc.

The kicker is that I can NOT do this using the Tools: Text to Columns
wizard. This is something that needs to recalculate in real-time, as
the items in column A change (they feed in from another sheet in the
workbook).

I've made some progress using a combination of MID and FIND (keying in
on the commas), with different formulae in columns B-H (one for the
first item, one for the second, one for the third, etc.) but I've only
gotten the first one to work properly.

Anyone ever done anything like this before?

Joe Bloch

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Text to columns using a formula

Can you post some representative samples of your data?

Biff

wrote in message
oups.com...
In Excel 2003... I've got a column with several items (between 0 and 7
items) delineated by commas. I need to be able to break out the various
items into adjacent cells (so that, for example, if the original data
is in column A, the first item would be in column B, the second (if
present) would be in column C, etc.

The kicker is that I can NOT do this using the Tools: Text to Columns
wizard. This is something that needs to recalculate in real-time, as
the items in column A change (they feed in from another sheet in the
workbook).

I've made some progress using a combination of MID and FIND (keying in
on the commas), with different formulae in columns B-H (one for the
first item, one for the second, one for the third, etc.) but I've only
gotten the first one to work properly.

Anyone ever done anything like this before?

Joe Bloch



  #3   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default Text to columns using a formula

Hi Joe,
Excel Developer Tip: The versatile Split function
http://www.j-walk.com/ss/excel/tips/tip93.htm


http://groups.google.com/groups?thre...%40tkmsftngp09


---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

wrote in message oups.com...
In Excel 2003... I've got a column with several items (between 0 and 7
items) delineated by commas. I need to be able to break out the various
items into adjacent cells (so that, for example, if the original data
is in column A, the first item would be in column B, the second (if
present) would be in column C, etc.

The kicker is that I can NOT do this using the Tools: Text to Columns
wizard. This is something that needs to recalculate in real-time, as
the items in column A change (they feed in from another sheet in the
workbook).

I've made some progress using a combination of MID and FIND (keying in
on the commas), with different formulae in columns B-H (one for the
first item, one for the second, one for the third, etc.) but I've only
gotten the first one to work properly.

Anyone ever done anything like this before?

Joe Bloch



  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Text to columns using a formula

This isn't the exact data, but it'll give you an idea of what I'm
working with:

A1: Bill, Joe, Bob
A2: Fred, Sam
A3:
A4: Thomas, Beauregard, Nancy, Jane, Sally, Horace, Ed
A5:
A6: Heather
A7: Tom, Carl

etc...

So there can be up to seven comma-delimited items in each cell, or
zero. What I need to end up with is "Bill" in B1, "Joe" in C1, "Bob" in
D1, "Fred" in B2, and so forth.

Thanks for the help.

Joe

  #5   Report Post  
Posted to microsoft.public.excel.misc
Tom Ogilvy
 
Posts: n/a
Default Text to columns using a formula

Have you considered using a User Defined Function written in VBA. Are you
looking for help with that? If so, what version of Excel will this be used
in. Are you familiar with VBA?

--
Regards,
Tom Ogilvy




" wrote:

In Excel 2003... I've got a column with several items (between 0 and 7
items) delineated by commas. I need to be able to break out the various
items into adjacent cells (so that, for example, if the original data
is in column A, the first item would be in column B, the second (if
present) would be in column C, etc.

The kicker is that I can NOT do this using the Tools: Text to Columns
wizard. This is something that needs to recalculate in real-time, as
the items in column A change (they feed in from another sheet in the
workbook).

I've made some progress using a combination of MID and FIND (keying in
on the commas), with different formulae in columns B-H (one for the
first item, one for the second, one for the third, etc.) but I've only
gotten the first one to work properly.

Anyone ever done anything like this before?

Joe Bloch




  #6   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Text to columns using a formula

That "Extract an Element" thing was precisely what I needed. Thanks,
David McRitchie!

Joe

  #7   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Text to columns using a formula

Ok, well I see you like David's suggestion (as do I), so.....

Biff

wrote in message
oups.com...
This isn't the exact data, but it'll give you an idea of what I'm
working with:

A1: Bill, Joe, Bob
A2: Fred, Sam
A3:
A4: Thomas, Beauregard, Nancy, Jane, Sally, Horace, Ed
A5:
A6: Heather
A7: Tom, Carl

etc...

So there can be up to seven comma-delimited items in each cell, or
zero. What I need to end up with is "Bill" in B1, "Joe" in C1, "Bob" in
D1, "Fred" in B2, and so forth.

Thanks for the help.

Joe



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
Convert text to formula - Help pleaaase Ayrton Excel Discussion (Misc queries) 5 December 7th 05 05:26 PM
Justify text across multiple columns fins2r Excel Discussion (Misc queries) 4 October 26th 05 05:07 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Text to Columns - moves text up Stoofer Excel Discussion (Misc queries) 2 February 19th 05 10:04 PM


All times are GMT +1. The time now is 06:29 AM.

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"