Sep 21 2021 04:55 PM
Not sure if I am trying something that is impossible? I have a timesheet tracking workbook. Each sheet's name changes dynamically to a job number, when I enter the job number into a cell at the top of each individual sheet.
Example below... update cell E2 to "MJN Job 3" the sheet is automatically named "MJN Job 3"
Currently I have 10 sheets in my work book. We have grown past this, and some weeks we have well over 10 jobs. I want to make a Macro to add sheets. That part is easy. However, all the sheets total on one summary sheet. My current code in the summary sheet is simple...(example above) ='test test'!D42+'MJN 21MJNtest'!D42+'MJN Job 3'!D42... etc.
Can I, or is it possible to have a formula that would know to grab/add all of Cell D42's, from what ever sheets are between let's say sheet "MJN Job 1", and sheet "MJN Job 100"... depending how many sheets I may add?
Sep 21 2021 05:35 PM - edited Sep 21 2021 05:47 PM
SolutionAdd the sum formula into the desired cell
Considering the names you gave us, your formula will look like that
=SUM('test test:MJN Job 3'!D42)
In other words
=SUM('FirstSheet:LastSheet'!D42)
Replace FirstSheet and LastSheet with the worksheet names you wish to sum between.
We can change this to be more dynamic, making it even easier to use. Instead of using the names of the first and last sheets, you can create two blank sheets to act as bookends for your calculation.
Sep 22 2021 05:19 AM
Dec 05 2023 07:06 AM
Sep 21 2021 05:35 PM - edited Sep 21 2021 05:47 PM
SolutionAdd the sum formula into the desired cell
Considering the names you gave us, your formula will look like that
=SUM('test test:MJN Job 3'!D42)
In other words
=SUM('FirstSheet:LastSheet'!D42)
Replace FirstSheet and LastSheet with the worksheet names you wish to sum between.
We can change this to be more dynamic, making it even easier to use. Instead of using the names of the first and last sheets, you can create two blank sheets to act as bookends for your calculation.