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.
DesignationSeal IDSeal ODSeal WidthValue1Value2Value3
02506218TC6.35015.8754.763Seal IDSeal ODSeal Width
02507525TC6.35019.0506.350Seal IDSeal ODSeal Width
02510018SC6.35025.4004.763Seal IDSeal ODSeal Width
03106215TC7.93815.8753.969Seal IDSeal ODSeal Width
03106831TC7.93817.4637.938Seal IDSeal ODSeal Width
03107525SC7.93819.0506.350Seal IDSeal ODSeal Width

<tbody>
</tbody><colgroup><col><col><col><col><col span="3"></colgroup>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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