Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Time Conversion issue

Hi,

I have a Excel file with time values in a number of columns. The times are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Time Conversion issue

When you are entering the time, I assume you are entering as 1:45? the issue
is that when you enter time with the colon, it automatically assumes the
first digit is the hours. So in order to enter 1 minute 45 seconds you would
actually need to enter 0:1:45

Hope this helps.
--
John C


"Farias" wrote:

Hi,

I have a Excel file with time values in a number of columns. The times are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Time Conversion issue

25:45 is 1 day (24 hours) + 1 hour 45 minutes.
If you want to lose the complete days, use =MOD(A2,1) and that will turn it
from 25:45 to 1:45.
If you then want to re-interpret from hours and minutes to minutes and
seconds, you can then divide by 60, so =MOD(A2,1)/60 should give you
00:01:45
--
David Biddulph

"Farias" wrote in message
...
Hi,

I have a Excel file with time values in a number of columns. The times
are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but
instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Time Conversion issue


assuming a2 has 01:45 (hh:mm)

=a2/60 format it as [h]:mm:ss

hth

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Farias" escreveu:

Hi,

I have a Excel file with time values in a number of columns. The times are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Time Conversion issue

Enter 60 in an unused cell then copy and Paste Special Divide into the
cell, or cells, that you want to change. Finally reformat the cell as mm:ss

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Farias" wrote in message
...
Hi,

I have a Excel file with time values in a number of columns. The times
are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but
instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Time Conversion issue

First of all what you have not only hours but also one day, one hour and 45
minutes

if you day/hour/minute is in A1 use this

=MOD(A1,1)/60

format as mm:ss or [mm]:ss if your minutes will be greater than 59:59
and copy down. Copy and paste special as values to make them static
For future entries enter a minute like 00:01:00


--


Regards,


Peo Sjoblom

"Farias" wrote in message
...
Hi,

I have a Excel file with time values in a number of columns. The times
are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but
instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Time Conversion issue

Thanks David

This is what I was looking for!



"David Biddulph" wrote:

25:45 is 1 day (24 hours) + 1 hour 45 minutes.
If you want to lose the complete days, use =MOD(A2,1) and that will turn it
from 25:45 to 1:45.
If you then want to re-interpret from hours and minutes to minutes and
seconds, you can then divide by 60, so =MOD(A2,1)/60 should give you
00:01:45
--
David Biddulph

"Farias" wrote in message
...
Hi,

I have a Excel file with time values in a number of columns. The times
are
in hh:mm (01:45) format but should be in mm:ss (01:45) format.

If i change the cell format to [hh]:mm:ss I get 25:45:00.

I divided by 60 and then changed the cell format to mm:ss but got 25:45,
also tried to divide it by 24 first to try to have only 1:45:00 but
instead I
get 01:04:23

I hope this makes sence.

Thanks for your help.




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
Date conversion issue GKW in GA Excel Discussion (Misc queries) 3 December 10th 07 07:17 PM
'03 UDF conversion to '07 encryption issue Jack Excel Worksheet Functions 0 November 12th 07 09:33 PM
Excel time conversion issue benny Excel Discussion (Misc queries) 4 October 11th 07 09:10 PM
XML to Excel conversion issue Nirad Excel Discussion (Misc queries) 1 June 19th 07 05:26 PM
Date conversion issue... again Dimmer Excel Discussion (Misc queries) 6 July 11th 05 04:11 PM


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"