LUIS FREUND
asked on
Calculating a value based on another cell.
Calculating a value based on another cell.
On Column M, the calculation should be as follows:
I'll use rows 27 and 14 as my example.
If J27 is less than E27, then multiple J27 *K27 to get the value.
and/or
If J14 is greater than E14, then multiple E14 * K14 to get value.
See attachment.
C--Users-lfreund-Downloads-COST4.xlsx
On Column M, the calculation should be as follows:
I'll use rows 27 and 14 as my example.
If J27 is less than E27, then multiple J27 *K27 to get the value.
and/or
If J14 is greater than E14, then multiple E14 * K14 to get value.
See attachment.
C--Users-lfreund-Downloads-COST4.xlsx
ASKER
Ah yes....forgot to include that.
If J27 and E27 is equal then it's J27 * K27.
What's the whole formula for this? Many Thanks!
If J27 and E27 is equal then it's J27 * K27.
What's the whole formula for this? Many Thanks!
Based on the criteria you've given, you want the two numbers to be multiplied any time they aren't equal. This will give you the result you want, just replace A1 and B1 as appropriate.
EDIT:
Based on your followup comment, you simply want the two numbers multiplied every time, so
=IF(A1<>B1, (A1*B1), "Equal")
EDIT:
Based on your followup comment, you simply want the two numbers multiplied every time, so
=(A1*B1)
So the formula would be:
=IF(J27 <= E27, J27*K27, E27 * K27)
EDIT again:
Are you asking how test different conditions?
Are you asking how test different conditions?
=IF(A5>B5, "A", IF(A5<B5,"B", "Equal"))
ASKER
Hi Shaun, Thanks but after applying your formula I got some that are not adding up. Those are highlighted in red, the green ones are good. See attachment.
C--Users-lfreund-Downloads-COST4.xlsx
C--Users-lfreund-Downloads-COST4.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much Shums, Paul and Shaun.
Am I missing something when closing? In the past I was able to award points but It doesn't give me that option anymore.
Am I missing something when closing? In the past I was able to award points but It doesn't give me that option anymore.
The general formula to use is:
Open in new window
If you need a third value then the formula looks like this:Open in new window