Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need use the if function to do the following:
if the hire date is greater than 9/30/2005, then the date should be 2/1/2006, otherwise the date should be 1/1/2006. I have been using the following, if(A59/30/2005, 2/1/2006, 1/1/2006), but it changes every date to 1/1/2006 including dates greater than 9/30/2005. Please help! |
#2
![]() |
|||
|
|||
![]()
You could try:
=IF(A5DATEVALUE("09/30/2005"),DATEVALUE("2/1/2006"),DATEVALUE("1/1/2006")) format result as Date Hope this helps Rowan Simone wrote: I need use the if function to do the following: if the hire date is greater than 9/30/2005, then the date should be 2/1/2006, otherwise the date should be 1/1/2006. I have been using the following, if(A59/30/2005, 2/1/2006, 1/1/2006), but it changes every date to 1/1/2006 including dates greater than 9/30/2005. Please help! |
#3
![]() |
|||
|
|||
![]()
ANother way
=--"2006-01-01"+(A5--"2005-09-30") -- HTH RP (remove nothere from the email address if mailing direct) "Simone" wrote in message ... I need use the if function to do the following: if the hire date is greater than 9/30/2005, then the date should be 2/1/2006, otherwise the date should be 1/1/2006. I have been using the following, if(A59/30/2005, 2/1/2006, 1/1/2006), but it changes every date to 1/1/2006 including dates greater than 9/30/2005. Please help! |
#4
![]() |
|||
|
|||
![]()
I like:
=if(a5date(2005,9,30),date(2006,2,1),date(2006,1, 1)) Then I don't have to worry about any settings on any pc. But you were really checking to see if: A5 was greater than 9 divided by 30 divided by 2005. (9/30/2005 looks more like an arithmetic (division) than a date to excel.) Simone wrote: I need use the if function to do the following: if the hire date is greater than 9/30/2005, then the date should be 2/1/2006, otherwise the date should be 1/1/2006. I have been using the following, if(A59/30/2005, 2/1/2006, 1/1/2006), but it changes every date to 1/1/2006 including dates greater than 9/30/2005. Please help! -- Dave Peterson |
#5
![]() |
|||
|
|||
![]()
I think that that original expression was mdy, though. (well, if I can trust
that all were like 9/30/2005.) Bob Phillips wrote: ANother way =--"2006-01-01"+(A5--"2005-09-30") -- HTH RP (remove nothere from the email address if mailing direct) "Simone" wrote in message ... I need use the if function to do the following: if the hire date is greater than 9/30/2005, then the date should be 2/1/2006, otherwise the date should be 1/1/2006. I have been using the following, if(A59/30/2005, 2/1/2006, 1/1/2006), but it changes every date to 1/1/2006 including dates greater than 9/30/2005. Please help! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to give 5%rise in a figure if it occurs b/wn 2 dates | Excel Worksheet Functions | |||
Can someone help with a formula to calculate dates? | Excel Discussion (Misc queries) | |||
Formula for Continuous Services Dates | Excel Worksheet Functions | |||
Formula including dates | Excel Worksheet Functions | |||
How do I format dates accessed by a formula | Excel Discussion (Misc queries) |