Autofill data from column headers

Ponta

New Member
Joined
Feb 20, 2018
Messages
2
Hey guys! I am doing finance research where I have a couple of thousand columns of historical stock prices with a specific code for each company in the header. It looks something like this:
SE121SE122SE123
111
222

<tbody>
</tbody>


In the next step i have the same SE-codes for each stock but sometimes i have several of the same code in a row. I am looking for a way to autofill the price history for each stock so that it matches the price history in the first table. So it would look something like this:

SE121SE121SE121SE122SE123
11111
22222

<tbody>
</tbody>

Thankful for any help or input!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
welcome to the board

=INDEX( [header row] , MATCH( [lookup value e.g. SE121] , [row to pull data from] , 0 ))
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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