View Single Post
Old 07-28-2022 | 04:47 PM
  #17  
rmontoya
New Hire
 
Joined: Jul 2022
Posts: 3
Likes: 0
Default "0.0" versus "0.1"

Originally Posted by TonyC
Try this:
Line 1 is labels, Columns A through F are labeled:
DATE / OUT / OFF / ON / IN / TOTAL

(I used those labels because 2 "OFF" times is confusing)

Line 2 begins your entry of dates and times.
Columns B through E (the times) are formatted as CUSTOM, 0000 You enter 3 or 4 digits, it's displayed as 4 digits (123 displayed as 0123, 2230 displayed as 2230).
Column F is formatted as Number, 1 Decimal Place.
Again, Column B is the OUT time (or START to you), and Column E is the IN time (or the 2nd OFF to you).
Here's the formula for 2F -- the "Total time" displayed in tenths:
=((TIME(TRUNC(E2/100),MOD(E2,100),0))-(TIME(TRUNC(B2/100),MOD(B2,100),0))+((TIME(TRUNC(E2/100),MOD(E2,100),0))<(TIME(TRUNC(B2/100),MOD(B2,100),0))))*24

(Drag the formula down to fill the rest of the column.)
The formula converts the numbers you've entered to times, then calculates the difference between the times. The first part will handle times that occur on the same day. The second "half" handles times that begin on one day and continue on the next.

Now, I don't know if the minutes will convert to the tenths that you desire. I recall using a table of some sort to convert minutes to tenths. Here is how this formula will break it down:

MINUTES TENTHS
0-2 = .0
3-8 = .1
9-14 = .2
15-20 = .3
21-26 = .4
27-32 = .5
33-38 = .6
39-44 = .7
45-50 = .8
51-56 = .9
57-60 = 1.0

If that breakdown does not correspond to the conversion scheme you desire, we'll have to delve into some IF/THENs.
Hope that helps.
.

Tony,
Thank you for the formula you've provided. It has helped many of us tremendously. Unfortunately, there seems to be a slight calculation error.

EXAMPLE:

OUT: 0600
IN: 0701

The example provided above reflects a 1-hour and 1-minute flight. According to Excel, the result is "1.0"
Correct me if I'm wrong, but shouldn't the answer be "1.1"? Hear me out...

Let's say, for the sake of argument, a pilot starts logging time at 12:00. In the span of two minutes, something happens where the aircraft has to be shut down. The pilot would create two entries:
START: 12:00
END: 12:02
TOTAL: 2 minutes

Wouldn't that constitute a "0.1" in their logbook? (I'd say so.)

(Back to the initial example I provided.)

Since the time advanced 1-minute past the "1.0" marker, shouldn't the Excel formula reflect that additional minute as "1.1 in the total-time column"?
I see you provided a "MINUTES TENTHS" table, but flight times should be rounded up (ROUNDUP) to the next "0.1".

SUGGESTION:
I did a bit of configuring myself.
=((LEFT(TEXT(B2-A2,"0000"),2))*1)+ROUNDUP(IF((RIGHT(B2,2))<(RIGHT( A2,2)),(60-(RIGHT(A2,2))+(RIGHT(B2,2))),((RIGHT(B2,2))-(RIGHT(A2,2))))/60,1)

A1: Start Time /// B1: Stop Time /// C1: Total
FORMAT: "General"

A2 and B2
FORMAT: "More Number Formats"... "Custom"... Type: 0000

C3
FORMAT: "Number"

MINUTES TENTHS
(New formula)
01-06 = 0.1
07-12 = 0.2
13-18 = 0.3
19-24 = 0.4
25-30 = 0.5
31-36 = 0.6
37-42 = 0.7
43-48 = 0.8
49-54 = 0.9
55-60 = 1.0

If anyone has any feedback, please let me know.

FYI - This was my first post on this forum.
Reply