More IF Statement questions

W

Wonder

Thanks for all your help on my other IF question but I have another.


I want to say the following:

If G4=Y and I4=Y, enter the valule of 2. But if G4=Y and I4=N, enter
the value of 1. But if G4=N and I4=Y, enter the value of 1. But if
G4=N and I4=N, enter the value of 0.


I tried to figure it out, but I really don't know.
 
B

Bob Phillips

=IF(G4="Y",IF(I4="Y",2,1),IF(I4="Y",1,0))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

=IF(AND(G4="Y", I4="Y"),2,IF(AND(G4="N", I4="Y"),1,IF(AND(G4="Y",
I4="N"),1,0)))


Hope this helps.
 

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

Similar Threads


Top