+ Reply to Thread
Results 1 to 3 of 3

Formula to autofill date

  1. #1
    Registered User
    Join Date
    04-23-2021
    Location
    Memphis, Tennessee
    MS-Off Ver
    Office 365
    Posts
    2

    Formula to autofill date

    What I need is some way to set a static date that doesn't change no matter when you open the file, but I need the date to auto-populate the first time I open the master file.

    To explain, the company i work with sends out weekly data files to our clients.
    We have a master file where a cell is required to be filled out with a specific day of the week, assuming we are not running some special expedited report.
    IE... One report will have a Tuesday date, and that date will always be the next Tuesday.
    We "SAVE AS" and rename the file once we paste the client's data.

    What I originally setup for the master file was....



    The date cell had this formula..... =IF(TEXT(TODAY(),"DDDD")="Tuesday",TODAY(),0) -- what the formula returns when it is FALSE doesn't really matter


    I also created a check cell to determine if the date was a Tuesday..... =IF(WEEKDAY(D7)<>3, "TODAY IS NOT TUESDAY! FIX CELL D7!","")



    I then realized, this will only work correctly if the file is opened on Tuesday.
    If we send that report to our client on Tuesday, and they review it on Wednesday then the formulas would result in showing that there is an error.
    I'm looking for a way to force return the Tuesday for that specific week or some formula that will return a static result based on when the file is FIRST opened.
    Once I "SAVE AS," and rename the file, the date needs to become static.
    If I open it on 4/20/2021, then the date cell will become static, so when I open it on 4/21/2021 the date field will still show 4/20/2021.
    I need to be able to open the file months from now and it will indicate the proper Tuesday date for that file.

    I may be a bit redundant with some of the info I am providing, but want to get my goal across clearly.

    Is this possible?

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula to autofill date

    SO who is the first to open? - If you email it on Tuesday, Customer opens on Wednesday, Does it show Tuesday or Wednesday? What if they don't open until Friday?
    It seems like you could just manually add the date
    If this solves your issue, Mark thread as Solved & Add Reputation.

    Thanks!

  3. #3
    Registered User
    Join Date
    04-23-2021
    Location
    Memphis, Tennessee
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Formula to autofill date

    Yes, opening on Friday would cause an error using the formulas in the OP.

    Manually updating the date cell is the current process.

    The date cell also updates other cells.....

    IE. there is a cell with formula..... ="CLIENT NAME"&TEXT(B8, "MMDDYY").... assume B8 is the date cell
    This would update to "CLIENTNAME042621"

    I am a man of saving seconds wherever possible, so if the date could auto-fill and become static that would prevent this manual process and allow for further automation of the weekly reporting.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-29-2018, 01:30 AM
  2. Replies: 1
    Last Post: 05-02-2013, 02:11 PM
  3. Replies: 0
    Last Post: 09-17-2012, 08:24 AM
  4. Replies: 1
    Last Post: 09-17-2012, 01:07 AM
  5. Excel 2007 : Autofill date
    By sublimemovement in forum Excel General
    Replies: 0
    Last Post: 09-23-2011, 02:51 AM
  6. [SOLVED] formula or VBA - would like to autofill cells based on start date and # of months
    By jsr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2006, 11:00 AM
  7. Autofill date based on date in another cell
    By karstens in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2005, 07:55 PM

Tags for this Thread

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