Index/Match with a variable Match Column

Shortfingers

New Member
Joined
Jul 24, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have a Workbook that contains a separated sheet for each day. I am trying to link this workbook with another Workbook that has a entire year of schedules on a single sheet. I start with a Template in the Daily Workbook and create a copy that becomes an individual day. I need to have the individual daily sheets link to the appropriate column in the Year Workbook. A represented formula is =IF(A7="","",INDEX('[Pyne Driver Display 2022.xlsm]Sheet1'!$A$1:$BRF$250,MATCH(F7,'[Pyne Driver Display 2022.xlsm]Sheet1'!$B:$B,0)+1,2)) . My problem is at the end of the Match portion of the formula. I need to change the $B:$B which is correct for 1/1/22, to $G:$G to be correct for 1/2/22 based on which individual day the daily sheet becomes. I have a chart that has the correct column name (B, G, L, ect) that is tied to the date. I cannot write a formula for the Template that will change the column reference of the above formula based of the date of the created daily sheet.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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