Dave A Wrote:
Hi all,
after I bit of a tip on manipulating an Excel file
The data is as follows. Column 1 contains numbers; Column two contains
a string of "labels" separated by "&"; Column three contains an
integer
that is a count of the number of labels.
I wish to tranpose the labels into a 2nd column with the numbers in
the first column.
Raw data
1234 "fish"&"dog" 2
12356 "cat" & "mouse" 2
1374 "goat"&"horse"&"man" 3
Desired result
1234 fish
1234 dog
12356 cat
12356 mouse
1374 goat
1374 horse
1374 man
Thanks
Dave
Just a couple of questions to clarify, are your "labels" in column 1
unique or might they repeat, e.g. you show 1234 on the first line,
could 1234 occur again?
Do you actually have quotes around each label as shown? You don;t want
these in the final data?
You show line 2 with spaces either side of the & - is this a typo,
other lines show no spaces?
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=554789