+ Reply to Thread
Results 1 to 4 of 4

Keeping a date as current year, even though formula determines previous year

  1. #1
    Registered User
    Join Date
    01-27-2013
    Location
    New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    38

    Keeping a date as current year, even though formula determines previous year

    It may be best to show this issue with an attachment. I need the cells in column E to always be current year even though they are based on a formula from column B which contains various years. Is this possible? I'm looking to conditionally format column F as black fill if the date has passed. Was not a problem in column C where there is a one time occurrence. Is there a better way to do this?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Keeping a date as current year, even though formula determines previous year

    Maybe with the formula:

    day
    month
    year

    See the yellow cells in the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    20,896

    Re: Keeping a date as current year, even though formula determines previous year

    You can use this formula in E3:

    =DATE(YEAR(TODAY()),MONTH(B3+180),DAY(B3+180))

    then copy it down.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-27-2013
    Location
    New Mexico
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Keeping a date as current year, even though formula determines previous year

    Thank you for your help Pete. Worked like a charm. Thanks given!

+ 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