+ Reply to Thread
Results 1 to 4 of 4

Using Now function with IF conditions

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using Now function with IF conditions

    Dear all,

    I just wish to do

    in C2
    =If(A2<>"",Now(),"")

    in D2
    =If(B2<>"",Now(),"")

    I am able to do this but the only challenge is excel updates the time with system time every time.

    any suggestion to keep the time static ?

    Thanks and Regards
    Sameer Verma.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Using Now function with IF conditions

    NOW() does just that - it gives you the current date/time, and it will update every time there is any change to the workbook

    What exactly are you trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,081

    Re: Using Now function with IF conditions

    Are you wanting a non-updating date stamp. If so look at the first attachment. A date/time is entered in the corresponding cell in column B when an empty cell in A (e.g. A11) is filled (formula solution, with intentional circular reference. You need to enable iterative calculations from EXCEL OPTIONS / FORMULA. Subsequent changes to A11 make no difference to B11.

    If, on the other hand you want the date stamp to update only when a cell value changes, check the second attachment. In it, every time the value in A changes, the date stamp updates (VB code).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using Now function with IF conditions

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Satisfying 2 conditions using if function or other function
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 12:19 PM
  2. MAX function with conditions
    By GPI in forum Excel General
    Replies: 2
    Last Post: 09-28-2011, 12:43 PM
  3. [SOLVED] Two Conditions Function
    By Karthik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2005, 11:05 AM

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