Datestamp

joes1945

New Member
Joined
Oct 30, 2002
Messages
9
My spreadsheet has Dates in column C and Tasks in adjacent cells in column D. If the cell in row D is blank, the adjacent date cell in column C should be blank. If a task is entered in a cell in column D, I would like a datestamp(today,s date) to be automatically entered in the adjacent date cell in column C. The date should remain as entered until until the task is deleted or edited. Is this possible, and how is it done.
Thanks to anyone for helping.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
right-click on the sheet tab for the sheet that will contain this info and select 'view code', then insert the following code:

Code:
Private Sub worksheet_change(ByVal target As Range)
If target.Column <> 4 Then Exit Sub
target.Offset(0, -1).Value = Format(Date, "Short Date")
End Sub

this should get you started. modify to suit your own needs

hth
kevin
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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