SOLVED

Change references from one sheet to another

%3CLINGO-SUB%20id%3D%22lingo-sub-1734283%22%20slang%3D%22en-US%22%3EChange%20references%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1734283%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20there%2C%3C%2FP%3E%3CP%3EI%20have%20an%20issue%20and%20couldn't%20find%20a%20related%20argument%20already%20solved%2C%20kindly%20ask%20if%20somebody%20can%20help.%3C%2FP%3E%3CP%3EOn%20a%20Worksheet%20I%20have%20to%20update%20datas%20everyday%2C%20creating%20every%20day%20a%20new%20sheet%20that%20compares%20data%20to%20the%20previous%20sheet%20(created%20the%20day%20before).%20On%20some%20cells%20I%20have%20formulas%20that%20calculate%20the%20difference%20between%20the%20new%20sheet%20and%20the%20previous%20one%20so%20that%20I%20can%20see%20what%20happened%20from%20one%20day%20to%20the%20next%20one.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3CBR%20%2F%3EOn%20Sheet%20%26lt%3B02.10.2020%26gt%3B%3C%2FP%3E%3CP%3Eline%203%2C%20the%20formula%20is%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DB28-'01.10.2020'!B28%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eline%204%2C%20the%20formula%20is%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DB37-'01.10.2020'!B37%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20cells%20where%20containing%20the%20formulas%20are%20consequential%2C%20but%20the%20references%20are%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%202%20questions%20I%20have%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Is%20there%20a%20way%2C%20once%20I%20make%20a%20copy%20of%20the%20last%20sheet%20to%20create%20a%20new%20one%2C%20that%20the%20formula%20picks%20form%20itself%20the%20references%20from%20the%20previous%20sheet%3F%3C%2FP%3E%3CP%3ESomething%20like%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D'Current%20sheet'!B28-'Previous%20Sheet'!B28%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20Is%20there%20a%20way%2C%20once%20I%20insert%20manually%20the%20formula%20on%20the%20first%20cell%2C%20to%20drag%20that%20formula%20to%20the%20following%20cells%20but%20maintain%20the%20skip%20of%20line%20references%3F%3C%2FP%3E%3CP%3ESomething%20like%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D%22formula%20on%20cell%20B3%22%20(refer%20to%20previous%20sheet%20%2F%20line%2028)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E-DRAG%20DOWN%20FORMULA%20to%20cells%20B4%2C%20B5%2C%20B6%2C%20ecc....-%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EB4%3A%20(refer%20to%20previous%20sheet%20%2F%20line%2037)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EB5%3A%20(refer%20to%20previous%20sheet%20%2F%20line%2048)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Eecc...%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%20to%20those%20that%20will%20answer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1734283%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1736201%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20references%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1736201%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F816305%22%20target%3D%22_blank%22%3E%40nobiai%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20know%2C%20I%20can't%20help%20but%20wonder%20if%20there%20isn't%20another%20way%20altogether%20to%20go%20about%20this%20reporting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%2C%20for%20example%2C%20familiar%20with%20Excel%20%3CSTRONG%3EPivot%20Tables%3C%2FSTRONG%3E%3F%20A%20Pivot%20Table%20can%20report%20on%20data%20over%20time%2C%20showing%20results%20day-by%20-day%2C%20or%20week-by-week%2C%20or%20month-by-month%20in%20the%20same%20category.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou'd%20keep%20the%20data%20for%20each%20day%20all%20in%20the%20same%20database%2C%20just%20making%20sure%20there's%20a%20column%20for%20each%20row%20that%20contains%20the%20relevant%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20knowing%20exactly%20what%20happens%20with%20the%20data%20you're%20working%20with%2C%20once%20you've%20done%20the%20comparisons%20on%20a%20row-by-row%20basis%2C%20it's%20difficult%20to%20be%20certain%20that%20a%20different%20approach%20would%20even%20work.%20But%20let%20me%20ask%20if%20you'd%20even%20be%20open%20to%20that%3F%20If%20you%20were%2C%20I%20think%20you'd%20find%20it%20less%20complicated%2C%20and%20possibly%20more%20informative%20to%20those%20that%20need%20the%20results%20of%20the%20analysis.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFinally%2C%20is%20it%20possible%20to%20post%20a%20copy%20of%20the%20spreadsheets%3F%3CEM%3E%20Only%20do%20so%20if%20they%20don't%20contain%20confidential%20info.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1741740%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20references%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1741740%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3Bthanks%20for%20answering.%3C%2FP%3E%3CP%3EI'll%20attach%20the%20file.%3C%2FP%3E%3CP%3EI'm%20quite%20confident%20with%20pivot%20tables%2C%20but%20not%20enough%20to%20produce%20them%20in%20order%20to%20give%20me%20the%20result%20I%20need%2C%20for%20example%20to%20compare%20one%20sheet%20to%20the%20other.%3C%2FP%3E%3CP%3EI%20might%20gonna%20give%20it%20a%20try..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1741826%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20references%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1741826%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F816305%22%20target%3D%22_blank%22%3E%40nobiai%3C%2FA%3E%26nbsp%3B%2C%2C%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EQ1%3A%20Is%20there%20a%20way%2C%20once%20I%20make%20a%20copy%20of%20the%20last%20sheet%20to%20create%20a%20new%20one%2C%20that%20the%20formula%20picks%20form%20itself%20the%20references%20from%20the%20previous%20sheet%3F%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECopied%20version%20is%20just%20an%20identical%20to%20the%20source%20and%20if%20the%20source%20sheets%20does%20have%20any%20FORMULA%20LINKED%20with%20sheet%2Fsheets%20or%20Workbook%2C%20will%20remain%20as%20previous.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EQ2%3A%26nbsp%3B%3CSPAN%3E2)%20Is%20there%20a%20way%2C%20once%20I%20insert%20manually%20the%20formula%20on%20the%20first%20cell%2C%20to%20drag%20that%20formula%20to%20the%20following%20cells%20but%20maintain%20the%20skip%20of%20line%20references%3F%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3BFor%20alternate%20row%20reference%2C%20you%20need%20to%20work%20with%20%3CEM%3EMOD(Row(Range)%2CRowtopick)%3D0%26nbsp%3B%3C%2FEM%3E%20for%20example%2C%2C%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3DSUM(IF(MOD(ROW(%24A%241%3A%24A%2415)%2C2)%3D0%2C%24A%241%3A%24A%2415%2C0))%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20will%20SUM%20value%20from%20every%20second%20Row%20%2FSUM%20every%20second%20value%20in%20Range%20A1%3AA15%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1742208%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20references%20from%20one%20sheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1742208%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F816305%22%20target%3D%22_blank%22%3E%40nobiai%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20sorry%2C%20but%20I%20can't%20figure%20out%20how%20to%20navigate%20those.%20Part%20of%20that%20is%20language%2C%20of%20course%2C%20and%20I%20have%20to%20apologize%20for%20my%20limitations%20in%20that%20regard.%20But%20beyond%20that%2C%20we'd%20need%20to%20sit%20together%20face-to-face%2C%20unless%20you%20can%20really%20provide%20a%20good%20description%20of%20what%20all%20those%20sections%20of%20the%20various%20sheets%20are%20about.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello there,

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.

 

Example:
On Sheet <02.10.2020>

line 3, the formula is:

=B28-'01.10.2020'!B28

line 4, the formula is:

=B37-'01.10.2020'!B37

 

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?

Something like: 

='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?

Something like:

="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)

ecc...

 

Thanks a lot to those that will answer.

 

7 Replies
Highlighted

@nobiai 

 

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.

Highlighted

@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..

Highlighted

@nobiai ,,,

 

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,,,

 

=SUM(IF(MOD(ROW($A$1:$A$15),2)=0,$A$1:$A$15,0))

 

This will SUM value from every second Row /SUM every second value in Range A1:A15

Highlighted

@nobiai 

 

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.

Highlighted

@Rajesh-S 

Thanks for answering.

I'm not that smart to understand the whole hint, but I will sit on that for a while and make some practice. Hopefully I will get through that.

Thanks again

Best Response confirmed by nobiai (New Contributor)
Solution

@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. 

Highlighted