Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel: how to convert "27.11.2007 15:13" to number (cellformat fai

In Excel, I have a very long list of entries showing a date and a time in the
same cell (e.g. 27.11.2007 15:13, date is in European date format). I would
like to convert each cell to a number so I can perform calculations.

However, using the Menu: FORMAT - CELL - NUMBER does convert it to a number.

Note: If I input the date and time by hand in the same cell then formatting
as outlined above works.

Can you help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Excel: how to convert "27.11.2007 15:13" to number (cellformat fai

Select the column and then do a Replace (Ctrl-H) and replace . with /

--
HTH

Bob

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

"dominico23" wrote in message
...
In Excel, I have a very long list of entries showing a date and a time in
the
same cell (e.g. 27.11.2007 15:13, date is in European date format). I
would
like to convert each cell to a number so I can perform calculations.

However, using the Menu: FORMAT - CELL - NUMBER does convert it to a
number.

Note: If I input the date and time by hand in the same cell then
formatting
as outlined above works.

Can you help?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel: how to convert "27.11.2007 15:13" to number (cellformat fai

If you format the cells as General and see a number, then those values are
already dates and times.

You should be able to do your calculations directly with that data.

You may want to double check your range, though.

I'd use a couple of formulas like:

=counta(a2:a999)
and
=count(a2:a999)

(Where a2:a999 is the range that contain those values.)

If those formulas evalate to the same number, then it sounds like everything is
ok for you.

Another way to double check the entries is to give the range an unambiguous date
format:
mmmm dd, yyyy hh:mm:ss

If you see values that don't change, then those cells are text and you've got
problems.

One of the biggest problems will be a mixture of mdy and dmy values. If some
are dates and some are not dates, then you may have some bad values in your
data.

01.02.2007
could be seen as January 2, 2007 or February 1, 2007.

In those cases, I'd go back to the original source to see what's correct and
what isn't.



dominico23 wrote:

In Excel, I have a very long list of entries showing a date and a time in the
same cell (e.g. 27.11.2007 15:13, date is in European date format). I would
like to convert each cell to a number so I can perform calculations.

However, using the Menu: FORMAT - CELL - NUMBER does convert it to a number.

Note: If I input the date and time by hand in the same cell then formatting
as outlined above works.

Can you help?


--

Dave Peterson
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
convert number to its letters ( convert "1" to "One" ) Fransois Excel Discussion (Misc queries) 1 September 23rd 06 11:58 AM
convert "15000" to "Fifteen thousand" in excel cell? anurag Excel Worksheet Functions 1 May 4th 06 07:58 AM
can we convert "2 days 16 hrs" to " 64hrs" using excel functions chris Excel Worksheet Functions 5 April 24th 06 12:53 AM
How can I convert a Number into words. Ex: "10" as "Ten" Eagles199 Excel Worksheet Functions 1 January 24th 06 06:48 AM
Why does excel convert my text "6990011011234" to "6.99E+12"? pj Excel Discussion (Misc queries) 1 January 8th 06 03:27 AM


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