#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default DATE STATIC

I need the date in "B5" to be Static according to the date that the
data was entered into "A5" (As long as the Data is greater than 1)

EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
"A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
but "A5" should stll be dated as 21 Aug 2006

This is the formula I entered into "B5", "B6" etc yesterday
=IF(A5 1,NOW(),"")
=IF(A6 1,NOW(),"")
But this updates the date to todays date and doesnt stay static for the day
that the data was into the relevant "A" cell.

Thanks for any help in advance
Shaggy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default DATE STATIC

http://www.mcgimpsey.com/excel/timestamp.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Shaggy" wrote in message ...
| I need the date in "B5" to be Static according to the date that the
| data was entered into "A5" (As long as the Data is greater than 1)
|
| EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
| "A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
| but "A5" should stll be dated as 21 Aug 2006
|
| This is the formula I entered into "B5", "B6" etc yesterday
| =IF(A5 1,NOW(),"")
| =IF(A6 1,NOW(),"")
| But this updates the date to todays date and doesnt stay static for the day
| that the data was into the relevant "A" cell.
|
| Thanks for any help in advance
| Shaggy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default DATE STATIC

Enter this small macro in worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A5")) Is Nothing Then Exit Sub
Range("B5").Value = Now()
Range("B5").NumberFormat = "dd mmmm yyyy"
End Sub

REMEMBER: Worksheet code
--
Gary's Student


"Shaggy" wrote:

I need the date in "B5" to be Static according to the date that the
data was entered into "A5" (As long as the Data is greater than 1)

EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
"A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
but "A5" should stll be dated as 21 Aug 2006

This is the formula I entered into "B5", "B6" etc yesterday
=IF(A5 1,NOW(),"")
=IF(A6 1,NOW(),"")
But this updates the date to todays date and doesnt stay static for the day
that the data was into the relevant "A" cell.

Thanks for any help in advance
Shaggy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default DATE STATIC

Thanks for your response,
I am confussed, I am the first to admit that I am not the greatest at
Excel 2003, But if you wouldnt mind explaining in a bit more depth,

Regards
Shaggy

"Gary''s Student" wrote:

Enter this small macro in worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A5")) Is Nothing Then Exit Sub
Range("B5").Value = Now()
Range("B5").NumberFormat = "dd mmmm yyyy"
End Sub

REMEMBER: Worksheet code
--
Gary's Student


"Shaggy" wrote:

I need the date in "B5" to be Static according to the date that the
data was entered into "A5" (As long as the Data is greater than 1)

EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
"A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
but "A5" should stll be dated as 21 Aug 2006

This is the formula I entered into "B5", "B6" etc yesterday
=IF(A5 1,NOW(),"")
=IF(A6 1,NOW(),"")
But this updates the date to todays date and doesnt stay static for the day
that the data was into the relevant "A" cell.

Thanks for any help in advance
Shaggy

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default DATE STATIC

The small program I posted is a macro. The program will run whenever cell A5
changes. The little program will put today's date in B5 (Not a formula).

All you need to do is to copy the program and paste it in the correct place.
If you are not familiar with macros, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm
or
http://www.cpearson.com/excel/codemods.htm
--
Gary''s Student


"Shaggy" wrote:

Thanks for your response,
I am confussed, I am the first to admit that I am not the greatest at
Excel 2003, But if you wouldnt mind explaining in a bit more depth,

Regards
Shaggy

"Gary''s Student" wrote:

Enter this small macro in worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A5")) Is Nothing Then Exit Sub
Range("B5").Value = Now()
Range("B5").NumberFormat = "dd mmmm yyyy"
End Sub

REMEMBER: Worksheet code
--
Gary's Student


"Shaggy" wrote:

I need the date in "B5" to be Static according to the date that the
data was entered into "A5" (As long as the Data is greater than 1)

EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
"A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
but "A5" should stll be dated as 21 Aug 2006

This is the formula I entered into "B5", "B6" etc yesterday
=IF(A5 1,NOW(),"")
=IF(A6 1,NOW(),"")
But this updates the date to todays date and doesnt stay static for the day
that the data was into the relevant "A" cell.

Thanks for any help in advance
Shaggy



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default DATE STATIC

Shaggy

See my answer to your other posting....you know, the thread you already had
going.


Gord Dibben MS Excel MVP

On Mon, 21 Aug 2006 15:11:58 -0700, Shaggy
wrote:

I need the date in "B5" to be Static according to the date that the
data was entered into "A5" (As long as the Data is greater than 1)

EG: "A5" = 19000 (Which i type in on 21 Aug 2006) so "B5" = 21 Aug 2006
"A6" = 20001 (Which i type in on 23 Aug 2006) so "B6' = 23 Aug 2006
but "A5" should stll be dated as 21 Aug 2006

This is the formula I entered into "B5", "B6" etc yesterday
=IF(A5 1,NOW(),"")
=IF(A6 1,NOW(),"")
But this updates the date to todays date and doesnt stay static for the day
that the data was into the relevant "A" cell.

Thanks for any help in advance
Shaggy


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Date format issue CindyLF1 New Users to Excel 3 June 12th 06 06:18 PM
how can i set a static date and time in excel ucastores Excel Worksheet Functions 2 June 3rd 06 01:38 AM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM


All times are GMT +1. The time now is 07:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"