+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting: Calculate Date One Year Later From Another Date

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi,

    I have two columns; column L contains a date that a report has been received and column P needs to contain the date one year from the date entered in column L.

    Does anyone know the conditional formatting, so that when I enter a date in column L, column P will auto populate with the date one year later?

    I hope that makes sense.

    kind Regards

  2. #2
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    format column L and P date then in P1
    Please Login or Register  to view this content.
    and copy down

    this will work for 12 months --- not sure if it will take into account for leap year

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi,

    Sorry I tried your formula but it didn't work. It came up with #NAME?. Is there a formula that will apply it to the whole column as the list is very long and new rows will keep being added.

    Kind Regards

  4. #4
    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: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi

    grizzly6969's formula is one of the ways to do this and works fine.

    Where do you use this formula? In Conditional Format rules, OR in P1??
    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.

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi,

    I used that formula in P2 as P1 contains a title for the column but I changed the number to L2 in the formula. I tried it again and it still comes up as the error. I have also tried it in conditional formatting but nothing happens.

    Also I forgot to mention before that if there is no date entered into column L then the corresponding cell for coloumn P needs to stay blank.

    Kind Regards

  6. #6
    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: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi

    I can not understand what are you doing wrong.

    =IF(L2="";"";EDATE(L2;12))

    This formula( maybe comma and not semi colons) must work for you in P2 and copy down.

    Take a look to the example.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    have you formatted the cells as Date ---- 3/14/01

    when you enter date in L2 -- enter it 1/1/12 and see if this makes a differance
    Last edited by grizzly6969; 05-01-2012 at 02:58 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    try this
    Please Login or Register  to view this content.
    and format your cells

    then click on the cell and drag it down as far as you need
    Last edited by grizzly6969; 05-01-2012 at 03:17 AM.

  9. #9
    Registered User
    Join Date
    04-25-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi,

    Sorry it still isn't working. I have formatted that columns to date format and then applied the formula and copied it down but it still comes up with that name error.

    Kind Regards

  10. #10
    Registered User
    Join Date
    04-25-2012
    Location
    Mackay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Conditional Formatting: Calculate Date One Year Later From Another Date

    Hi,

    I tweaked the above formulas and this one seemed to work:

    <code>
    =IF(L2="","",L2+365.25)
    </code>

    Thank you for your help. I think my spreadsheet is just a bit touchy.

+ 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