#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Auto Date


Hello,

I am working on a spreadsheet that in cells B3:B43 I have a list that the
user can select a planet from the list. When they select a planet I would
like the worksheet to auto fill in the current date in cell O3. And when
cells B3:B43 are blank cell O3 will be blank as well.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,276
Default Auto Date


Hi,
try

=IF(COUNTA(B3:B43)0,TODAY(),"")

if this helps please click yes, thanks

"RJ Swain" wrote:

Hello,

I am working on a spreadsheet that in cells B3:B43 I have a list that the
user can select a planet from the list. When they select a planet I would
like the worksheet to auto fill in the current date in cell O3. And when
cells B3:B43 are blank cell O3 will be blank as well.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Auto Date


If the date is to be always in O3 try the below. or if it is in Col O then
change Range("O3") = to Range("O" & Target.Row)=

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("B3:B43")) Is Nothing Then
If WorksheetFunction.Count(Range("B3:B43")) < 0 Then
Range("O3") = Date
Else
Range("O3") = ""
End If
End If
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"RJ Swain" wrote:

Hello,

I am working on a spreadsheet that in cells B3:B43 I have a list that the
user can select a planet from the list. When they select a planet I would
like the worksheet to auto fill in the current date in cell O3. And when
cells B3:B43 are blank cell O3 will be blank as well.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Auto Date


Now a little twist to this. How can I have it auto update the date when
someone opens the excel spreadsheet? Right now, it puts in the date when the
data is entered but is it possible to have it auto update the date when the
user opens it up the following day?

"Eduardo" wrote:

Hi,
try

=IF(COUNTA(B3:B43)0,TODAY(),"")

if this helps please click yes, thanks

"RJ Swain" wrote:

Hello,

I am working on a spreadsheet that in cells B3:B43 I have a list that the
user can select a planet from the list. When they select a planet I would
like the worksheet to auto fill in the current date in cell O3. And when
cells B3:B43 are blank cell O3 will be blank as well.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Auto Date


Hi,

If you have a look tomorrow you'll see the formula Eduardo gave you will
have updated to tomorrows date.

Mike

"RJ Swain" wrote:

Now a little twist to this. How can I have it auto update the date when
someone opens the excel spreadsheet? Right now, it puts in the date when the
data is entered but is it possible to have it auto update the date when the
user opens it up the following day?

"Eduardo" wrote:

Hi,
try

=IF(COUNTA(B3:B43)0,TODAY(),"")

if this helps please click yes, thanks

"RJ Swain" wrote:

Hello,

I am working on a spreadsheet that in cells B3:B43 I have a list that the
user can select a planet from the list. When they select a planet I would
like the worksheet to auto fill in the current date in cell O3. And when
cells B3:B43 are blank cell O3 will be blank as well.

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
Auto Date Ken McGonagle Excel Discussion (Misc queries) 9 January 21st 08 08:34 PM
auto date albert Excel Programming 1 December 18th 07 03:34 PM
Auto calculate for date + days forward to yield new date John Sullivan Excel Worksheet Functions 1 April 22nd 06 05:18 PM
Auto Protecting cells & auto filling date ccarmock Excel Discussion (Misc queries) 7 September 30th 05 09:21 PM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 02:55 AM


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