How to change Sheet Name dynamically in a formula?

krishco68

New Member
Joined
Nov 28, 2018
Messages
21
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Dear Expert,
I have a problem, I have 30 sheets which are named from 1 to 30. In another sheet, I mentioned a formula taking a reference of 1 sheet and when I drag the formula the name of the sheet should change automatically.
Ex: in a cell the formula is - ='1'!$J$1
and when I drag the formula the name of the sheet has to change to ='2'!$J$1, likewise for the entire 30 sheets.

Please help me in this regard.

Regards,
Murali Krishna
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what cell are you putting that formula in?
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what cell are you putting that formula in?
Ok Sir, I will update the account details.
now about the problem.
I have 30 sheets named from 1 to 30
and in 31 sheet in cell A1 I took a reference cell
Ex. A1 = '1'!$J$1 then when I drag the formula down
the formula should change automatically like A2 = '2'!$J$1
 
Upvote 0
Ok, how about
Excel Formula:
=INDIRECT("'"&ROWS(A$1:A1)&"'!J1")
 
Upvote 0
Solution
Similar option:
Excel Formula:
=INDIRECT("'"&ROW()&"'!J1")
 
Upvote 0
Glad we could help & thanks for the feedback.

Also please don't forget to update your profile. It saves us from having to ask. ;)
 
Upvote 0

Forum statistics

Threads
1,215,166
Messages
6,123,395
Members
449,098
Latest member
ArturS75

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