LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default delete spaces

Thank u G., for your complete solution
--
abugoli


"George Nicholson" wrote:

-Create a new "Helper" column
- In the Helper Column, add the formula: = Trim(B2)
(Where B is the column you want to Trim spaces from)
- Replace the old B values with the results from the Helper (Copy &
PasteSpecial(Values))
- Delete the Helper column

or

Do both steps at once. To convert your existing data to minutes-as-decimal,
use this in your helper column instead:
=(HOUR(TRIM(B2))*60)+MINUTE(TRIM(B2))+(SECOND(TRIM (B2))/60)

HTH,

"abugoli" wrote in message
...
in my excel file there is a column of times in the format hh:mm:ss.
I want to convert it to decimal value (i.e. 02:15:30 will be 135.5 min.).
the problem is that every value starts end ends with spaces, and because
of
that I can't use the functions hour(),minute(),second().
I can delete the spaces one by one, but it's a large file and a lot of
work.
how can I delete the spaces ??
thanks a lot
--
abugoli






 
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
Delete spaces rexmann Excel Discussion (Misc queries) 4 March 7th 08 02:38 PM
delete single spaces Mark R Excel Discussion (Misc queries) 5 May 31st 07 05:03 PM
How do I delete spaces from the end of text George Excel Discussion (Misc queries) 4 September 11th 06 07:33 AM
how do I delete the last two spaces in a cell brantty Excel Discussion (Misc queries) 2 July 27th 06 01:14 AM
delete spaces CHARI Excel Worksheet Functions 2 September 9th 05 10:38 AM


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