Adding all data into 1 cell from a row ignoring blanks and adding title before whats in non blank cells

scottyyboyy

New Member
Joined
Feb 2, 2015
Messages
41
Hi All,

I have searched all over the net and cant find the answer.

I have a spreadsheets with hundreds of thousands of rows and hundreds of columns, I need to pull out the data that's in a row and add all into 1 cell but where it finds data in a row i need it to take the title name to the word it finds in the row.

hope this makes sense please see below

[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD]emp no.[/TD]
[TD]Found data[/TD]
[TD]firstname[/TD]
[TD]last name[/TD]
[TD]age[/TD]
[TD]sex[/TD]
[TD]address 1[/TD]
[TD]address 2 [/TD]
[TD]Postcode[/TD]
[TD]dob

[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]dave smith 22 wheel rd b22 2bb[/TD]
[TD]dave[/TD]
[TD]smith[/TD]
[TD][/TD]
[TD][/TD]
[TD]22[/TD]
[TD]wheel rd[/TD]
[TD]b22 2nn[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]scott 22 m 33 drive rd b22 2nn 19/02/1988
[/TD]
[TD]scott[/TD]
[TD][/TD]
[TD]22[/TD]
[TD]m[/TD]
[TD][/TD]
[TD]33 drive rd[/TD]
[TD]b22 2nn[/TD]
[TD]19/02/1988[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]james bob m 22 b22 2nn 20/03/1957[/TD]
[TD]james[/TD]
[TD]bob[/TD]
[TD][/TD]
[TD]m[/TD]
[TD]22[/TD]
[TD][/TD]
[TD]b22 2nn[/TD]
[TD]20/03/1957

[/TD]
[/TR]
</tbody>[/TABLE]


the green text is what i need but this is for 100,000 rows and goes to like column VZ ish.

Thanks in advance if someone can help me
Scott
 
You're welcome & thanks for the feedback
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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