Automatic date when data entered in another field

cjmcma

Board Regular
Joined
Sep 20, 2003
Messages
55
I would like to have the current date entered in one column when data is entered in the next column. Wondering if this can be done without a macro. I've thought of using the now() function but the next day of use, yesterday's dates will update to today. I'm guessing I will have to write code, which is fine, but if there was an easier way, I'm all for it.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Put this code in the worksheet code section for the worksheets you want this to work on.

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Column = 1 Then
Range("B" & Target.Row) = Date
Else
End If


End Sub

Target.column is the column you are entering data in. change as needed

Range("B") is the column where you want to put the date. Change as needed
 
Upvote 0
1) Say your data at column B2:B10

2) Enter formula in A2 and drag to A10

=IF(B2<>"",TODAY(),"")

3) After the first day work, you highlighted range of Column A cells with data in the side, then click Copy>> Paste special >> Value.

Hope can helps

Regards
Bosco
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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