![]() |
|
#1
|
||||
|
||||
![]()
Why are you persisting with the LEFT function? Surely you could use:
IF(B16=42185,1,0) You'd only need to use: IF(INT(B16)=42185,1,0) if the value in B16 might include a time component. In either case, the fact the date in B16 might be calculated makes no difference. As for Quote:
=IF(AND(Month(B16)=6,DAY(B16)=30),1,0) Again, the fact the date in B16 might be calculated makes no difference. In this case, neither does the possibility that the date might include a time component.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clearing format and its effect on background color or a range, Excel 2010 | Aria | Excel | 0 | 11-03-2014 11:21 PM |
![]() |
lcaretto | Excel Programming | 2 | 05-26-2014 07:19 PM |
![]() |
Mattblack | Word | 1 | 04-10-2014 03:06 PM |
Converting a left to right doc to a right to left | seli | Word | 3 | 04-23-2012 11:39 PM |
Change format of date when using Now function in VB code | Bondai | Excel Programming | 2 | 03-02-2012 05:09 PM |