Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have formatted your columns as dates then the contents are jus
numbers (try one cell - Copy/Edit Paste Special Values). You therefore use them the same as any other number eg. IF(A1<B1,1,0) To use a hard coded date in the comparison formula it needs to be se to a number :- eg. =IF(A1DATEVALUE("1/1/92"),"After","Before") =IF(YEAR(A1)<1992,"Before","After") This is duplicated in code by If ....Then ... Else .. Beware. VBA changes hard coded dates to the American format "mm/dd/yy" especially if you use MyDate=#31/1/92# ("it's a feature, not a bug" <grin) so you may need to ensure that you use something like ..... MyDate=Format("1/1/92","dd/mm/yy" -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Take one sales order and compare all ship dates for that order. | Excel Discussion (Misc queries) | |||
Need to determine the elapsed Minutes between 2 dates in excel | Excel Worksheet Functions | |||
How do I determine which order to use in a polynomial trendline? | Charts and Charting in Excel | |||
How does Excel determine the ORDER of consolidated data? | Excel Worksheet Functions | |||
how do I link purchase order dates from one excel workbook to ano. | Excel Worksheet Functions |