LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default How to customize =Now()

Well, thanks for feeding back, Robin - glad to be of help.

Note Fred's recent response to you, however.

Pete

On Aug 15, 10:55*pm, Robin wrote:
Pete,

* I really like the instruction. I was thinking it had to be a specific way
with the dd/mm/yy; however this would be easier and a more accurate count of
time in that months vary in days and Years vary because of leap year. Your
formula is a more accurate measurement the is the most inclusive. It works
and subtracts appropriatly. I thank everyone that has tried to help me. It is
learning something new, a new process and then realizing what is actually
happening.

Robin



"Pete_UK" wrote:
Dates and times are just numbers to Excel, so you can subtract them.
However, Excel uses integers to stand for dates (they are the number
of days since a reference data of 1st Jan 1990), and fractions of a 24-
hour day to stand for times. You can format the cell differently so
that the elapsed days are not interpreted as a date. For example, use
this custom format on the cell which contains the subtraction formula:


d" days "hh:mm:ss


This will give you something like:


14 days 09:18:20


depending on the value of NOW() in your region.


Hope this helps.


Pete


On Aug 15, 7:12 pm, Robin wrote:
I have not worked with macros. I do have a static start date that will be
typed by the user; however it is less than a month and is returning a month
has elapsed. I know that excell only gives examples of elapsed time in hours
and seconds. Is there anyway to accomplish this for date and time for
mm/dd/yy hh:mm:ss - mm/dd/yy hh:mm:ss. The times that I have are Current,
Start, End. I would like to show the elapsed time of *Current minus Start and
End minus Start. Is this possible? Please notice the following example that I
have given. It does not work appropriatly. It is important that be able to
show elapsed time via date and time.
I am still having a problem in that I want the time to be all inclusive. It
is not subtracting properly. for instance
*08/15/09 *12:56:15
-08/01/09 *11:00:50
=01/14/00 *01:55:25
*The 1 should not be in the month since a month has not elapsed.


"Gord Dibben" wrote:
Problem with NOW() is its volatility.


To calculate elapsed time you would need a staic start time.


I would use a macro to enter a static time.


Sub NOWTIME()
* * ActiveCell.Value = Format(Now, "dd/mm/yyyy h:mm:ss")
End Sub


Without the date format.


Sub NOWTIME()
* * ActiveCell.Value = Format(Now, "h:mm:ss")
End Sub


Gord Dibben *MS Excel MVP


On Fri, 14 Aug 2009 15:56:02 -0700, Robin
wrote:


How do you customize the =Now() so that it is in the format of dd/mm/yy and
hh:mm:ss instead of dd/mm/yyyy and hh:mm (military time). I am trying to have
an elapsed time with the now time minus the start time which is in the form
of mm/dd/yy hh:mm:ss. Will it give the correct elapsed time if it is in the
current format.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


 
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
Customize Keyboard TychaBrahe Setting up and Configuration of Excel 2 March 21st 08 11:33 PM
Calendar customize Carl R Excel Discussion (Misc queries) 1 July 24th 07 04:28 PM
Customize view hopec Excel Discussion (Misc queries) 1 June 16th 07 01:46 AM
Customize Toolbar Andy Excel Discussion (Misc queries) 1 March 8th 07 05:12 PM
Customize Toolbar DeLyn Excel Discussion (Misc queries) 1 January 30th 06 11:53 PM


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