Adding a Date Stamp - Original Time Stamp and Modified Time Stamp

hlionelf

New Member
Joined
Oct 12, 2017
Messages
2
I'm having a hard time putting this into words, so I'll try to make it simple.


I have a list with cells b1 thru f1 empty.


If one or more of those cells becomes populated, I want today's date to show up in cell g1 and h1.

If any of those fields from b1 through f1 is modified, h1 will show modified date. g1 previous date will NOT change


Yes, the user could enter the date manually, but apparently that's too difficult for some people.

I actually did some search online in mr excel and this works but i do not know how to stitch this together. Been trying to piece this together for days!!!

Any help would be appreciated.

For g1
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B3:F300")) Is Nothing Then
If Range("G" & Target.Row).Value = "" Then
Application.EnableEvents = False
Range("G" & Target.Row).Value = Now
Application.EnableEvents = True
End If
End If
End Sub
For h1
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B3:F300")) Is Nothing Then
Application.EnableEvents = False
Range("G" & Target.Row).Value = Now
Application.EnableEvents = True
End If
End Sub


Any help would be appreciated.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
If a value is entered in B1:F1 which cells should the timestamp go in?

If a value in B1:F1 is modified which cells should change?
 
Last edited:
Upvote 0
If a value is entered in B1:F1 which cells should the timestamp go in?

If a value in B1:F1 is modified which cells should change?

If a value is entered in B1:F1 which cells should the timestamp go in? - G1 & H1

If a value in B1:F1 is modified which cells should change? - H1 only
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top