#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Time Formatting

I have a value in a spreadsheet supplied to me that reads as:
"10:08:40, 25/08/2007"
Using the LEFT function I have pulled out "10:08:40" successfully but cannot
seem format it as Time no matter what I do. I have used the Format function
and the Format Painter. Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Time Formatting



"Fat Bloke" wrote:

I have a value in a spreadsheet supplied to me that reads as:
"10:08:40, 25/08/2007"
Using the LEFT function I have pulled out "10:08:40" successfully but cannot
seem format it as Time no matter what I do. I have used the Format function
and the Format Painter. Can anyone help?

Its OK, I have answered my own question. There may be a better way of doing
this but I have resolved the problem by copying the data into an Access dbase
table with a single field pre-formatted as Date/Time. I then copied that data
back into Excel - hey presto - Time Format!
There may be a better/quicker way of doing this. If so I'm still interested
but at least I can carry on with my work now.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Time Formatting

Hi Fat Bloke,

If you extract a text value from a text value such as you explain
it will remain a text value. To convert a text value to a number value
it is simply a matter of multiplying by 1, or adding zero or using
other tricks in your formula. The way you convert these values
alters with the situation and what you are trying to achieve.

In this situation I imagine you used something like
=LEFT(A1,8)
which will return a text value

=LEFT(A1,8)*1
=LEFT(A1,8)+0
=--LEFT(A1,8)
will all return a number value

HTH
Martin


"Fat Bloke" wrote in message
...


"Fat Bloke" wrote:

I have a value in a spreadsheet supplied to me that reads as:
"10:08:40, 25/08/2007"
Using the LEFT function I have pulled out "10:08:40" successfully but
cannot
seem format it as Time no matter what I do. I have used the Format
function
and the Format Painter. Can anyone help?

Its OK, I have answered my own question. There may be a better way of
doing
this but I have resolved the problem by copying the data into an Access
dbase
table with a single field pre-formatted as Date/Time. I then copied that
data
back into Excel - hey presto - Time Format!
There may be a better/quicker way of doing this. If so I'm still
interested
but at least I can carry on with my work now.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Time Formatting

If your data is in a single column, you could use Data|Text to columns.

Choose delimited by comma and space
And choose General for the first field (the time)
and choose date (dmy) for the second field

I'd insert a couple columns to the right so that I didn't overwrite any existing
data.

And if you have multiple columns like this, you can do each column one at a
time.



Fat Bloke wrote:

I have a value in a spreadsheet supplied to me that reads as:
"10:08:40, 25/08/2007"
Using the LEFT function I have pulled out "10:08:40" successfully but cannot
seem format it as Time no matter what I do. I have used the Format function
and the Format Painter. Can anyone 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
Time formatting Zygan Excel Discussion (Misc queries) 2 July 7th 06 03:18 PM
Time formatting Eileen New Users to Excel 2 October 3rd 05 09:34 PM
Formatting / Time lehigh46 Excel Worksheet Functions 3 July 25th 05 07:48 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 4 November 18th 04 03:24 PM
time formatting and time categorizing (vlookup or data validation) MarianneR Excel Worksheet Functions 0 November 18th 04 03:13 PM


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