#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default formating cells

I have created .xls file from a database of another program.
But excel does not treat the data the way I want. Example:

in one cell there is a value 126:00

126 should stand for hours, 00 should stand for minutes

If I want to sum two cells I get #VALUE.

The format of the cells was "General", I changed it to format h:mm,
but nothing changed.

But when I double click the cell and then confirm with enter the cell
gets the right format and the sum of the two cells is correct.

How can I change the whole column this way?

stremetzky

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default formating cells

Select the data and just do a DataText To Columns, and just finish (don't
use any of the function options).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"stremetzky" wrote in message
oups.com...
I have created .xls file from a database of another program.
But excel does not treat the data the way I want. Example:

in one cell there is a value 126:00

126 should stand for hours, 00 should stand for minutes

If I want to sum two cells I get #VALUE.

The format of the cells was "General", I changed it to format h:mm,
but nothing changed.

But when I double click the cell and then confirm with enter the cell
gets the right format and the sum of the two cells is correct.

How can I change the whole column this way?

stremetzky



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default formating cells

Thank you! It works!

But now there is another problem. Imported values are in 000:00 form
(000 for hours and 00 for minutes). If there is less than 100 hours
the value is still not treated as [h]:mm. For example:

029:15

How can I erase the first zero ??

stremetzky

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default formating cells

Try DataText To Columns with no delimiters or anything.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"stremetzky" wrote in message
oups.com...
Thank you! It works!

But now there is another problem. Imported values are in 000:00 form
(000 for hours and 00 for minutes). If there is less than 100 hours
the value is still not treated as [h]:mm. For example:

029:15

How can I erase the first zero ??

stremetzky



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
formating cells peter77 Excel Discussion (Misc queries) 2 April 10th 07 07:40 AM
Formating cells BT Excel Discussion (Misc queries) 4 February 5th 07 07:30 PM
Formating Cells Untiedfullfillment Excel Discussion (Misc queries) 2 October 11th 06 02:28 PM
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
Help formating Cells Jrr6415sun Excel Worksheet Functions 2 July 9th 05 10:13 PM


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