Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Concatenating and Unconcatenating

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J C - 12 Apr 2007 22:42 GMT
I have a spreadsheet which contains info imported from another system. I
want to give users the chance to add records but they must follow the rules
so that the data remains consistent.

The problem I have is that there are 4 fields that I would like to have
completed from Picklists. The actual contents will vary depending on what is
downloaded from the other system and only certain combinations are allowed.
I have a list of all allowed combinations.

What I would like to do is concatenate the 4 fields so that the user only
has to pick once and then in different cells undo the concatenation so that
the four fields are presented in four cells. Unfortunately the contents of
the original four fields vary in length and even the number of words they
contain.

An example would be "Dog" "Four Legs" "Brown" "Fido". I want to be able to
combine all four, get "Dog Four Legs Brown Fido" put the result in a pick
list but when picked end up with a result that I can divide up to match the
original four fields.

Using Excel XP.

Any ideas?

John C
Pete_UK - 13 Apr 2007 00:13 GMT
When you concatenate the fields, put some character between them that
would not normally be part of the text, eg:

=A1&"|"&B1&"|"&C1&"|"&D1, or
=A1&":"&B1&":"&C1&":"&D1, or
=A1&"/"&B1&"/"&C1&"/"&D1

Then, to unconcatenate you can use SEARCH to find your character in
conjunction with LEFT, MID and RIGHT.

Hope this helps.

Pete

> I have a spreadsheet which contains info imported from another system. I
> want to give users the chance to add records but they must follow the rules
[quoted text clipped - 21 lines]
>
> John C
J C - 13 Apr 2007 17:03 GMT
Pete

That was exactly what I needed.

Thanks for the help

John C

> When you concatenate the fields, put some character between them that
> would not normally be part of the text, eg:
[quoted text clipped - 42 lines]
>>
>> John C
Pete_UK - 14 Apr 2007 02:29 GMT
You're welcome, John - thanks for feeding back.

Pete

> Pete
>
[quoted text clipped - 52 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.