Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default How to add OR statement


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


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=504609

  #2   Report Post  
Posted to microsoft.public.excel.misc
Leith Ross
 
Posts: n/a
Default How to add OR statement


Hello James,

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

SIncerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=504609

  #3   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default How to add OR statement

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

"superkopite" wrote:


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


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=504609


  #4   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default How to add OR statement


Thanks a lot Leith it works a treat.

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

Thanks again


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=504609

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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM


All times are GMT +1. The time now is 12:32 AM.

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"