#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default formula

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default formula

Help with cell function wrote:
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"))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default formula

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"),""))

--
Biff
Microsoft Excel MVP


"Help with cell function"
wrote in message ...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default formula

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

If this post helps click Yes
---------------
Jacob Skaria


"Help with cell function" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default formula

=IF(E2="y",IF(G2<=14,"y",IF(G2=15,"n","answer for G2 between 14 and 15
undefined")),IF(E2="n",IF(G2<=30,"y",IF(G2=31,"n" ,"answer for G2 between 30
and 31 undefined")),"answer for E2 neither y nor n undefined"))
or
=IF(OR(AND(E2="y",G2<=14),AND(E2="n",G2<=30)),"y", IF(OR(AND(E2="y",G2=15),AND(E2="n",G2=31)),"n"," answer
undefined"))
--
David Biddulph

Help with cell function wrote:
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"