indirect reference to refer to cell

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have the following formula below


=LOOKUP(2,1/((B$1='C:\My Documents\[Sales.2020.2021.xls]Mar-2021'!$B$7:$B$40)*($F$1=EOMONTH('C:\My Documents\[Sales.2020.2021.xls]Mar-2021'!$M$1,0))),'C:\My Documents\[Sales.2020.2021.xls]Mar-2021'!$H$7:$H$40)/0.15

I have the month and year on sheet "summary' in cell D1

i would like to make use of the indirect formula , so that when the month and year in D1 changes to say Apr-2021 , the sheet on the workbook will charge to refer to the month and the year

for e.g. id D1 is changed to Apr-2021 the workbook in the lookup formula to chnge to

Code:
 'C:\My Documents\[Sales.2020.2021.xls]Apr-2021'!$B$7:$B$40

your assistance is most appreciated
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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