VBA Dynamic Autofill

Littlemalky

Board Regular
Joined
Jan 14, 2011
Messages
223
Ok so I have part numbers in the left-most column and each month listed on top with just 3 letters of the month. I need to do a vlookup to another workbook to input the past months data. The rows I put the vlookup in are static and they are rows 5 thru 27; however, the corresponding column is different based on the month. How do I input this formula in these cells? Is there a way to reference the rows without the column?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
No. A vlookup does the job just fine. The other file that I'm pulling the data from is not set up the same as this with the months laid out at the top. The other file just displays one month's data and is not formatted in a way that I could use a index/match. This is more dynamic.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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