+ Reply to Thread
Results 1 to 6 of 6

Need to have the output of Date() to be static

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Need to have the output of Date() to be static

    Hi All,

    My date output at A40 is dependent upon what's at C40..see below. However, I need to have the date to remain static and not change the next day. Can someone help in getting this done via formula, macro/VB etc? Also, how to extend the same logic to other cells as well?

    IF(C40<>"",TODAY(),"")


    Would really appreciate any help here?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need to have the output of Date() to be static

    try this schema: B2: =IF(A2="","",IF(B2="",NOW(),B2)) change suitable to your conditions. But first turn ON: Option-Formulas-Enable Iterative Calculations = checked
    you can use NOW() or TODAY() it's up to you. Without Iterative Calculations enabled you will get warning and it doesn't work.
    Or look for VBA solution.
    Last edited by sandy666; 03-17-2016 at 08:54 PM.

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Re: Need to have the output of Date() to be static

    Thanks Sandy!

    I am going to wait for the day to change to view the results.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need to have the output of Date() to be static

    Ok, let me know if it will work.

  5. #5
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Need to have the output of Date() to be static

    If Sandy's code works - great.

    If it is not what you are looking for - Here is a VBA solution that puts a static Date Stamp into your chosen cells.

    Change the Range and Offset # to match your requirements.

    Right click on the sheet tab name choose 'View Code and copy the code into the developer screen on the right.
    Your worksheet must have Macros Enabled and be saved as .xlsm and not .xlxs

    HTML Code: 

  6. #6
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Need to have the output of Date() to be static

    Oooops - Double post
    Last edited by BlindAlley; 03-18-2016 at 09:20 PM. Reason: Fat Fingers

+ 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. [SOLVED] Set static date
    By mariur89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2015, 06:27 AM
  2. Highlight Rows Based on Date Range Using Static Date and Current Date
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2015, 07:38 PM
  3. Static date
    By Pedro1803 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2011, 12:41 PM
  4. VBA to give static output of LEFT function
    By mcp21x in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2009, 10:59 AM
  5. static date
    By venkateswararao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2007, 05:49 PM
  6. DATE STATIC
    By Shaggy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-21-2006, 09:20 PM

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