- Messages
- 1,162
- Reaction score
- 6,306
- Points
- 523
in w_08 the formula i used to calculate Discount code is =if(D27="b",(E26/10)*100,D27="c"(E26/15)*100,0)
but its wrong what formula sud i use AAnsarii
=IF(D26<>"",IF(D26="a",0,IF(D26="b",10/100*E25,15/100*E25)),"")
three possibilities 4 d discount code. start wid a.
if it's a, qp says 0. anything multiplied by 0 = 0, so no need of multiplication.
if its nt dat, it cn be b or c. if b, 10% of subtotal. of=multiplication, 10% = 10/100. so 10/100*Subtotal.
if its nt either of d above, it must be c, so 15% of subtotal --> 15/100*subtotal.
n if no value is in D26, show empty.