Force google sheet formula to recalculate

后端 未结 3 1313
后悔当初
后悔当初 2020-12-09 19:10

I have an index/match formula that matches a specific file based on the date value of certain cells. Here\'s the formula:

=IFERROR(INDEX(INDIRECT(\"\'\"&         


        
相关标签:
3条回答
  • 2020-12-09 19:15

    Here's another solution, albeit one that is computationally expensive: pass the range to be considered in the calculation to the function. That way, any time that a value changes in the passed range or that the range itself changes (such as inserting a row within the range), the formula is recalculated.

    Example: Try this simple function.

    function testPassRange( calcRange ) 
    {
        return calcRange.length ; 
    }
    
    0 讨论(0)
  • 2020-12-09 19:24

    Short answer

    Your formula is not being recalculated because its arguments do not change. The solution is, as you already figured out by yourself, to re-enter the proper arguments into cells that your formula references to.

    Explanation

    Google Sheets formulas are recalculated when

    1. The spreadsheet is open
    2. The function arguments changes
    3. The functions NOW, TODAY, RAND, and RANDBETWEEN are updated are according to the spreadsheet settings, on change, on change and every minute, on change and every hour
    4. External data functions recalculate at the following intervals:
      • ImportRange: 30 minutes
      • ImportHtml, ImportFeed, ImportData, ImportXml: 1 hour
      • GoogleFinance: may be delayed up to 20 minutes

    Note: Some functions and custom functions doesn't allow not deterministic functions as arguments.

    References

    • Change a spreadsheet's locale, time zone, recalculation, and language
    0 讨论(0)
  • 2020-12-09 19:28

    I found an easy solution to my problem. I wrote a script to essentially re-enter the proper dates into cells that my formula references to and the formulas updated.

    0 讨论(0)
提交回复
热议问题