Lock an index to the correct column based on a value

MikeGeno

Board Regular
Joined
Apr 4, 2008
Messages
130
Working on a file with 2 tabs where I need to use index to reference a value in the pivot table.

I have a pivot table with months down the rows and item numbers across the columns. The Item number is not necessarily in the same column location in my data tab as it is in the pivot table

Pivot Tab

ABC CDE
Jan
Feb
Mar
Apr
May

Data Tab
ABC DEF
Jan
Feb
Mar
Apr
May


I am using the following formula to perform my calculation

='Data'!B6/INDEX('Pivot'!B$8:B$19,MONTH('Data'!$A6))

This gives me the sales for that month divided by the index value generated for that particular month.

When I copy this across at one point my columns are no longer in sync and I am getting the wrong answer.

How can I make the index lock onto the correct column based on the Item number?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,214,907
Messages
6,122,185
Members
449,071
Latest member
cdnMech

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