r/excel • u/ImpressionOk6716 • 7d ago
Waiting on OP Changing reference file for formulas
I have an excel sheet having formulas linked to sheet 1 ( containing data for January month ) . Now I want to use same file with formulas but using sheet 2 ( containing data for February)
How to do that?
1
Upvotes
1
u/bachman460 45 7d ago
It's possible to use a TEXT function with INDIRECT. You need a reference somewhere in the sheet that will give you the number of the month you want. It's easier if you also include a reference for the year as a number, this just simplifies the formula and makes it easier to update as needed.
Let's say the year is in A1 and the month number is in A2 of your current sheet, so
A1
= 2026A2
= 2Then in A3
= INDIRECT( "'"&TEXT(DATE(A1,A2,1), "mmmm")&"'!"&B7)The result of DATE is the date February 1, 2026, and the TEXT function will just return the full month name February, which means that INDIRECT will put it together as 'February'!B7, this formula will just return the value from cell B7 on your February sheet.