+ Reply to Thread
Results 1 to 7 of 7

If than formula using dates

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    If than formula using dates



    I have a spreadsheet in which row F is the original hire date, and row H is the last check date, I need to insert for row G a project start date based on the following- if the hire date is before 1/1/12 than the start date is 1/1/12, if the hire date is after 1/1/12 than the start date equals the hire date.. I cannot seem to get the formula to correctly show the hire date as the start date when the hire date is after 1/1/12. Pls advise

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If than formula using dates

    Assuming your first row is row 2 then:

    =MAX(F2,40909)

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If than formula using dates

    =if(f1<40909,40909,h1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: If than formula using dates

    Hi,

    One way in H2

    Formula: copy to clipboard

    =IF(F2<DATE(2012,1,1),DATE(2012,1,1),F2)


    Are you sure your cut off date is correct? i.e. over 12 months ago
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If than formula using dates

    Richard, the cut-off date is good, since the spreadsheet is being used for a future projection. I had tried yr formula last night, and it places the hire date in the column for start date.
    I.E. if the hire date is 7/13/12, than the formula reflects a start date of 7/13/12 conversely, if the hire date is 12/22/11, instead of depicting a start date of 1/1/12, the hire date remains 12/22/11

    I can't seem to have the formula show a start date of 1/1/12 for anyone with a hire date before 1/1/12..

  6. #6
    Registered User
    Join Date
    01-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If than formula using dates

    Andrew, the formula generates only 1 outcome, all start dates are 1/1/12 which is fine for any hire date prior to 1/1/12, but invalid for hire dates after 1/1/12

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If than formula using dates

    All three of the formula posted in this thread should work fine.

    Can you post an example workbook, please?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1