Excel format help p...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Excel format help please

5 Posts
4 Users
0 Reactions
44 Views
Posts: 0
Free Member
Topic starter
 

I record my rides on an Excel spreadsheet. On Saturday I rode 29.4 miles in 4 hours 18 mins. How can I set a formula to convert this to mph? If I enter the time as 4.18 Excel regards the minutes (18) as a fraction, but if I use the time formula 4:18 then the calculation comes up with silly answer.

Does anyone know how to set a formula to do the calculation?


 
Posted : 15/06/2009 7:24 am
 mrmo
Posts: 10709
Free Member
 

convert time to a decimal, 4.18 treat as 4 and 18/60. either enter over two cells, so you have an hour cell and a minutes cell or you need to break down the number so it is treated as such.

you can then add 4 and 18/60 to give the timetaken.


 
Posted : 15/06/2009 7:48 am
Posts: 0
Free Member
Topic starter
 

Thanks, but that's too complicated and needs too many cells/key strokes. I've managed to find a formula that I can programme into my spreadsheet that will carry out the calculation for me and all I have to do is enter the values into pre formatted cells. A little bit of work now then easy peasy ever after.


 
Posted : 15/06/2009 9:27 am
Posts: 36
Free Member
 

=QUOTIENT(B1,1)+(MOD(B1, 1)/0.6)/A1

Typed into C1 where A1 is miles and B1 is time in the form H.MM


 
Posted : 15/06/2009 9:34 am
Posts: 0
Free Member
Topic starter
 

I was sent :-

Format cell B1 as Time, B2 as Number and B3 as Number. Enter 4:18 into B1 and 29.2 into B2 and =B2/((B1-INT(B1))*24) into B3

Needs a bit of tweaking to get it working across the page.


 
Posted : 15/06/2009 10:01 am
Posts: 0
Free Member
 

Enter the miles in cell A1 formatted as number
Enter time in cell B1 in TIME format (i.e. 4:18). The time format stores the number as a decimal of a day, e.g. 12:00 is stored as 0.5, 12 hours = 0.5 days)

So enter formula in cell C1 formatted as a number =(A1/B1)/24.

Ta da.


 
Posted : 15/06/2009 11:09 am