Computing.Net > Forums > Office Software > How do I get the date when text is typed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How do I get the date when text is typed

Reply to Message Icon

Name: willa
Date: September 17, 2009 at 10:51:26 Pacific
OS: Windows Vista
Product: Microsoft Excel 2007
Subcategory: Microsoft Office
Tags: excel, 2007, date
Comment:

How do I make it so if data is inputted into one cell then another cell produces the date. So... if A1 has any data B1 will show the current date. I do not want the date to change everyday or every time the document is opened in Excel 2007



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: September 17, 2009 at 11:07:55 Pacific
Reply:

=IF(A1<>"",NOW(),"")


0

Response Number 2
Name: willa
Date: September 18, 2009 at 04:48:41 Pacific
Reply:

This formual worked but when I opened the document this morning the date changed from yesteday's date to today's. I want the date entered when text is entered not to change. Is there a way to have the date come up but not change everytime the document is opened?


I truly appreciate your response yesterday


0

Response Number 3
Name: DerbyDad03
Date: September 18, 2009 at 05:17:55 Pacific
Reply:

I guess you confused me with this line:

So... if A1 has any data B1 will show the current date.

Current to me meant current at all times.

Anyway...

To place the date (and time) automatically when the cell is changed, but not have it change when you open the file, you have to use a Change Event macro.

Whenever A1 is changed this code will put the value of Now() in the cell, instead of the ever-changing NOW() function.

Private Sub Worksheet_Change(ByVal Target As Range)
 If Target.Address = "$A$1" Then Range("B1") = Now()
End Sub

Right-click the sheet tab, choose View Code and paste this in the window that opens.


0

Response Number 4
Name: kakarukeys
Date: September 19, 2009 at 03:24:18 Pacific
Reply:

Thanks. This is useful.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: How do I get the date when text is typed

how do I get my contacts list back? www.computing.net/answers/office/how-do-i-get-my-contacts-list-back/5781.html

Word problem! how do i get 1/2????? www.computing.net/answers/office/word-problem-how-do-i-get-12/2576.html

how do I seperate email from 2 acct www.computing.net/answers/office/how-do-i-seperate-email-from-2-acct/6784.html