View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.newusers
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default If with reference

Hi,

Here is a rather short approach

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

and copy down.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Pran" wrote:

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