cell1+cell2<cell3 then (cell1+cell2) X 0.062
cell1+cell2>cell3 then (cell3-cell1) X 0.062
How would I write this formula?
cell1+cell2<cell3 then (cell1+cell2) X 0.062
cell1+cell2>cell3 then (cell3-cell1) X 0.062
How would I write this formula?
IF(condition,value_if_true,value_if_false)
=IF(cell1+cell2<cell3,(cell1+cell2)*.062,(cell3-cell1)*.062) Note that your problem statement doesn't specify what to do if cell1+cell2=cell3. I've put this condition in with the case where cell1+cell2>cell3. Adapt as needed.
I just realized that if cell1 is greater than cell3 then the results should be zero. How would I account for that?
Nest the above IF function inside of a another IF function
=IF(cell1>cell3,0,IF(...)) Note that Excel is limited to 7 nested IF's, so if your decision tree has many more branches to it, you'll need to come up with another approach.
Thanks for your help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks