Merging multiple rows of data for one animal

EtudiantWisconsin

New Member
Joined
Dec 2, 2012
Messages
10
Hello I have a data set like this on about 200 animals so about 1000 rows:

Cat Rabies # Microchip # Collar # Clinic # (each number below is in a different column - each time I edit this post they all snap back to the cat's name!)

Shaggy 4345
Shaggy RE3455678
Shaggy 9008
Shaggy 1222


And I want to end up with this:



Cat Rabies# Microchip # Collar # Clinic #

Shaggy 4345 RE3455678 9008 1222


Can anyone help with this problem?

Thank you
etudiant
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello and welcome to MrExcel.
Are your data sorted and you have got always 4 lines for each animals?
And the final result is like this?
Excel 2010
ABCDEFGHIJKL
CatRabiesMicrochipCollarClinicCatRabiesMicrochipCollarClinic
ShaggyShaggyRE3455678
ShaggyRE3455678
Shaggy
Shaggy

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]4345[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"]4345[/TD]

[TD="align: right"]9008[/TD]
[TD="align: right"]1222[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]9008[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1222[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1
 
Upvote 0
My data is sorted on the cat's name column.
I have anywhere from 1 to 6 lines per cat.

Your row number 2 columns H through L is what I would like to create - where all the ID's are in one row


 
Upvote 0
My data is sorted on the cat's name column.
I have anywhere from 1 to 6 lines per cat.

Your row number 2 columns H through L is what I would like to create - where all the ID's are in one row



Try this(Excel 07/10 version)
Excel Workbook
ABCDEFGHIJKLM
1CatRabiesMicrochipCollarClinicELSECatRabiesMicrochipCollarClinicELSE
2Shaggy4345Shaggy4345RE345567890081222
3ShaggyRE3455678mama1234
4Shaggy9008kaaaAB
5Shaggy1222rrrr1122334455
6mama1
7mama2
8mama3
9mama4
10kaaaA
11kaaaB
12rrrr11
13rrrr22
14rrrr33
15rrrr44
16rrrr55
Sheet1
 
Upvote 0
Mr. Mika,
Thank you very much for your help. I don't understand your string formula at all mainly because of my limited Excel skills. Would you be kind enough to talk (write) me through the steps of your formula so that I understand the functions you have employed. I also don't understand the significance of cell 12 either? Please explain. Thank you again for your excellent help. Exactly how would I use your formula? Please consider me a low-skilled Excel user.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top