FLY2HMO From , joined Dec 1969, posts, RR: Posted (4 years 7 months 8 hours ago) and read 2840 times:

So I'm building a spreadsheet where I need to calculate the operating cost per hour per route for a plane.

So in simple terms the formula would be column A (duration of flight) times column B (cost to operate aircraft per hour) = cost for flying the route

The problem is that I can't figure out for the life of me (short of converting hours to decimal format) how to make excel multiply the time in regular time format correctly to get the correct results.

A sample formula that I'm trying to do:

1:30hrs x $850= $38 (according to excel, WTF?!?)

The A column is selected to be in time format.

If i change the hours to normal general decimal format then excel gives me the right answer:

1.5hrs x $850 = $1275

I've searched like crazy on the help system and on google and cant find an answer.

I need to use non decimal format times for a presentation. Any ideas?

Phoenix9 From Canada, joined Aug 2007, 2546 posts, RR: 8
Reply 1, posted (4 years 7 months 8 hours ago) and read 2830 times:

Quoting FLY2HMO (Thread starter): I need to use non decimal format times for a presentation. Any ideas?

Enter the time in minutes instead of hours, you won't need to enter decimals

This is an indirect method: create another column with time in decimals and use that in your formula. When doing the presentation, just shrink the column to hide it or use 'white' as the text colour

Sorry couldn't help more.

Life only makes sense when you look at it backwards.

casInterest From United States of America, joined Feb 2005, 4613 posts, RR: 2
Reply 4, posted (4 years 7 months 8 hours ago) and read 2813 times:

You forget that you are using two different units values to multiply into $/hour. if you truly want $ per hour as your multiplier you need too have the time entered as hours. Think of this as a modulus operation on the true number.

Hours of the timestamp+Minutes of the Timestamp converted to hours by dividing by 60

I ran a sample listed below.

I offer up the following: Where A is your Time format in X:X and B is your Cash

Petertenthije From Netherlands, joined Jul 2001, 3368 posts, RR: 12
Reply 6, posted (4 years 7 months 8 hours ago) and read 2811 times:

I use the Dutch version, so the exact term might be slight different.

Say you got your begin time in cell A1, end time in B1 and the total time in C1 (=B1-A1).

You have two options, one simple one a bit longer:

A1 = 10:00
B1 = 12:30
C1 = 2:30
D1, add funtion "=HOUR(C1)", result will be "2", multiply this by the price per hour so you get "=HOUR(C1)*850". You'll get 2*850 = 1700.
E1, add funtion "=MINUTE(C1)", result will be "30", divide this by 60 (minutes) and multiply by the price per hour so you get "=(HOUR(C1)/60)*850". You'll get 0,5*850 = 425.
F1, add function =D1+F1". You'll get 1700 + 425 = 2125.

Or you can combine the function in cell D1 and E1 into one big function: "=(HOUR(C1)+(MINUTE(C1)/60))*850". If you really want to make your sheet future proof you might want to consider putting the price per hour in another cell and letting the formula refer to that cell. If the price per hour changes, you only need to change the input cell and not all functions.

FLY2HMO From , joined Dec 1969, posts, RR:
Reply 7, posted (4 years 7 months 6 hours ago) and read 2776 times:

Oh man I'm drinking out of a firehose

(I just realized the implications of that, therefore...) *that's what she said*

But I'll experiment with the suggestions.

Quoting Phoenix9 (Reply 1): Enter the time in minutes instead of hours, you won't need to enter decimals

LOL sure smarty pants then I have to use operating cost per minute in the rest of the cells.

Quoting Dreadnought (Reply 5): The way to get around that is not to use such formats, and put in simply the units you want, like hours. 1.5 instead of 1:30.

I'll do that for now just to get some useful numbers