Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default How can I convert This

How can I convert 7:00 PM (or 0.791666666666667) to 1900 (this has a general
format)

My problem is that I import a database from MS Access and its time format is
as the example above shows. Thus I'm looking for a formula that can convert
my Times eg 6:15 AM to 615 etc


Thanks



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph
 
Posts: n/a
Default How can I convert This

"John" wrote in message
...
How can I convert 7:00 PM (or 0.791666666666667) to 1900 (this has a
general format)

My problem is that I import a database from MS Access and its time format
is as the example above shows. Thus I'm looking for a formula that can
convert my Times eg 6:15 AM to 615 etc


If you just want to display it that way, Format Cells/ Custom
hhmm

If you actually want to convert the number to that format, then you'll need
something like
=HOUR(B1)*100+MINUTE(B1)
but of course you'll need to be careful as you couldn't sensibly add 620 to
750 in that way.

Another option is =TEXT(B1,"hhmm"), but you'd still need to be cautious that
you didn't try to do arithmetic on the text cells as if they were sensible
numbers.
--
David Biddulph


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default How can I convert This

Thanks David, something to think about. I'll test it later today using your
options



"David Biddulph" wrote in message
...
"John" wrote in message
...
How can I convert 7:00 PM (or 0.791666666666667) to 1900 (this has a
general format)

My problem is that I import a database from MS Access and its time format
is as the example above shows. Thus I'm looking for a formula that can
convert my Times eg 6:15 AM to 615 etc


If you just want to display it that way, Format Cells/ Custom
hhmm

If you actually want to convert the number to that format, then you'll
need something like
=HOUR(B1)*100+MINUTE(B1)
but of course you'll need to be careful as you couldn't sensibly add 620
to 750 in that way.

Another option is =TEXT(B1,"hhmm"), but you'd still need to be cautious
that you didn't try to do arithmetic on the text cells as if they were
sensible numbers.
--
David Biddulph



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John
 
Posts: n/a
Default How can I convert This

Daivd, I've used =HOUR(B1)*100+MINUTE(B1) suggestion and it seems to work
fine

Thanks


"John" wrote in message
...
Thanks David, something to think about. I'll test it later today using
your options



"David Biddulph" wrote in message
...
"John" wrote in message
...
How can I convert 7:00 PM (or 0.791666666666667) to 1900 (this has a
general format)

My problem is that I import a database from MS Access and its time
format is as the example above shows. Thus I'm looking for a formula
that can convert my Times eg 6:15 AM to 615 etc


If you just want to display it that way, Format Cells/ Custom
hhmm

If you actually want to convert the number to that format, then you'll
need something like
=HOUR(B1)*100+MINUTE(B1)
but of course you'll need to be careful as you couldn't sensibly add 620
to 750 in that way.

Another option is =TEXT(B1,"hhmm"), but you'd still need to be cautious
that you didn't try to do arithmetic on the text cells as if they were
sensible numbers.
--
David Biddulph





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 displayed number to absolute value jmorris305 Excel Discussion (Misc queries) 3 February 28th 06 01:27 AM
Convert decimal degree (lattitude/longitude) into Degree, Tim Ashcom Excel Discussion (Misc queries) 5 August 17th 05 04:53 PM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
convert decimal number to time : convert 1,59 (minutes, dec) to m agenda9533 Excel Discussion (Misc queries) 8 January 20th 05 10:24 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM


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