Return Heading Value (Title) to multiple Columns

AndrewP70

New Member
Joined
Feb 17, 2016
Messages
26
Hi,
I have a worksheet that contains 119K lines and 150 columns. All the column headings are unique and the columns contain specific information and data about that particular product. Some products contain data from multiple columns. Eg below -

Oil Seals - contains dimensional date in 4 columns. This information is found in columns (example only) AC1, BB1, CB1, CH1
Seal ID
Seal OD
Seal Width
Lip Material

Other products may only contain information in 1 column.
Is it possible to return the Title heading for all products in separate columns. Screen shot below.
[TABLE="width: 627"]
<tbody>[TR]
[TD]Designation[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[TD]Value1[/TD]
[TD]Value2[/TD]
[TD]Value3[/TD]
[/TR]
[TR]
[TD]02506218TC[/TD]
[TD]6.350[/TD]
[TD]15.875[/TD]
[TD]4.763[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[/TR]
[TR]
[TD]02507525TC[/TD]
[TD]6.350[/TD]
[TD]19.050[/TD]
[TD]6.350[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[/TR]
[TR]
[TD]02510018SC[/TD]
[TD]6.350[/TD]
[TD]25.400[/TD]
[TD]4.763[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[/TR]
[TR]
[TD]03106215TC[/TD]
[TD]7.938[/TD]
[TD]15.875[/TD]
[TD]3.969[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[/TR]
[TR]
[TD]03106831TC[/TD]
[TD]7.938[/TD]
[TD]17.463[/TD]
[TD]7.938[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width[/TD]
[/TR]
[TR]
[TD]03107525SC[/TD]
[TD]7.938[/TD]
[TD]19.050[/TD]
[TD]6.350[/TD]
[TD]Seal ID[/TD]
[TD]Seal OD[/TD]
[TD]Seal Width
[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col span="3"></colgroup>[/TABLE]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Clarify please.

What is the correlation between columns, headers and values? And what, exactly, are you looking to be able to do?
 
Upvote 0
If your data is all values, rather than formulae, try
Code:
Sub GetColHeaders()
   Dim i As Long
   Dim Usdcols As Long
   
   Usdcols = Cells(1, Columns.Count).End(xlToLeft).Column
   For i = 2 To 400
      Range("A" & i).Resize(, Usdcols).SpecialCells(xlConstants).Offset(-i + 1).Copy Cells(i, Usdcols + 1)
   Next i
End Sub
But it won't be very fast
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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