Created attachment 196985 [details] screenshot =DATEDIF("2024-01-01"; "1859-01-01"; "y") return error 502 with all parameters marked as correct (see screenshot) Maybe need return -165 or need error massage improvments
This is not a bug. 1. The function is *documented* [1], that "End date must be later, than Start date". 2. The error codes are documented [2], and error 502 is "Function argument is not valid" (and "Error: Invalid argument" will be displayed in the status bar, if you have this formula in the current cell). An enhancement could be to show that "Invalid argument" string in the wizard, too. Setting this enhancement to NEW. [1] https://help.libreoffice.org/latest/en-US/text/scalc/01/func_datedif.html?DbPAR=CALC [2] https://help.libreoffice.org/latest/en-US/text/scalc/05/02140000.html?DbPAR=CALC