Spreadsheet formula not working with some expressions

Hi team,

I have this formula in the Spreadsheet to calculate years from initial date until Today(), it works perfect:
3X_6_1_6121bed68c66814f9a401c5cf808bef40827b474.png

field โ€œSpreadsheet formulaโ€ in AppSheet:
DATEDIF(RC[-1], TODAY(),โ€œYโ€)

Every new record, appsheet puts the formula, perfectly.
Butโ€ฆ when the formula is little bit complex, like bringing the initial date from another sheet in the spreadsheet, appSheet doesnโ€™t put anything at allโ€ฆ leave the cell in blank. This is the formula thatโ€™s seems to give issues:

and this is what AppSheet puts in the field โ€œSpreadsheet formulaโ€:
=ArrayFormula(DATEDIF(RC[-1], VLOOKUP(RC[-8], {AtencionAmbul!C1:C1, AtencionAmbul!C9:$I}, 2, false),โ€œYโ€))

I have regenerated the columns, nothing. Put the old formula again, and works fineโ€ฆ

0 4 482
4 REPLIES 4

I would send this to support@appsheet.com as it seems to be a bug.

I suggest that taking this occassion, get out of the spreadsheet formula, which is not recommended to use in spreadsheet Appsheet app is based on. I reckon you can reproduce the same function by Appsheet expression instead of spreadsheet formula.

Bahbus
New Member

If I recall correctly, this could also be a fundamental thing with spreadsheets formulas within AppSheet - I believe this is to explicitly prevent AppSheet from being ever able to access data outside of the scope that it is allowed within the app.

If I remember this correctly, sheet formulas as TODAY(), NOW() etc. are recalculated virtually on your spreadsheet and those updates are not reflected via API what your app is using. You can easily test this if you use NOW() on your spreadsheet. If you set the update as On change and every minute, you will see the new timestamp from your spreadsheet, but it doesnโ€™t change the timestamp in your app even you sync the app.

Top Labels in this Space