More than one IF Statement

G

Guest

I want to do the following: IF H8="Yes" then the sum in G8, IF H8="Yes" AND
J8="Yes" then G8 + I8. However, if J8 is blank then it only adds G8.
 
G

Guest

=IF(AND(H8="YES",J8="YES"),G8+I8,G8)

I think this should work..will you have answers other than YES and blank?
 
J

Jason Morin

One way:

=G8*(H8="yes")+I8*(J8="yes")*(H8="yes")

or a little shorter:

=(H8="yes")*(G8+I8*(J8="yes"))

HTH
Jason
Atlanta, GA
 
J

Jason Morin

This will return the value in G8 if H8 does not
equal "yes".

HTH
Jason
Atlanta, GA
 

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