Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steve
 
Posts: n/a
Default Opposite of Concatenate

I use the Concatenate function all the time. Is there a function that does
the opposite? For example one cell has all three City, State and Zip info.
I need each of these all in their own cells. Is there a function that does
this?? All help is greatly appreciated

Steve


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Datatext to columns

--
Regards,

Peo Sjoblom

(No private emails please)


"Steve" wrote in message
...
I use the Concatenate function all the time. Is there a function that does
the opposite? For example one cell has all three City, State and Zip info.
I need each of these all in their own cells. Is there a function that does
this?? All help is greatly appreciated

Steve


  #3   Report Post  
.
 
Posts: n/a
Default

Steve wrote:
I use the Concatenate function all the time. Is there a function that does
the opposite? For example one cell has all three City, State and Zip info.
I need each of these all in their own cells. Is there a function that does
this??


You don't state the rules for splitting up the City/State and Zip info.
Are the values separated by an obvious delimiter (eg. a comma)?

If so, you can use the Left, Mid and Right worksheet functions along
with Find or Search. For example, if cell A1 contains:

Beverly Hills, California, 91210

Then in B1 you could try:
=LEFT(A1,FIND(",",A1)-1)

In C1:
=MID(SUBSTITUTE(A2,B2,""),3,FIND(",",SUBSTITUTE(A2 ,B2,""),2)-3)

In D1:
=RIGHT(A1,LEN(A1)-FIND(",",A1,FIND(",",A1)+1))

Not particularly elegant, but it seems to work. Of course if you can
afford to use a few extra cells to hold intermediate values, you can
simplify these quite a bit. For example,

In B1:
=LEFT(A1,E1-1)

In C1:
=MID(A1,E1+2,F1-E1-2)

In D1:
=RIGHT(A1,LEN(A1)-F1)

In E1:
=FIND(",",A1)

in F1:
=Find(",", A1, E1+1)

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
Is there an opposite function to "Concatenate" in Excel? drbonne Excel Worksheet Functions 8 April 3rd 23 01:21 PM
Using Concatenate inside a vlookup bmclean Excel Worksheet Functions 3 July 5th 05 09:29 PM
Match and Concatenate ?? carl Excel Worksheet Functions 4 June 22nd 05 01:55 PM
Need opposite of excel function CONCATENATE Adam Excel Discussion (Misc queries) 3 March 5th 05 08:59 PM
Concatenate cells without specifying/writing cell address individually Hari Excel Discussion (Misc queries) 4 January 3rd 05 06:05 PM


All times are GMT +1. The time now is 02:42 AM.

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

About Us

"It's about Microsoft Excel"