#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Time format

I have copied and pasted some data including times. Some times have a single
digit for the hour and when it pastes into Excel, that first digit comes in
as a space not a zero. Because of that, those fields seem to ignore all
formatting changes. Is there a trim function for times?
--
Oregon Julie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Time format

I usually highlight the cells and then use the menu option Edit - Replace.
Put a space in the FROM: box and nothing TO: box and click REPLACE ALL.
Sometimes it is not just a space but some other invisible character. then do
the same but highlight on the worksheet the invisible character and type Cntl
(to copy) and then go to the replace From box and paste the character into
the box using Cntl - V. Then select REPLACE ALL.

"JulieB" wrote:

I have copied and pasted some data including times. Some times have a single
digit for the hour and when it pastes into Excel, that first digit comes in
as a space not a zero. Because of that, those fields seem to ignore all
formatting changes. Is there a trim function for times?
--
Oregon Julie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Time format

It replaces the space between the date and AM/PM. Am I doing something wrong?
--
Oregon Julie


"Joel" wrote:

I usually highlight the cells and then use the menu option Edit - Replace.
Put a space in the FROM: box and nothing TO: box and click REPLACE ALL.
Sometimes it is not just a space but some other invisible character. then do
the same but highlight on the worksheet the invisible character and type Cntl
(to copy) and then go to the replace From box and paste the character into
the box using Cntl - V. Then select REPLACE ALL.

"JulieB" wrote:

I have copied and pasted some data including times. Some times have a single
digit for the hour and when it pastes into Excel, that first digit comes in
as a space not a zero. Because of that, those fields seem to ignore all
formatting changes. Is there a trim function for times?
--
Oregon Julie

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Time format

Go back and replace "AM" with " AM" (add a space in front) and do the same
with "PM" to " PM"

This should fix the problem.




"JulieB" wrote:

It replaces the space between the date and AM/PM. Am I doing something wrong?
--
Oregon Julie


"Joel" wrote:

I usually highlight the cells and then use the menu option Edit - Replace.
Put a space in the FROM: box and nothing TO: box and click REPLACE ALL.
Sometimes it is not just a space but some other invisible character. then do
the same but highlight on the worksheet the invisible character and type Cntl
(to copy) and then go to the replace From box and paste the character into
the box using Cntl - V. Then select REPLACE ALL.

"JulieB" wrote:

I have copied and pasted some data including times. Some times have a single
digit for the hour and when it pastes into Excel, that first digit comes in
as a space not a zero. Because of that, those fields seem to ignore all
formatting changes. Is there a trim function for times?
--
Oregon Julie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Time format

Duh....thanks!
--
Oregon Julie


"Joel" wrote:

Go back and replace "AM" with " AM" (add a space in front) and do the same
with "PM" to " PM"

This should fix the problem.




"JulieB" wrote:

It replaces the space between the date and AM/PM. Am I doing something wrong?
--
Oregon Julie


"Joel" wrote:

I usually highlight the cells and then use the menu option Edit - Replace.
Put a space in the FROM: box and nothing TO: box and click REPLACE ALL.
Sometimes it is not just a space but some other invisible character. then do
the same but highlight on the worksheet the invisible character and type Cntl
(to copy) and then go to the replace From box and paste the character into
the box using Cntl - V. Then select REPLACE ALL.

"JulieB" wrote:

I have copied and pasted some data including times. Some times have a single
digit for the hour and when it pastes into Excel, that first digit comes in
as a space not a zero. Because of that, those fields seem to ignore all
formatting changes. Is there a trim function for times?
--
Oregon Julie

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
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Convert time stored as decimalised number to time format Emma New Users to Excel 1 April 29th 08 03:06 PM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


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