Recalculate sheets

%3CLINGO-SUB%20id%3D%22lingo-sub-1890665%22%20slang%3D%22en-US%22%3ERecalculate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1890665%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20attached%20excel%20file.%20The%20input%20sheet%20contains%20input%20data.%20I%20would%20like%20to%20separate%20data%20to%20different%20sheets.%20I%20use%20the%20following%20function%20in%20every%20cell%20on%20every%20sheet%20from%20A2%3A%3CBR%20%2F%3E%3CSPAN%3E%3DIFERROR(IF(ISBLANK(INDEX(Input!E%241%3AE%241000%3BSMALL(IF(MID(CELL(%22filename%22)%3B(FIND(%22%5D%22%3BCELL(%22filename%22))%2B1)%3B50)%3DInput!%24A%241%3A%24A%241000%3BROW(Input!E%241%3AE%241000)%3B%22%22)%3BROW()-1)))%3B%22%22%3BINDEX(Input!E%241%3AE%241000%3BSMALL(IF(MID(CELL(%22filename%22)%3B(FIND(%22%5D%22%3BCELL(%22filename%22))%2B1)%3B50)%3DInput!%24A%241%3A%24A%241000%3BROW(Input!E%241%3AE%241000)%3B%22%22)%3BROW()-1)))%3B%20%22%22)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20an%20interesting%20behaviour%2C%20when%20I%20change%20the%20sheet.%20The%20actual%20sheet%20do%20not%20recalculated.%20The%20automatic%20recalculation%20is%20switch%20on.%20How%20can%20I%20force%20the%20recalculation%20between%20sheet%20switches%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3C%2FP%3E%3CP%3EMikl%C3%B3s%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1890665%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1891418%22%20slang%3D%22en-US%22%3ERe%3A%20Recalculate%20sheets%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1891418%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F870398%22%20target%3D%22_blank%22%3E%40Mizso%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20issue%20seems%20that%20the%20arrays%20are%20all%20running%20at%20once%20across%20all%20tabs%20instead%20of%20independently%20and%20the%20reference%20to%20the%20tab%20name%20in%20real%20time%20does%20not%20support%20a%20dynamic%20pull%20since%20it%20is%20part%20of%20an%20array.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20workaround%20is%20the%20create%20a%20reference%20for%20the%20INDEX%20reference.%20Assuming%20we%20have%20the%20reference%20date%20in%20cell%20G1%20-%20this%20would%20be%20the%20adjusted%20formula%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFERROR(%0AIF(ISBLANK(%0AINDEX(Input!A%241%3AA%241000%2CSMALL(%0AIF(%24G%241%3DInput!%24A%241%3A%24A%241000%2CROW(Input!A%241%3AA%241000)%2C%22%22)%2CROW()-1)))%2C%22%22%2C%0AINDEX(Input!A%241%3AA%241000%2CSMALL(%0AIF(%24G%241%3DInput!%24A%241%3A%24A%241000%2CROW(Input!A%241%3AA%241000)%2C%22%22)%2CROW()-1)))%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22adversi_0-1605544915579.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F233793iB5D17CB5043A8F9E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22adversi_0-1605544915579.png%22%20alt%3D%22adversi_0-1605544915579.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20have%20to%26nbsp%3Bmake%20sure%20you%20are%20selecting%20ROW%202%3A50%20for%20each%20column%20separately%20to%20update%20the%20array.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi, 

 

I have the attached excel file. The input sheet contains input data. I would like to separate data to different sheets. I use the following function in every cell on every sheet from A2:
=IFERROR(IF(ISBLANK(INDEX(Input!E$1:E$1000;SMALL(IF(MID(CELL("filename");(FIND("]";CELL("filename"))+1);50)=Input!$A$1:$A$1000;ROW(Input!E$1:E$1000);"");ROW()-1)));"";INDEX(Input!E$1:E$1000;SMALL(IF(MID(CELL("filename");(FIND("]";CELL("filename"))+1);50)=Input!$A$1:$A$1000;ROW(Input!E$1:E$1000);"");ROW()-1))); "")

There is an interesting behaviour, when I change the sheet. The actual sheet do not recalculated. The automatic recalculation is switch on. How can I force the recalculation between sheet switches?

Best Regards,

Miklós

1 Reply

@Mizso 

The issue seems that the arrays are all running at once across all tabs instead of independently and the reference to the tab name in real time does not support a dynamic pull since it is part of an array.

 

The workaround is the create a reference for the INDEX reference. Assuming we have the reference date in cell G1 - this would be the adjusted formula:

 

=IFERROR(
IF(ISBLANK(
INDEX(Input!A$1:A$1000,SMALL(
IF($G$1=Input!$A$1:$A$1000,ROW(Input!A$1:A$1000),""),ROW()-1))),"",
INDEX(Input!A$1:A$1000,SMALL(
IF($G$1=Input!$A$1:$A$1000,ROW(Input!A$1:A$1000),""),ROW()-1))),"")

 

adversi_0-1605544915579.png

 

You will have to make sure you are selecting ROW 2:50 for each column separately to update the array.