A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The issue is that the IFS function is returning the text string "F25-i25+J25" instead of calculating the expression, and the logic does not match the stated requirement.
- To return the calculated value of
F25 - I25 + J25whenF25 > I25, and0otherwise, use anIF(orIFS) with the expression outside the quotes:
=IF(F25>I25, F25 - I25 + J25, 0)
- If specifically wanting to use
IFSfor this simple case, it would be:
=IFS(F25>I25, F25 - I25 + J25, F25<=I25, 0)
Key points based on IFS syntax:
- Each
logical_testmust be followed by the correspondingvalue_if_true. - Text values must be in quotes; formulas and cell references must not be in quotes.
References: