Forum Discussion
IF function with calculation based on other cell
Let me explain the answer briefly.
First, the syntax of IFS is as follows =IFS(condition1,result1,condition2,result2,condition3,result3,....etc)
It stops once it reaches a condition that is satisfied.
I initially wrote it without the ABS, which gets the absolute difference between the two numbers, no matter which is the larger. Whether C7 is larger or smaller than D7 by those prescribed conditional limits, this will produce your desired results.
- amangarJun 09, 2020Copper Contributor
mathetes I don't have the IFS function for my Excel. It looks like it doesn't apply to the MS Office package I bought.
- mathetesJun 09, 2020Silver Contributor
It might be in the most recent update.
If not, however, you can nest IF functions within one another.
=IF(condition1,result1,IF(condition2,result2,IF(condition3,result3,IF(condition4,result4,"NA"))))