Amalgamating data with several lines

slay0r

Board Regular
Joined
Jul 8, 2011
Messages
231
Hi All,

I need to amalgamate some data I've got but my minds gone completely blank. The name is all one person but I need all the types to come into one Cell. I'd normally use concatenate but some people haven't had all the tests so the data isn't consistent. Some have only had 2 parts..I basically need it to be one name and the range of tests they had. Is this simple enough to do?

My data looks like:

[TABLE="width: 1291"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Name[/TD]
[TD]Surname[/TD]
[TD]DOB[/TD]
[TD]SEX[/TD]
[TD]Occupation[/TD]
[TD]Location[/TD]
[TD]Type[/TD]
[/TR]
[TR]
[TD]Generic[/TD]
[TD]Generic 2[/TD]
[TD="align: right"]20/04/1974[/TD]
[TD]Male[/TD]
[TD]Fitter[/TD]
[TD]Test[/TD]
[TD]HAVS Tier 2 [/TD]
[/TR]
[TR]
[TD]Generic[/TD]
[TD]Generic 2[/TD]
[TD="align: right"]20/04/1974[/TD]
[TD]Male[/TD]
[TD]Fitter[/TD]
[TD]Test[/TD]
[TD]Audiometry[/TD]
[/TR]
[TR]
[TD]Generic[/TD]
[TD]Generic 2[/TD]
[TD="align: right"]20/04/1974[/TD]
[TD]Male[/TD]
[TD]Fitter[/TD]
[TD]Test[/TD]
[TD]Skin[/TD]
[/TR]
[TR]
[TD]Generic[/TD]
[TD]Generic 2[/TD]
[TD="align: right"]20/04/1974[/TD]
[TD]Male[/TD]
[TD]Fitter[/TD]
[TD]Test[/TD]
[TD]Respiratory
[/TD]
[/TR]
</tbody>[/TABLE]


Thanks so much!

Kind Regards
Jonathan
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Ok we have the input data, but it's probably best to supply what you expect the data to look like, since I can think of several different types of output based on what you've said.
 
Upvote 0
Hi Mate,

Thanks so much for the quick reply.

I'd like it to be one line as below:

[TABLE="width: 1488"]
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Screening Date[/TD]
[TD]Name[/TD]
[TD]Surname[/TD]
[TD]DOB[/TD]
[TD]SEX[/TD]
[TD]Occupation[/TD]
[TD]Location[/TD]
[TD]Type[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2017[/TD]
[TD]Jonathan [/TD]
[TD]Martin[/TD]
[TD="align: right"]20/04/1974[/TD]
[TD]Male[/TD]
[TD]Fitter[/TD]
[TD]GENERIC [/TD]
[TD]Hearing Lung Skin HAVS [/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


All random data before anyone asks! :)
 
Upvote 0
Yeah I can do everything until I hit that point. If it was numbers I'd be all over it but cause it's text I haven't got a clue. IF it was consistent I'd just use concatenate but it's not :(
 
Upvote 0
Assuming you data starts from A1 to E1 & separated by spaces, Try this:
=(A1&" "&B1&" "&C1&" "&D1&" "&E1)
 
Upvote 0
I'm not sure what this would achieve? This would bring together everything in those cells but that's not what I require. It needs to roll up what's in Cell E.
 
Upvote 0
Heed Special-K99's advice@ #2 & supply your issue & expected output:

Seems no one understands your problem hence NO CORRECT ANSWERS COMING IN FROM "SUPRA-EXPERTS HERE!!
 
Upvote 0
Yes, I think we need to see some BEFORE and AFTER data to fully understand what it is you are looking for.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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