Forum Discussion
IFS
- Sep 23, 2021Solved .. Thanks a lot.
choongko Try it this way:
=IFS(B2=0,"NA",B2<=A2,"P",B2>A2,"F")
in C2 and copy it down.
This is what the Help screen says about the use of the IFS function:
"The IFS function checks whether one or more conditions are met, and returns a value that corresponds to the first TRUE condition."
- choongkoSep 22, 2021Brass ContributorStrange, I am still getting the same error.
- Riny_van_EekelenSep 22, 2021Platinum Contributor
choongko Then your Excel version probably doesn't support the IFS function. From the help screens, this is what it says:
"Note: This feature is available on Windows or Mac if you have Office 2019, or if you have a Microsoft 365 subscription"
So, if IFS doesn't work in your Excel version you are stuck with regular nested IF functions.
EDIT: Should have seen this from the start as the #NAME? error indicates that Excel doesn't recognise something as a valid function. But I just copied your original formula into a mock-up schedule and got a different error. Then I focussed on resolving that error in stead of addressing the name error.
- JSHEP73Sep 23, 2021Brass ContributorTry in C2 and copy down:
=IF(B2=0,"NA",IF(B2<=A2,"P","F"))