time stamp but no date

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
782
Office Version
  1. 365
  2. 2010
i can use =now() but that also gives me the date in front....is there a simple way to only have the time?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You can simply change the format of the cell to only show the time and not the date.
But note that =NOW() is NOT a date/time stamp! It is a volatile formula that will keep changing with each calculation (and each time you open the file).
If you want to "lock in" an actual date/time stamp so that its value does not change once entered, you will need to use VBA (if you want to do it automatically).
A simple Google search on "Excel Time Stamp" will return many threads of this nature.
 
Upvote 0
Ostensibly, =MOD(NOW(),1) results in just time of day, accurate to the 1/100 second (truncated).

But if you intend to use that value for look-ups and other comparisons, it would be prudent to write:

=--TEXT(NOW(), "h:m:s.000")
or
=--TEXT(NOW(), "h:m:s")

depending on the accuracy that your require. Format the result any way that you wish.
 
Upvote 0

Forum statistics

Threads
1,224,755
Messages
6,180,751
Members
452,996
Latest member
nelsonsix66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top