Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do you write format results of a function within a function? | Excel Worksheet Functions | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |