Oct 01 2020 05:29 AM
Oct 01 2020 05:29 AM
I have an issue and couldn't find a related argument already solved, kindly ask if somebody can help.
On a Worksheet I have to update datas everyday, creating every day a new sheet that compares data to the previous sheet (created the day before). On some cells I have formulas that calculate the difference between the new sheet and the previous one so that I can see what happened from one day to the next one.
On Sheet <02.10.2020>
line 3, the formula is:
line 4, the formula is:
The cells where containing the formulas are consequential, but the references are not.
The 2 questions I have:
1) Is there a way, once I make a copy of the last sheet to create a new one, that the formula picks form itself the references from the previous sheet?
='Current sheet'!B28-'Previous Sheet'!B28
2) Is there a way, once I insert manually the formula on the first cell, to drag that formula to the following cells but maintain the skip of line references?
="formula on cell B3" (refer to previous sheet / line 28)
-DRAG DOWN FORMULA to cells B4, B5, B6, ecc....-
B4: (refer to previous sheet / line 37)
B5: (refer to previous sheet / line 48)
Thanks a lot to those that will answer.
Oct 01 2020 10:49 AM
You know, I can't help but wonder if there isn't another way altogether to go about this reporting.
Are you, for example, familiar with Excel Pivot Tables? A Pivot Table can report on data over time, showing results day-by -day, or week-by-week, or month-by-month in the same category.
You'd keep the data for each day all in the same database, just making sure there's a column for each row that contains the relevant date.
Not knowing exactly what happens with the data you're working with, once you've done the comparisons on a row-by-row basis, it's difficult to be certain that a different approach would even work. But let me ask if you'd even be open to that? If you were, I think you'd find it less complicated, and possibly more informative to those that need the results of the analysis.
Finally, is it possible to post a copy of the spreadsheets? Only do so if they don't contain confidential info.
Oct 03 2020 03:14 AM
@mathetes thanks for answering.
I'll attach the file.
I'm quite confident with pivot tables, but not enough to produce them in order to give me the result I need, for example to compare one sheet to the other.
I might gonna give it a try..
Oct 03 2020 04:00 AM
Q1: Is there a way, once I make a copy of the last sheet to create a new one, that the formula picks form itself the references from the previous sheet?
Copied version is just an identical to the source and if the source sheets does have any FORMULA LINKED with sheet/sheets or Workbook, will remain as previous.
Q2: 2) Is there a way, once I insert manually the formula on the first cell, to drag that formula to the following cells but maintain the skip of line references?
For alternate row reference, you need to work with MOD(Row(Range),Rowtopick)=0 for example,,,
This will SUM value from every second Row /SUM every second value in Range A1:A15
Oct 03 2020 09:39 AM
I'm sorry, but I can't figure out how to navigate those. Part of that is language, of course, and I have to apologize for my limitations in that regard. But beyond that, we'd need to sit together face-to-face, unless you can really provide a good description of what all those sections of the various sheets are about.
Oct 04 2020 11:42 AMSolution
@nobiaiIt's probably best to use "Find and Replace" (Ctrl-H) to update the links to the previous sheet. For example, when you create a new sheet for "04.10" from sheet "03.10", select all cells in the new sheet, Find "02.10!' and replace with '03.10!'. Takes about three seconds to accomplish.