+ Reply to Thread
Results 1 to 11 of 11

Auto Fill Date And Time

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Auto Fill Date And Time

    Hello, i need a formulla do the following

    If Cell B2 contains any Data, Fill Cell A2 with Now date and time, if B2 Contains nothing Keep Cell A2 empty

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Auto Fill Date And Time

    This works in A2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Auto Fill Date And Time

    Hello and thanks for the Reply, its working Exactly as needed, but when i copy the formulla to the whole column and try to
    use the cells that should add the now date and time all date and time of the column are changong to the same,
    lets say i added 1 entry now and after 2 min another entry all are changing to now time and date.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Auto Fill Date And Time

    Maybe this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Auto Fill Date And Time

    =IF(G3<>"",NOW(),"")
    this formulla is working nice but 1 issue is when copying the formulla to the whole column and start putting data
    its showing all date and time exactly the same even if there is diffrence . can any one help me plsss.
    Last edited by marko737; 04-15-2019 at 09:42 AM. Reason: Not Fixed Yet

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,297

    Re: Auto Fill Date And Time

    NOW() is Volatile, hence it will keep updating. You'd need VBA for this.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Auto Fill Date And Time

    Hello and thanks for the reply, no one has found and solved the problem,
    i have atached the workbook as per your request
    all details are inside.
    thanks for your help.
    Attached Files Attached Files

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Auto Fill Date And Time

    Are you trying to timestamp your entry time.
    If so put the attached code into your worksheet code window (right click sheet tab > view code > copy & paste code in)
    torachan.
    Please Login or Register  to view this content.
    Last edited by torachan; 04-19-2019 at 03:13 AM.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Auto Fill Date And Time

    This should do it.

    Copy the code from below, then go to Excel. Right click on the tab (the bit that says 'Sheet1') that you want the code to run on, then click 'View Code'.
    Paste the code into the empty box.
    Close the code editor.
    Save your workbook as a 'Macro Enabled Workbook'
    Please Login or Register  to view this content.
    Last edited by jason.b75; 04-19-2019 at 03:26 AM.

  10. #10
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Auto Fill Date And Time

    It works 100% As Needed. Thanks a lot Dear.

  11. #11
    Registered User
    Join Date
    03-26-2013
    Location
    Lebanon
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Auto Fill Date And Time

    It Works Gr8. Thanks Dear

+ 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. Glitch with auto date and time fill
    By BonoFL in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-30-2017, 07:14 PM
  2. [SOLVED] Auto Date & Time Fill in
    By lcomeaux in forum Excel General
    Replies: 4
    Last Post: 05-09-2016, 04:20 PM
  3. auto fill date and time
    By LLOYD6664 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-13-2014, 02:57 PM
  4. auto fill-in current date/time and duration
    By aturetsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2013, 02:19 PM
  5. Auto Run Macro to fill and lock the date & Time
    By shaikh.2211 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 02:49 AM
  6. Auto fill date/time
    By albert28 in forum Excel General
    Replies: 11
    Last Post: 07-27-2010, 08:31 AM

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