Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default time and date formula

Hello,

Can someone help me with this one?

in Cell A1 I would like to have the current Time and date ( in that order)
returned if Cell B1 contains any data text or numbers in it. Otherwise I
would like Cell A1 to be blank if B1 is blank.

Thank You
Brian


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

=if(b1="","",now())

Format A1 to include both the time and date:

hh:mm:ss mm/dd/yyyy

Brian wrote:

Hello,

Can someone help me with this one?

in Cell A1 I would like to have the current Time and date ( in that order)
returned if Cell B1 contains any data text or numbers in it. Otherwise I
would like Cell A1 to be blank if B1 is blank.

Thank You
Brian


--

Dave Peterson
  #3   Report Post  
Brian
 
Posts: n/a
Default

Thank You
that worked great, One problem is that i did not realize that it does not
stay the time originally entered.
If I enter data in b1 and hit return the current time is inserted ex 2100
but one minute later if I enter data somewhere else on the sheet, unrelated
the A1 cell, the time changes to 2101, how can I make it so that the current
time entered acts as a time stamp and does not change?
Thanks
brian

"Dave Peterson" wrote:

=if(b1="","",now())

Format A1 to include both the time and date:

hh:mm:ss mm/dd/yyyy

Brian wrote:

Hello,

Can someone help me with this one?

in Cell A1 I would like to have the current Time and date ( in that order)
returned if Cell B1 contains any data text or numbers in it. Otherwise I
would like Cell A1 to be blank if B1 is blank.

Thank You
Brian


--

Dave Peterson

  #4   Report Post  
Max
 
Posts: n/a
Default

"Brian" wrote
....
.. how can I make it so that the current
time entered acts as a time stamp and does not change?


Try JE's "DateTimeStamp Macro" at his page:
http://www.mcgimpsey.com/excel/timestamp.html
(Scroll down the page)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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
Automatically enter date and time but only update once. PM New Users to Excel 3 January 21st 05 07:47 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM


All times are GMT +1. The time now is 02:59 PM.

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

About Us

"It's about Microsoft Excel"