+ Reply to Thread
Results 1 to 12 of 12

Auto fill date/time

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Auto fill date/time

    Hi guys,

    could someone here can help me regarding the date/time function.

    I have spreadsheet that i want automatic fill-out the column A when Column B is not empty. when i enter name in column B, column A will fill automatic with Dates and Time Today. i have this formula =IF(F3<>"",NOW(),"") works but everytime i open the spreadsheet on the next day all the dates were changed in todays date.

    i want to come up as per example below.

    i.e
    Column A Column B
    Date Started Name
    07/28/2010 11:09AM Albert
    07/29/2010 7:10PM Lexi

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill date/time

    Excel's Date & Time functions are Volatile i.e. they will update
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    Hi

    I have attached the spreadsheet i need column "Issue date/time to fill out automatically when column requested by is not empty.

    as i said i'm using this formula =IF(F3<>"",NOW(),"") to auto fill the date/time automatic.

    is there any other way of doing this?

  4. #4
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    sorry here's the attachment
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Auto fill date/time

    If the stamp is to be static once populated you have 2 choices

    a) VBA

    b) use Iteration (ie permit Circular References)

    For VBA you would use a Change Event based on Col F being updated.

    For Iteration you would need to go to Excel Options -> Formuals -> Enable Iterative Calculation and then update your formulae such that:

    D2:
    =IF(F2<>"",IF(D2,D2,NOW()),0)
    copied down

    Apply a Custom Format to D2:Dn of: m/d/yy hh:mm AM/PM;;;

  6. #6
    Registered User
    Join Date
    06-05-2010
    Location
    Fl, Usa
    MS-Off Ver
    Excel 2001
    Posts
    19

    Re: Auto fill date/time

    Here's a timestamp that only changes when you change the cell value.
    It doesn't change when you save or open or make a change anywhere else on the sheet or force a recalculate and you
    don't have to clear the data cell first just select the cell start typing and it's all done with formulas and No macros.
    Just A timestamp formula and 2 helper formulas (which you could hide).

    Please Login or Register  to view this content.
    Data backup formula in B2
    Please Login or Register  to view this content.
    Timestamp Backup formula in C2
    Please Login or Register  to view this content.
    Timestamp formula in D2
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto fill date/time

    You could use VBA
    Please Login or Register  to view this content.
    Copy the code
    Select the worksheet in which you the code to run
    Right click on the sheet tab and choose View Code, to open the Visual Basic Editor.
    Where the cursor is flashing, choose Edit | Paste

  8. #8
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    Hi DonkeyOte - Forum Guru

    what will be the vba code for this?

    the =IF(F2<>"",IF(D2,D2,NOW()),0) is working, but i want it if request by column "same row" is not empty will auto fill the date/time stamp. i.e column request by row 3 is not empty so therefore column issue date/time will auto fill as well.


    thanks.

  9. #9
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    thanks a lot to all of u guys.

    i will try those options.

    im happy and thanks also to excel forum

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Auto fill date/time

    Not sure I follow albert28

    The formula I provided would update the stamp as and when Col F was first populated (it would clear if content in Col F were deleted).

    What is it you're looking to do exactly ?

    Roy has posted a VBA based event - another variation thereof:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    do i need to put the formula first then copy the vba codes to view code, am i right?

    actually roy im looking for any options. i want to have daTE/timestamp in column d were column f is not empty on the same row.

  12. #12
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Auto fill date/time

    hi guys,

    help me on this.. please see attached spreadsheet. i want column E to have date/time stamp everytime column D has value.

    so please help me.
    Attached Files Attached Files

+ 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