MartinBecks
New Member
- Joined
- Jul 7, 2014
- Messages
- 12
I'm having difficulty executing an IF, AND & OR nested statement. I want to calculate a simple payback that includes an incentive amount. There's a drop-down cell, K64, that has five choices. Depending on what is selected it either references dollar amounts in either Q64 or U64 and compares it to the savings P72. Then depending on the selections and comparisons it should calculate the simple payback. The first three IF statements work great but I'm still having issues with the last two.
The 2 issues are:
1. When nothing is selected in the drop-down cell, K64, the formula currently returns #VALUE! instead of a blank cell.
2. I can't get the last two IF statements to calculate a value. When I try, it returns a #VALUE!.
It's in PHP code because plain text kept deleting 1/2 of the IF statements.
<p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5)) p72,
<p72, k64="K$185)," (q64-(q64*0.5))="" p72,
<p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5)) p72,
<p72, k64="K$185)," (q64-(q64*0.5))="" p72,
I feel so close but I can't find my error. Please help. Your comments are appreciated.
Using Excel 2010</p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))></p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))></p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))>
The 2 issues are:
1. When nothing is selected in the drop-down cell, K64, the formula currently returns #VALUE! instead of a blank cell.
2. I can't get the last two IF statements to calculate a value. When I try, it returns a #VALUE!.
It's in PHP code because plain text kept deleting 1/2 of the IF statements.
<p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5)) p72,
<p72, k64="K$185)," (q64-(q64*0.5))="" p72,
<p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5)) p72,
<p72, k64="K$185)," (q64-(q64*0.5))="" p72,
PHP:
=IF(K64=K$184,"Insert #",IF(AND(U64*0.5P72, OR(K64=K$181,K64=K$182,K64=K$183)),(U64-P72)/P72,IF(AND((Q64*0.5)P72, K64=K$185), (Q64-(Q64-P72))/P72, "")))))
I feel so close but I can't find my error. Please help. Your comments are appreciated.
Using Excel 2010</p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))></p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))></p72,></p72,or(k64=k$181,k64=k$182,k64=k$183)),(u64-(u64*0.5))>