{"text_format":"3","workbook":"xlsx","n_sheets":1,"sheets":["Sheet1"],"read":"whole","date_system":"1900"}

{"sheet":"Sheet1","index":0,"n_rows":20,"n_cols":4,"rows_kept":20}
["Date","DAY()","Formula Text","Comments"]
[{"v":45651,"d":"45651.00"},{"$f":"DAY(A2)","v":25},{"$f":"_xlfn.FORMULATEXT(B2)","v":"=DAY(A2)"},"Cell reference"]
[null,{"$f":"DAY(DATE(2024,12,25))","v":25},{"$f":"_xlfn.FORMULATEXT(B3)","v":"=DAY(DATE(2024,12,25))"},"Using DATE function"]
[45651,{"$f":"DAY(A4)","v":25},"=DAY(A4)","Integer serial number"]
[45651.9,{"$f":"DAY(A5)","v":25},"=DAY(A5)","Serial number with fractional part"]
[]
["1900-01-01",{"$f":"DAY(A7)","v":1},{"$f":"_xlfn.FORMULATEXT(B7)","v":"=DAY(A7)"},"Smallest accepted serial number"]
["1900-01-02",{"$f":"DAY(A8)","v":2},{"$f":"_xlfn.FORMULATEXT(B8)","v":"=DAY(A8)"}]
["2025-12-25",{"$f":"DAY(A9)","v":25},{"$f":"_xlfn.FORMULATEXT(B9)","v":"=DAY(A9)"}]
["9999-12-31",{"$f":"DAY(A10)","v":31},"=DAY(A10)","Largest accepted serial number"]
[]
[]
["Formula","Formula Text","Comments"]
[{"$f":"DAY(SQRT(-1))","v":{"$error":"#NUM!"}},{"$f":"_xlfn.FORMULATEXT(A14)","v":"=DAY(SQRT(-1))"},"Example of error propagation"]
[{"$f":"DAY(\"str\")","v":{"$error":"#VALUE!"}},{"$f":"_xlfn.FORMULATEXT(A15)","v":"=DAY(\"str\")"},"Unable to convert date argument to a number"]
[{"$f":"DAY(10/0)","v":{"$error":"#DIV/0!"}},"=DAY(10/0)","Input causes a #DIV/0! error"]
[{"$f":"DAY(-5)","v":{"$error":"#NUM!"}},{"$f":"_xlfn.FORMULATEXT(A17)","v":"=DAY(-5)"},"Negative serial number"]
[{"$f":"DAY(0)","v":0},{"$f":"_xlfn.FORMULATEXT(A18)","v":"=DAY(0)"},"Zero serial number"]
[{"$f":"DAY(2958466)","v":{"$error":"#NUM!"}},{"$f":"_xlfn.FORMULATEXT(A19)","v":"=DAY(2958466)"},"Serial number too large"]
[{"$f":"DAY(DATE(1900,2,29))","v":29},{"$f":"_xlfn.FORMULATEXT(A20)","v":"=DAY(DATE(1900,2,29))"},"Excel considers this 29/02/1900 (although 1900 was not a leap year)"]