How to add OR statement

S

superkopite

Hiya guys and gals

Could someone please tell me how to add an OR statement to the
following formula;

=IF(C4<=TODAY()+28,"ILLEGAL","LEGAL")

At the moment if C4 is less than todays date + 28 then write illegal

What i need is to say if C4 is less than todays date + 28 OR E4= yes
then write illegal

I'm sure this is very easy and just a case of me getting my brackets
and commas the wrong way round!!

Cheers

James
 
L

Leith Ross

Hello James,

=IF(OR(C4<=TODAY()+28, E4 = "YES"),"ILLEGAL","LEGAL")

SIncerely,
Leith Ross
 
S

superkopite

Thanks a lot Leith it works a treat.

If only i could work out where to put my dashes, commas, brackets
etc!!

Thanks again
 

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