Is there a way to change the sheet name indicated in formulas and not do it one by one?

PeytPeyt

New Member
Joined
Jun 30, 2023
Messages
5
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I am doing a summary for multiple sheets and have 6 formulas that would point to each sheet. I have already extracted all the sheet names and there are 32 sheet and I need to do this to multiple workbooks, I just need to know if there is a less painful way of changing the sheet names and not change them one by one.

If it helps, here are the formulas
Column D. ='SHEET1'!$B$6
Column E. ='SHEET1'!$E$32
Column F. ='SHEET1'!$B$4
Column G. ='SHEET1'!$G$32
Column H. =IF(ABS(MIN('SHEET1'!$G$13:$G$31))>=MAX('SHEET1'!$G$13:$G$31),MIN('SHEET1'!$G$13:$G$31),MAX('SHEET1'!$G$13:$G$31))
Column I. =XLOOKUP(H21,'SHEET1'!$G$12:$G$20,'SHEET1'!$B$12:$B$20)
 

Attachments

  • Screenshot 2023-07-01 012724.png
    Screenshot 2023-07-01 012724.png
    17 KB · Views: 6
I normally avoid using Indirect but see it this is heading in the right direction.
PS: Indirect is volatile and you may slow down excel too much if you are talking about 100 sheets.

20230701 Summarise sheets Indirect PeytPeyt.xlsm
ABCDEFGHI
1
2
3sht nameDatePO#No. of BatchActual usageCommodityYield %%ToleranceRemarks
4Sheet2sht2 Batch0sht 2 Commodity000
5Sheet3sht3 Batch0sht 3 Commodity000
6
Sheet1
Cell Formulas
RangeFormula
D4:D5D4=INDIRECT("'" &$A4&"'!$B$6")
E4:E5E4=INDIRECT("'" &$A4&"'!$E$32")
F4:F5F4=INDIRECT("'" &$A4&"'!$B$4")
G4:G5G4=INDIRECT("'" &$A4&"'!$G$32")
H4:H5H4=LET(colG,INDIRECT("'" &$A4&"'!$G$13:$G$31"), IF(ABS(MIN(colG))>=MAX(colG),MIN(colG),MAX(colG)))
I4:I5I4=XLOOKUP(H21,INDIRECT("'" &$A4&"'!$G$12:$G$20"),INDIRECT("'" &$A4&"'!$G$12:$G$20"))
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,129
Messages
6,123,217
Members
449,091
Latest member
jeremy_bp001

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