Simple Formula Help?

G

Guest

I'm having difficulty with a formula and need some help.

I'm attempting to do the following:

If K12 = "no" then total = 0
If K12 and D12 = "yes" then total = C12 x 70%
If K12 ="yes" and D12 = "No" then total = C12

This is what I have:

=IF((K12="Yes",D12=Yes),(C12)*0.7,0),((IF((K12=Yes,D12=No),(C12),0)))
 
G

Guest

hi
try this....
=IF(AND(K12="Yes",D12="Yes"),C12*0.7,IF(AND(K12="Yes",D12="No"),C12,0))

regards
FSt1
 
R

Rick Rothstein \(MVP - VB\)

See if this does what you want...

=IF(K12="yes",IF(D12="yes",0.7*C12,C12),0)

If K12 is "no" or ANY OTHER text not equal to "yes", the formula returns 0.

Rick
 
R

Rick Rothstein \(MVP - VB\)

Ah yes, use the multiplication to transform the FALSE to zero... nice. Here
is a 2-character shorter formula built around the same idea...

=(K12="yes")*(1-0.3*(D12="yes"))*C12

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top