#1   Report Post  
SCOOBYDOO
 
Posts: n/a
Default If function help

Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )
  #2   Report Post  
 
Posts: n/a
Default

Hi

Try this:
=IF(BY2="N",IF(M2<4,"None","Married"),IF(AND(BY2=" Y",M2=4),"Family",IF(AND(BY2="C",OR(M2=2,M2=3))," Single","")))

--
Andy.


"SCOOBYDOO" wrote in message
...
Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(AND(OR(M2=1,M2=2,M2=3),B2="N"),"None",IF(AND(O R(M2=2,M2=3),B2="C"),"Sing
le",IF(M2=4,IF(B2="N","Married","Family"))))

--
HTH

Bob Phillips

"SCOOBYDOO" wrote in message
...
Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )



  #4   Report Post  
bj
 
Posts: n/a
Default

Try
=if(M1=4,if(BY1="N","Married","Family"),if(BY1="N ","None",If(M1=1,"????",""Single")
I assumed you meant if grade = 4 and BY = C
I don't know what you want when grade is 1 and BY is C

"SCOOBYDOO" wrote:

Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )

  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way (assuming your "Y" in the last line should have been a "C"):

=CHOOSE(IF(BY1="N",2*(M1=4),(M11)+2*(M13)+1),"N one","Single","Married"
,"Family")

In article ,
SCOOBYDOO wrote:

Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )



  #6   Report Post  
Lewis Clark
 
Posts: n/a
Default

I think this will answer your question:

=IF(AND(M2<=3, BY2="n"), "none", IF( AND( OR(M2=2, M2=3), BY2="c"), "single", IF( AND( M2=4, BY2="n"), "Married", IF( AND( M2=4, BY2="c"), "Family", €śunknown€ť))))

Comments:
1. Put this formula in the desired column and copy down. I assumed the data started in row 2, so adjust as needed.
2. You didn't specify the result of GRADE = 1 and BY = C, so I put in "unknown". Change as you need to.
3. I assumed "family" was the answer if GRADE = 4 and BY = "C".

Hope this helps.



"SCOOBYDOO" wrote in message ...
Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )

  #7   Report Post  
LanceB
 
Posts: n/a
Default

=IF(M1=4,IF(BY1="Y","Family","Married"),IF(BY1="C" ,"Single","None"))

Assumes only your given conditions can exist. For example you would never
have a 1 in column M and a "C" in Column BY

"SCOOBYDOO" wrote:

Hi, I need help with the following please:

Col M = Grade (values 1 - 4) and column BY is populated with either a C or
an N. I need a formula to work out entitelement based on the following:
If Grade = 1, 2 or 3 and BY = N then the answer is None
If Grade = 2 or 3 and BY = C then the answer is Single
If Grade = 4 or above and BY = N then the answer is Married
If Grade = 4 or above and BY = Y then the answer is Family

Tahnks in advance ; )

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


All times are GMT +1. The time now is 08:38 PM.

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

About Us

"It's about Microsoft Excel"