Automatically Add Date/Time to a Cell When You Enter || Record Date and Time when Value is Changed

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 155

  • @dongmikevlog681
    @dongmikevlog681 5 років тому +1

    Thank you my Friend. Your amazing

    • @dptutorials
      @dptutorials  5 років тому +1

      Thanks a lot.I welcome you to subscribe to this channel to enjoy more interesting videos.

    • @dongmikevlog681
      @dongmikevlog681 5 років тому

      @@dptutorials Thank you

    • @ahmadmohamed2361
      @ahmadmohamed2361 3 роки тому +1

      if i put =today() or =now() formula in a cell today, if i open the spreadsheet tomorrow i want yesterday's date to be displayed in that cell

  • @rayaneelmedawar998
    @rayaneelmedawar998 8 місяців тому +1

    THANK YOU, you're a life saver!
    If anyone wants their date to be inserted into column E for example, so that is column number 5, then change the code to
    If Not Intersect(Target, Range("B1:B1000")) Is Nothing Then
    With Target(1, 4)

  • @ankurpatel5201
    @ankurpatel5201 Рік тому +2

    Hello, Thank you very much for this video. It really helped me. One thing I have is "How can I lock the cells once the date and time are entered? " Really appreciate your help with this.

  • @wolfeburton
    @wolfeburton Рік тому +1

    This Worked Great! Thanks, I did run into a problem with wanted to enter data in colun I and have the date show in column J. I first changed the 1, 2 to 1, 10 and the date showed up in the right spot. But I hadn't changed the A1:A1000 yet. When I changed that to I1:I1000 I didnt see the date. I then realized that i had to go back to change the 1, 10 back to 1, 2 and it worked. Thanks Again!

  • @paaszczaktaxi
    @paaszczaktaxi 3 роки тому +3

    Very good job!
    I was looking for this solution for hours!
    God bless you!

  • @shaneraines2094
    @shaneraines2094 10 місяців тому +1

    Excellent explanation very clear and works! Thank you.

  • @michaelnorth3263
    @michaelnorth3263 2 роки тому +2

    If you want to change the column that the date or time shows up in. In the VBA code change the With Target number. Example 1=A 2=B 3=C and so on

  • @testdelete610
    @testdelete610 2 роки тому +2

    Is the anyway to make this work when a specific text is into the cell by formula?
    I have;
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Intersect(Target, Range("X1:X1000")).Value = "Sent" Then
    With Target(1, 10)
    .Value = Date
    .EntireColumn.AutoFit
    End With
    End If
    End Sub
    But I get Run error 91. Could you let me know how to correct please my friend?

  • @gregdileo
    @gregdileo 5 місяців тому

    That was a tremendous time saver!!! Thank you

  • @RakeshnarayanJha
    @RakeshnarayanJha 2 роки тому +2

    Great Video :) Thanks for uploading!! It was indeed helpful and created an assignment within couple of hours after watching this video...
    One Question: If cells (Start, End and Total time) are locked, the function does not work. Do we have a solution to it.

  • @yellajis7945
    @yellajis7945 18 днів тому

    Sir, how to wrap text the column by giving time and date in =now() formal because it shows # symbol when decrease the column - please clarify this.

  • @radic16
    @radic16 3 роки тому +4

    This is what I needed... Thank you!!! only one question... can I chose in which collum the end result will be? For example... if I enter data in collum B, the result will be in collum C, but can I change that result to end up in collum A?

    • @dptutorials
      @dptutorials  3 роки тому

      Yes you can make

    • @salahalfiky
      @salahalfiky 3 роки тому

      @@dptutorials how

    • @PikaJapan2012
      @PikaJapan2012 2 роки тому +2

      @@salahalfiky by replacing the "With Target()" with "With Range()" like this ↓
      Private Sub Worksheet_Change(ByVal Target As Range)
      If Target.Cells.Count > 1 Then Exit Sub
      If Not Intersect(Target, Range("C7:G7")) Is Nothing Then
      With Range("H7")
      .Value = Now
      .EntireColumn.AutoFit
      End With
      End If
      End Sub
      where my H7 is the cell where i want the update date.

    • @salahalfiky
      @salahalfiky 2 роки тому +1

      @@PikaJapan2012 thanks

    • @NUTRICIONIMPERIAL
      @NUTRICIONIMPERIAL 2 роки тому

      @@salahalfiky DID IT WORK FOR YOU ? MINE STILL COMES OUT IN THE COLUM IN FRONT

  • @joannewoodward2380
    @joannewoodward2380 2 роки тому +1

    Thank You. How would the code look like if I wanted to date stamp more that two separate columns. For instances if column A is updated, show the date in column B. If column D is updated, show the date in column E etc?

    • @bubaloos
      @bubaloos 2 роки тому

      Did you find an answer for that? I came here looking for this answer :)

  • @ponnojuharikrishna
    @ponnojuharikrishna 6 місяців тому

    Hi.. I want to print the Time as explained in your video, but I am getting the Column 'A' value from live data which keeps updated automatically. How can I do it? With the change event, it's not being updated. Can you please let me know to do the same for the LIVE DATA?

  • @DrLusEnglish
    @DrLusEnglish 2 роки тому

    You saved me some time. So thank you very much for your work.

    • @dptutorials
      @dptutorials  2 роки тому

      Great to hear!, So welcome

    • @DrLusEnglish
      @DrLusEnglish 2 роки тому

      @@dptutorials I need to click down my English lessons script time line by line, so I can generate a combined video with both scripts and my talk video

  • @amsyarsukri6955
    @amsyarsukri6955 11 місяців тому +1

    it works. Very helpful.

  • @jagadishchandramaroju534
    @jagadishchandramaroju534 Рік тому

    Thanks my friend, its Fantastic working fine, can we do same thing in google sheets ?

  • @riozanr6710
    @riozanr6710 2 роки тому +2

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Not Intersect(Target, Range("A1:A10000")) Is Nothing Then
    With Target(1, 2)
    .Value = Date
    .EntireColumn.AutoFit
    End With
    End If
    End Sub

  • @AshokKumar-hd7pz
    @AshokKumar-hd7pz 4 місяці тому

    Hello DPtutorials - i need help we have a excel which is used as daily ticket tracker team enter the ticket based on the time the ticket arrived and changed the color for e.g. if the ticket arrived between 8 am to 9 am it is marked in green and the ticket which come between 9 am to 10 am it is in red like me every one hour the color changes and this file worked 24/7 so any formula to change the cell color based on the data entered in a cell on specific time

  • @GautamGupta-qb6qm
    @GautamGupta-qb6qm 3 місяці тому

    So nicely conveyed

  • @shijuyohannan3700
    @shijuyohannan3700 2 роки тому

    This is awesome!!!... Can you provide one solution? I have invoice date and due date, when enter due date, a value of amount, ie 225$ automatically enter to particular month column, ie in January. Could you help me out?

  • @cyndifick6902
    @cyndifick6902 3 роки тому +1

    What changes do I need to make to the Macro if I want to record the date in column I for changes made to column H?

  • @nandanlawande7360
    @nandanlawande7360 Рік тому

    Thank you for the VBA code, it works perfectly. Just another question though, when i delete the cell which was manually updated for e.g. cells in column A, the date is still shown in the cells. Is it possible to clear the date as well when we clear the value of cells in column A? or does the deletion is considered an action and so the date will always be there unless removed manually?
    TIA

  • @naeemabbas3572
    @naeemabbas3572 2 роки тому +1

    Sounds great. What if i want the current time and date also for 2nd column such as (first column start date and time in the next column end task date or time)?

    • @dptutorials
      @dptutorials  2 роки тому

      just in the vba code, mention the column by replacing in this text Range("b1:b1000")

    • @mastergeo3006
      @mastergeo3006 11 місяців тому

      @@dptutorials I also had to change the target from 1, 2 to 1, A. I tried all kinds of stuff to only end up crashing the program before coming up with this.

  • @arjunmpgupta
    @arjunmpgupta Рік тому

    How to keep record of all date and time? History? I mean when I enter Today in any cell, it gets record of the current date, and later if i change tomorrow, it show show the yesterday's date and the tomorrow date both

  • @annemarieworp7329
    @annemarieworp7329 4 роки тому +3

    Hi! Thanks for the video. I want to secure the date/time cel now for changing it. So when they need to fill in cell 1, cell 2 is giving the time from filling it in. Do you know how to do that? When I secure cell 2 is the macro not working anymore..

    • @dptutorials
      @dptutorials  4 роки тому

      Thanks a lot for the feedback.
      I welcome you to subscribe to this channel to enjoy more interesting videos.

  • @SlightlyVertigo
    @SlightlyVertigo 2 роки тому +1

    Hello. Is there a way to modify this code, to only enter the date if the Cell next to it has the text Yes in it? For example Column 1 - Resolved Y/N, Column 2 - Date Resolved

  • @chapniemnhatsinh2475
    @chapniemnhatsinh2475 2 роки тому

    Thank you so much for sharing with us... but I have a question... that if i have a data in column B to Z. And I want to show the result in column A, and have more condition.
    Example: My data is from B1 to Z100, and if I change one of data in B1, the time in A1 have changed too. But if B1 have new update, and need me to accept, that A1 just update new time kha.
    Can you help me this one kha. Thank you so much.

  • @vivekmusafir4492
    @vivekmusafir4492 3 роки тому +1

    Awesome tool...thank you so much

  • @lkrizo6448
    @lkrizo6448 Рік тому

    Hi. Can you make a formula/ when you change the cell to specific color, cell next to it will show todays date. Thank you

  • @puneetkumargupta14
    @puneetkumargupta14 Рік тому

    How can I add a condition like if there is data in column A, then enter Now() in column B, else print "No Data Found" in column B

  • @brijeshashukla6731
    @brijeshashukla6731 4 роки тому

    Dear Sir, Thank yooooou very much. Very nice ever have across. It working fine.

    • @dptutorials
      @dptutorials  4 роки тому

      Thanks a lot, Glad to hear that

  • @sushilpradhan3933
    @sushilpradhan3933 5 місяців тому

    Hi why everytime i entered the any data in a1 it is saying sub or function error

  • @Dreadnought422
    @Dreadnought422 2 роки тому

    i have a simuler code but doesn't seem to work if i wanted to do it in multiple collums. example: Collum "A": auto-Date/time, Cullum "B": information1, Collum "C": Information 2, Collum "D" blank ,Collum "E" an other Auto-Date/time. I've tried by creating a seperate coding page and i've tried by just creating a 2nd line for the second set of ranges. but neither seems to work. any chance you could help me fix that? Data must be next to each other. Only the last set of ranges work unless i comment either one of the sets out

  • @davecarreon9447
    @davecarreon9447 2 роки тому +1

    hello. thank you. your You Tube is awesome. I tested and lost the code for the static date. Would you please resend it.? Thank yolu

  • @hsinglanjin
    @hsinglanjin 3 роки тому +3

    can you apply the formula/code if changes are made to a row? I have a spreadsheet where we track events on each row, but would like a date to autopopulate if someone adds another row or makes changes to any cell within that row

    • @Nah481
      @Nah481 Рік тому

      If you use a table all the formula copies over when you add a row.

  • @jasonhancox3931
    @jasonhancox3931 Рік тому

    I have a range of data B4:D35 but want the =Now() to just stay in cell D1. How do I do that?

  • @dhavalgorasia3068
    @dhavalgorasia3068 2 роки тому

    What if I want the same function on multiple columns like I have a table where I record purchase orders in B1 (this can be down with the VBA code you have shared) but I want to record the "out of stock" date as well which would be in F1. Is there any workaround for that?

  • @SprayJB
    @SprayJB 2 роки тому +1

    So cool, thank you

  • @christhuraj5109
    @christhuraj5109 4 роки тому

    Nice tutorial, Hello sir your video are easily understand able and use full. I have one question, can we display the date and time only one cell only when the sheet updated?

    • @dptutorials
      @dptutorials  4 роки тому

      Yes, you can, you can modify the range in the VBA code accordingly and apply a formula in a cell to fetch the max of all these dates and you can hide this column B.

  • @MrHonda52
    @MrHonda52 2 роки тому

    This is excellent - Is there a way though that if data is deleted from column a that column b removes the date stamp?

    • @dptutorials
      @dptutorials  2 роки тому

      Thank you. Need to check this one,

  • @ssp8281
    @ssp8281 3 роки тому

    If my cell value chaging/updating as per source data then will it update timestamp at what time value got modified?? I mean will it work in live Excel data ??

  • @laxmanraobhuskute3770
    @laxmanraobhuskute3770 Рік тому

    I want to know how to add formula for another cell in same sheet. Two function for two dates. Please solve the problem.

  • @NivyaSG
    @NivyaSG 2 роки тому

    Will it update the date if we amend the existing cell with amended date ?

  • @mervynfoster2114
    @mervynfoster2114 3 роки тому +1

    Great video. How to change the column where the time stamp appears please?

    • @dptutorials
      @dptutorials  3 роки тому

      Thank you. you can change the cell reference in the code.

    • @NUTRICIONIMPERIAL
      @NUTRICIONIMPERIAL 2 роки тому

      @@dptutorials How ? which line is it ?

    • @travisbenge1912
      @travisbenge1912 2 роки тому

      @@dptutorials Which line would this be?

  • @scottstedry9110
    @scottstedry9110 3 роки тому

    Thank You. How would the code look like if I wanted to date stamp two separate columns. For instances if column A is updated, show the date in column B. If column D is updated, show the date in column E?

  • @greatthinking316
    @greatthinking316 4 роки тому +1

    thank you so much buddy for that I wish te best

    • @dptutorials
      @dptutorials  4 роки тому

      Thanks a lot for the feedback.
      I welcome you to subscribe this channel to enjoy more interesting videos.

  • @Abc00-x5z
    @Abc00-x5z 4 роки тому

    Many many thanks Bro.

  • @jurgenguns1925
    @jurgenguns1925 4 роки тому

    Great video, thanks! Does this work with Form Controls, example as check box?

  • @pratapchandranayak8241
    @pratapchandranayak8241 3 роки тому

    Excellent sir

  • @srisandi4090
    @srisandi4090 8 місяців тому

    How to set particular cell ? Sir

  • @KalyanKumar-fz6vp
    @KalyanKumar-fz6vp 4 роки тому

    Thanks for the video and code

  • @kesavamoorthyg5511
    @kesavamoorthyg5511 3 роки тому

    Thank you very much

  • @moesadr3342
    @moesadr3342 2 роки тому

    How about if we have more than one cell (columns) in each row?

  • @anhnhatnguyet4628
    @anhnhatnguyet4628 3 роки тому

    If time and date show on column A, data input from column B:G, how ?

  • @denaepreese5651
    @denaepreese5651 3 роки тому

    Hello im wondering can i have the date always appear in a specific column?

  • @sreejithnair5158
    @sreejithnair5158 3 роки тому

    I would like to know if i can get 2 columns filled in. say for eg, Date in one column and time in another.

    • @dptutorials
      @dptutorials  3 роки тому

      you can use INT or MOD to separate date and time.

  • @raphaelelocremo5641
    @raphaelelocremo5641 4 роки тому

    Nice. Thanks man

    • @dptutorials
      @dptutorials  4 роки тому

      Any time!
      Thanks a lot for the feedback.
      I welcome you to subscribe to this channel to enjoy more interesting videos.

  • @bhagyashreegoswami1879
    @bhagyashreegoswami1879 Рік тому

    how to clear the time if we clear content is cell A1

  • @mokshitrambhia3714
    @mokshitrambhia3714 2 роки тому

    What would be the code if I'm updating data in column D and I want date in column B. I changed "A1:A1000" with "B1:B1000" but this is giving me date in column E when updated data in column D

    • @dptutorials
      @dptutorials  2 роки тому

      Just please change the number of column in the VBA code.

  • @davecarreon9447
    @davecarreon9447 2 роки тому +1

    Would you be so kind to resend the link. Thank you

  • @shubhamkochar5556
    @shubhamkochar5556 2 роки тому

    i want to add date in column D whenever i make any change in either column A or B or C. Can you please help me with this?

    • @dptutorials
      @dptutorials  2 роки тому

      Sure, please write to info@dptutorials.com

  • @misaelmartinez8835
    @misaelmartinez8835 2 роки тому

    CAN THIS BE USED IN A SHARED SHEET ONLINE?

  • @parthasarathyrs7193
    @parthasarathyrs7193 2 роки тому

    Sir, how to put previous date and hour in one cell? It always give the current date. Pls help

    • @dptutorials
      @dptutorials  2 роки тому

      Just add one more column with a formula or modify the vba code.

  • @lauramaclean8452
    @lauramaclean8452 3 роки тому

    Hi there, I'm using a table in Excel for dashboarding reasons, and this doesn't seem to work when adding data into a table, only into a cell. Do you know if there's an edit to the VBA code to apply this to table data too? Many thanks!

  • @kilrathiavenger
    @kilrathiavenger 3 роки тому

    How can this be done in Online browser Excel?

  • @cesarusitsuki1978
    @cesarusitsuki1978 3 роки тому

    Can we add Two cell references for this ? Need to have entries in 2 seperate pair of columns

  • @cobraAH1
    @cobraAH1 3 роки тому

    what about if date on column A and time on coulum B what is the process?

    • @dptutorials
      @dptutorials  3 роки тому

      You can combine both using separate formula.

  • @sounkakada1645
    @sounkakada1645 2 роки тому

    Excuse me can you show me VBA code running time ?
    Thank you so much

    • @dptutorials
      @dptutorials  2 роки тому

      Yes I can, its hardly seconds time only.

  • @XRAYNSH
    @XRAYNSH 3 місяці тому

    How to add the date on an unspecfied target cell

  • @shespeaks1971
    @shespeaks1971 3 роки тому

    Bummer. I copied and pasted exactly as your code shows and nothing happens when I put something in column A. #WhatAmIDoingWrong

  • @rameshnetam8552
    @rameshnetam8552 Рік тому

    Right to left entry what I do

  • @thodsapon5
    @thodsapon5 3 роки тому

    Does VBA work on online share excel file as well?

    • @dptutorials
      @dptutorials  3 роки тому

      Yes it does, with some minor modifications

  • @ahmadmohamed2361
    @ahmadmohamed2361 3 роки тому

    if i put =today() or =now() formula in a cell today, if i open the spreadsheet tomorrow i want yesterday's date to be displayed in that cell

    • @dptutorials
      @dptutorials  3 роки тому

      For yesterday's date use the formulas =today()-1

  • @rohitpanchal9930
    @rohitpanchal9930 4 роки тому

    sir what is the code to update time if the text in the cell changes if its not blank i:e N/A changed to yes etc?

    • @dptutorials
      @dptutorials  4 роки тому

      Need to write a different code for that.

  • @ramkumar2574
    @ramkumar2574 3 роки тому

    Thanks bro, but how to apply this code in google spreadsheet?, here there is no view code option

    • @dptutorials
      @dptutorials  3 роки тому

      It Google spreadsheet, it would be a query.

  • @michaelsvenson2456
    @michaelsvenson2456 7 місяців тому

    Wrote it just as you did, don't work for me....

  • @sureshkumarreddyp1621
    @sureshkumarreddyp1621 2 роки тому

    how to same in google sheets

  • @spreadingsmiles9413
    @spreadingsmiles9413 3 роки тому

    i need to record data of every 15 or 5 minut interval.how to do that....?

    • @dptutorials
      @dptutorials  3 роки тому +1

      Seriously no idea as of now.

  • @nehad111
    @nehad111 Рік тому

    where is the code?

  • @ZubairChoudhary
    @ZubairChoudhary 3 роки тому

    GREAT

  • @angsaysroar
    @angsaysroar 3 роки тому

    Is it possible to do this with multiple cells in one sheet?

    • @dptutorials
      @dptutorials  3 роки тому

      No sorry.

    • @angsaysroar
      @angsaysroar 3 роки тому +2

      Actually, you can. I figured it out. Thank you. 😊

    • @amerhafez6604
      @amerhafez6604 3 роки тому

      @@angsaysroar how please tell us

    • @denaepreese5651
      @denaepreese5651 3 роки тому

      @@angsaysroar i would love to know how as well please

    • @nemojeddah1
      @nemojeddah1 2 роки тому

      @@angsaysroar how?

  • @davecarreon9447
    @davecarreon9447 2 роки тому

    i'm sorry. i don't see teh code?

  • @fazalhussain1742
    @fazalhussain1742 4 роки тому

    Sir... Aftar save file... When re open
    Then not working

    • @kwameboakye1852
      @kwameboakye1852 4 роки тому

      Same with me. Any help please?

    • @dptutorials
      @dptutorials  4 роки тому

      Hi Fazal and Kwame, Please read the video title carefully, this trick is to capture the timestamp value. i.e., the time or date on which the adjacent cell has been modified last.

  • @g2theizzo
    @g2theizzo 3 роки тому

    How doi get this to work in Google sheets?

    • @dptutorials
      @dptutorials  3 роки тому +1

      Sorry, I need to explore this.

  • @brandonberry9174
    @brandonberry9174 9 місяців тому

    this is not working for me

  • @DaniilIshchenko76
    @DaniilIshchenko76 3 роки тому

    Code is not in description. You have to go to another link and request access. Scam.

    • @dptutorials
      @dptutorials  3 роки тому

      Not a scam, Just to maintain the description length, I have provided my access to google drive. will check the access rights, it should be easily downloadable.

  • @chandrashekar8682
    @chandrashekar8682 3 роки тому

    This is not working 😢

  • @JeremyMartinez
    @JeremyMartinez Рік тому

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    If Not Intersect(Target, Range("A1:A1000")) Is Nothing Then
    With Target(1, 2)
    .Value = Date
    .EntireColumn.AutoFit
    End With
    End If
    End Sub