#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default OR Function

Hi

I have a problem with my or function. It should report the number of days
before today.

=(IF(OR(E5="0",E5<A5),"Invalid date",DAY(A5-E5)))

A5= today's date, E5 = any date
I want future dates marked as "Invalid date requested"
If E5 is a past date it works, but sometimes E5 is a future date, if I
change E5A5 it shows every date as invalid.

Thanks

Wendy


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default OR Function

Hi


=IF(OR(E5="0",E5<A5),"Invalid date",E5-A5)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )




"Wendy" wrote in message
...
Hi

I have a problem with my or function. It should report the number of days
before today.

=(IF(OR(E5="0",E5<A5),"Invalid date",DAY(A5-E5)))

A5= today's date, E5 = any date
I want future dates marked as "Invalid date requested"
If E5 is a past date it works, but sometimes E5 is a future date, if I
change E5A5 it shows every date as invalid.

Thanks

Wendy




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default OR Function

Somewhat better one

=IF(OR(E5*1=0,E5<A5),"Invalid date",E5-A5)



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


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
how do you write format results of a function within a function? sangee Excel Worksheet Functions 3 June 14th 07 12:45 AM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 10:04 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"