If with reference

  • Thread starter Thread starter Pran
  • Start date Start date
P

Pran

Hi,

I have workbook as follow:

A1 is "Employee" or "Spouse" or "Dependent"
B1 is age of A1

I wish in C1 :

if A1 is "Employee" or "Spouse", result will be Yes

But, if A1 is "dependent", then should refer to the B1 column, which is, if
age is less then 20, result also Yes, otherwise No.

Could you advise me?

Regards,
Pran
 
Try in C1:
=IF(COUNTA(A1:B1)<2,"",IF(OR(A1={"Employee","Spouse"}),"Yes",IF(AND(A1="dependent",B1<20),"Yes","No")))
Copy down

Ok? Click YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
 
Hi,

Here is a rather short approach

=IF(AND(A1="dependent",B1>=20),"No","Yes")

and copy down.
 

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

Lookup? 7
Multiple Table Query 1
vlookup and if function 4
Need help with conditions Liz 2
Excel 2
SUMIF "value if false" not working 2
If statement formulas 13
Time Calculations Help 4

Back
Top