A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
=MIN(D27*E27, IF(F27<0,F27,F27*G27))
or
=MIN(D27*E27, F27*IF(F27<0,1,G27))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have the following formula =MIN(D27*E27, F27*G27) which is used to find the lower of two sums. The problem I have is that I want to ignore the result if Cell F27 is a negative number as this produces an incorrect result.
My question then is how do I amend the formula to ignore the calculation if the number in F27 is negative and instead simply use the value of F27 .
In other words, use the existing formula where F27 is positive, but if negative, then simply use the value in F27 even though it is negative.
Thanks in advance
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
=MIN(D27*E27, IF(F27<0,F27,F27*G27))
or
=MIN(D27*E27, F27*IF(F27<0,1,G27))