formula

  • Thread starter Help with cell function
  • Start date
H

Help with cell function

E G H
2 y 14 y

What is the formula if E2 = y and G2= 14 or less, I want H2 to = y
What is the formula if E2 = n and G2= 30 or less, I want H2 to = y
What is the formula if E2 = y and G2= 15 or more, I want H2 to = n
What is the formula if E2 = n and G2= 31 or more, I want H2 to = n
 
G

Glenn

Help said:
E G H
2 y 14 y

What is the formula if E2 = y and G2= 14 or less, I want H2 to = y
What is the formula if E2 = n and G2= 30 or less, I want H2 to = y
What is the formula if E2 = y and G2= 15 or more, I want H2 to = n
What is the formula if E2 = n and G2= 31 or more, I want H2 to = n


=IF(E2="Y",IF(G2<=14,"Y","N"),IF(G2<=30,"Y","N"))
 
T

T. Valko

Assuming G2 will not be an empty/blank cell:

=IF(E2="y",IF(G2<=14,"y","n"),IF(E2="n",IF(G2<=30,"y","n"),""))
 
J

Jacob Skaria

=IF(AND(G2<>"",E2<>""),IF(E2="y",IF(G2<=14,"Y","N"),IF(G2<=30,"Y","N")),"")

If this post helps click Yes
 

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