How to Force New Google Spreadsheets to refresh and recalculate?

前端 未结 7 1921
后悔当初
后悔当初 2020-12-14 15:16

There were some codes written for this purpose but with the new add-ons they are no longer applicable.

Thanks in advance, Iddo

7条回答
  •  轮回少年
    2020-12-14 16:04

    When the problem is in the recalculation of an IF condition, I add AND(ISDATE(NOW());condition) so that the cell is forced to recalculate according to what is set in the Calculation tab in Spreadsheet Settings as explained before.

    This works because NOW is one of the functions that is affected by the Calculation setting and ISDATE(NOW()) always returns TRUE.

    For example, in one of my sheets I had the following condition which I use to check whether a sheet with name stored in C1 is already created:

    =IF(ISREF(INDIRECT(C$1&"!A1")); TRUE; FALSE)
    

    In this case C1="February", so I expected the condition to become TRUE when a sheet with this name was created, which didn't happen. To force it to update, I changed the Calculation setting and used:

    =IF(AND( ISDATE(NOW()) ; ISREF(INDIRECT(C$1&"!A1")) ); TRUE; FALSE)
    

提交回复
热议问题