Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
I have a simple problems that is hopefully easy to answer. is it possible to compare two dates eg =if(27/03/2006 < 13/10/2006,....) if so can someone please advise. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Murray
Try either IF(DATE(2006,3,27)<DATE(2006,10,13), value_if_true,value_if_false) or IF(--"27/03/06"<--"13/10/06", value_if_true,value_if_false) -- Regards Roger Govier "Murray" wrote in message ... Hi I have a simple problems that is hopefully easy to answer. is it possible to compare two dates eg =if(27/03/2006 < 13/10/2006,....) if so can someone please advise. Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could also try
IF(cell_ref1<cell_ref2,value_if_true,value_if_fals e) This is possible as excell converts dates to numbers in the background Brendan "Roger Govier" wrote: Hi Murray Try either IF(DATE(2006,3,27)<DATE(2006,10,13), value_if_true,value_if_false) or IF(--"27/03/06"<--"13/10/06", value_if_true,value_if_false) -- Regards Roger Govier "Murray" wrote in message ... Hi I have a simple problems that is hopefully easy to answer. is it possible to compare two dates eg =if(27/03/2006 < 13/10/2006,....) if so can someone please advise. Thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If all you want to do is compare a date in one cell to a date in another
cell, just do a value comparison. Dates are stored as a numerical value. If Range("A1").Value < Range("A2").Value Then <date in A1 is before date in A2 Else <date in A1 is same as or after date in A2 End If "Murray" wrote: Hi I have a simple problems that is hopefully easy to answer. is it possible to compare two dates eg =if(27/03/2006 < 13/10/2006,....) if so can someone please advise. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF and Date Functions | Excel Worksheet Functions | |||
insert date | Excel Worksheet Functions | |||
Insert Automatic, Non-Updating Date Stamp | Excel Discussion (Misc queries) | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
Another Date issue. | Excel Worksheet Functions |