Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Converting NOW contents to TIME

Are those 1000 lines (rows, right?) contiguous throughout a single column?
If so, select those cells within the column that they are in and click
Data/TextToColumns in Excel's menu bar; then, on the dialog box that
appears, click the "Delimited" option button and then click the "Next"
button, put a check mark next to the "Space" checkbox and click the "Next"
button; choose the first column and click the "Date" option button, then
choose all other columns and click the "Do not import column (skip)" option
button for each of them; finally, click the "Finish" button. At this point,
you will probably have to change the selection's cell formatting to "Date"
to remove the "00:00" that might be left over from the original formatting
that Excel gave to the value. That should do it (assuming you can select
contiguous ranges of cells with a column).

Rick


"Phrank" wrote in message
...
I have done that, and that will take care of any future entries;
however, there are about a 1000 lines with the time entered as Now().
So, in order to get my time analysis calculations to work, I need to
change this to show just time. Any ideas other than simply retyping
the times? Thanks for your time and help.

Frank

On Sun, 2 Sep 2007 01:24:49 -0400, "Rick Rothstein \(MVP - VB\)"
wrote:

So I am guessing that both time values will occur within 24 hours of each
other and (probably) not across midnight. Why not change the VBA code to
use
the Time() function instead of the Now() function... that would solve your
problem in the simplest manner.

Rick


"Phrank" wrote in message
. ..
I have a worksheet that has a column where the time is entered (via
VBA) as NOW() and formatted as a time (this is the time the job is
submitted). All of the cells in this column show just a time (hh:mm),
but in the formula bar, it shows a date and time. I need to convert
this to simply a time. There is another column in which the operator
enters the time that they completed the job. This too is formatted as
hh:mm, but since the operator specifically enters the time, the number
in the cell is formatted as hh:mm and it's only a time in the formula
bar. I need both columns to simply show the time so I can do some
time calculations (the current layout yields an error message). How
do I make the initially entered (date and) time show up in the formula
bar AND the cell as just a time? Thanks.

Frank


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
Converting time formats into actual time(minutes) LeighM Excel Discussion (Misc queries) 2 October 30th 06 05:15 AM
Converting Eastern time to Central time DonaldM210 Excel Discussion (Misc queries) 5 August 12th 06 09:52 PM
Converting decimal time to standard time? mpendleton Excel Discussion (Misc queries) 4 May 12th 06 10:07 PM
Converting cell contents to a formula Neil Excel Worksheet Functions 4 July 27th 05 06:27 AM
Can't stop time duration [hh]:mm:ss converting to time of day Jack Cutrone Excel Discussion (Misc queries) 7 December 27th 04 11:23 PM


All times are GMT +1. The time now is 08:59 AM.

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"