How to use concat and indirect to update a sheet range in a sum across the sheets desiginated

Dobbs1972

New Member
Joined
Oct 25, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
All
I have a project that requires me to sum various activities acroos a range of sheets. Each tab is day and the same activities are in each sheet with the amount of time for that 24hr period.
Screenshot 2023-10-25 165421.png
Screenshot 2023-10-25 165411.png

I understand how to sum across a sheet range but as i add new sheets i have to update all the sheet range formulas. I would like to have a cell for start of my sheet range (blue)and end of my sheet range(green) that is concat (cell E3 yellow) so the value of the cell E3 automatically replaces the hard sheet range in the purple box. That way if i only want to look a whatever range of days i can (based on sheet names)or if i want to sum all sheets for a current total i can. The sum range would be designated by whatever i have in E1 and E2.
Screenshot 2023-10-25 165653.png
please let em know if there is a way using indirect to make this work but this seems like a simple approach but I cant seem to make it work. Thanks for any help and advice in advance-D
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
All
I have a project that requires me to sum various activities acroos a range of sheets. Each tab is day and the same activities are in each sheet with the amount of time for that 24hr period. View attachment 100962 View attachment 100961
I understand how to sum across a sheet range but as i add new sheets i have to update all the sheet range formulas. I would like to have a cell for start of my sheet range (blue)and end of my sheet range(green) that is concat (cell E3 yellow) so the value of the cell E3 automatically replaces the hard sheet range in the purple box. That way if i only want to look a whatever range of days i can (based on sheet names)or if i want to sum all sheets for a current total i can. The sum range would be designated by whatever i have in E1 and E2. View attachment 100963please let em know if there is a way using indirect to make this work but this seems like a simple approach but I cant seem to make it work. Thanks for any help and advice in advance-D
It would be much easier you keep all of the data in one sheet.

Have a seperate column to indicate the date or day number.
 
Upvote 0
Thanks but this was a dumbed down version to get my point across. Each sheet actuall has many columns of various data. I just simplified it here to try and get some assisstance.
 
Upvote 0
I don't think you can do it the way you initially thought, but here's one possibility. List all the sheets in column F on your summary sheet. You'll also need a named range (I've called it "days") which is used within the Indirect formula. Select Start and End sheets in E1 & E2.

Book1
ABCDEF
1CategoryStart:Day 1Day 1
2Rest15End:Day 3Day 2
3WorkDay 3
4EatDay 4
5Travel
6Play
7
Summary
Cell Formulas
RangeFormula
B2B2=SUM(INDIRECT("'"&INDIRECT(days)&"'!"&"B2"))
Cells with Data Validation
CellAllowCriteria
E1:E2List=$F$1:$F$4
 
Upvote 0
The formula for the "days" named range is (put in the "Refers to" box in the name manager)
Excel Formula:
=ADDRESS(MATCH(Summary!$E$1,Summary!$F$1:$F$4,0),6)&":"&ADDRESS(MATCH(Summary!$E$2,Summary!$F$1:$F$4,0),6)

Where the 6 refers to column F
 
Upvote 0
Another option is to create a defined name ( I called it ShtNames) & in the refers to box put
Excel Formula:
=TOCOL(TEXTAFTER(GET.WORKBOOK(1)&T(NOW()),"]"))
and then you can use
Fluff.xlsm
ABCDEF
1Startsheet1Sheet1
230Endsheet3Sheet2
3Sheet3
4
Sheet4
Cell Formulas
RangeFormula
F1:F3F1=DROP(TAKE(ShtNames,XMATCH(E2,ShtNames)),XMATCH(E1,ShtNames)-1)
B2B2=SUM(INDIRECT(F1#&"!b2"))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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