Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TimM
 
Posts: n/a
Default Auto populating date field

Ok so I have the following formula =IF(OR(H1={1,2,3,4}),TODAY(),"") and it
works all well and good but every day it changes the field to the next day.
Is there a way to make it so it will not update the next day.

What it does is when I enter a 1, 2, 3, 4 into that row in column H it
populates the field (we will say A1) with todays date. And it stays blank
when H is empty.

If any one can figure this out for me it would be great. Its not a dire
thing but more of a Ive gone this far with it might as well have it work
properly.

--
Thanks
TimM
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Auto populating date field

Maybe with code.........

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("h1").Value <= 5 Then
Range("a1").Value = Date
Else
Range("a1").Value = ""
End If
End Sub


Vaya con Dios,
Chuck, CABGx3



"TimM" wrote:

Ok so I have the following formula =IF(OR(H1={1,2,3,4}),TODAY(),"") and it
works all well and good but every day it changes the field to the next day.
Is there a way to make it so it will not update the next day.

What it does is when I enter a 1, 2, 3, 4 into that row in column H it
populates the field (we will say A1) with todays date. And it stays blank
when H is empty.

If any one can figure this out for me it would be great. Its not a dire
thing but more of a Ive gone this far with it might as well have it work
properly.

--
Thanks
TimM

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 format date field in footer? Terry Sharman New Users to Excel 5 April 12th 06 08:08 PM
Calculated Field in Pivot Table Based on Two Counted Fields cmlits Excel Discussion (Misc queries) 1 March 30th 06 05:44 AM
Changing a text field to a date field juliet New Users to Excel 4 February 21st 06 09:52 PM
How to read CSV lines into different Worksheets depending on a date field? Markus Obermayer Excel Worksheet Functions 0 February 8th 06 11:23 PM
Using a date field in mail merge triciaodd Excel Discussion (Misc queries) 0 January 26th 06 01:48 PM


All times are GMT +1. The time now is 12:25 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"