+ Reply to Thread
Results 1 to 2 of 2

Two different Dates in my computer?

  1. #1
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Two different Dates in my computer?

    NamedRange: LastDayOfNextMonth
    = DATE(YEAR(TODAY()),MONTH(TODAY())+2,1)-1


    I have a spreadsheet that calculates everything off the Age of a person on the last day of Next Month, with their Birthday being in Column L

    Each person age = DATEDIF(L5,LastDayOfNextMonth,"y")

    Everything works great.

    We had to run some backdated reports, which was no problem as I just changed the Date/Time Properties in Control Panel to an earlier date in an earlier month.

    Everything calculated properly. If I changed the Date/Time Properties to December of last year it correctly calculated their birthday on the last day of January this year.

    The one thing that didn’t change was the Page Header. I have &[DATE] in the header and regardless of the date I changed my computer to, somehow the header knew what the real date was.

    Why / How is this?

    (I don't need a solution to fixing it, it just puzzles me.)

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Two different Dates in my computer?

    Just a shot in the dark.
    Did you close Excel and reopen it?
    Perhaps when Excel starts up it reads the date once from the system and not again until Excel runs the next time.
    The TODAY() function could be updated differently in real time as you use it.

    I have no idea if this is correct as I say just a shot in the dark.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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