You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Apple Fitness+ unveils an exciting lineup of new ways to stay active and mindful in 2025

Offerings include new programs for strength, pickleball, yoga, and breath meditation, and a new collaboration with Strava. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Working on a Numbers log book for my flight time

Working with Numbers 11.2 and mac OS Monterey. I am a pilot working on a log book for my flight time.

Created a spread sheet with the following columns:

Column A: Date and Time Out.

Column B: Date And Time In.

Column C: Duration in hour and minute format taken from column A and B

Column D: Last 672 hours

Question: How do I create formulas to look back and find flight hours for the past 672 hours, 6months and year to date?

Formula column C: DURATION(,,hours, minutes,)+'Date/Time in'−A (don't know why numbers named the column "Date and Time out" A instead of what I named it?)

Tried the same formula for Column D and put in 672 instead of "hours" but got an error

Thanks in advance,

Jesper


[Re-Titled by Moderator]

MacBook Pro (2020 and later)

Posted on Jan 23, 2022 11:02 PM

Reply
15 replies

Jan 25, 2022 2:54 PM in response to CaptainJesper

Never mind about the last post, however I do have new questions regarding your examples:

  1. In your hours summary "beginning of the year table" your hours show 12hrs. If I add up the hours from "Log" 01/01/2022-03/06/2022 I come up with 24hrs. I copied your formulas into a test log of my own and this is what I came up with in my "beginning go the year table" 0h0m??

Jan 24, 2022 12:17 AM in response to CaptainJesper

Hi Jesper,


This may get you started.


Date & Time formats in Numbers work well once you understand that Numbers will "guess" an incomplete Date & Time and fill in the missing parts with today, this month and this year..


Enter the Out times on the actual day when you fly out. For example, 7:00. Numbers will fill in the day, month, year.

Enter the In times on the actual day when you fly in.

Or, enter the Date & Time explicitly. That will avoid the "crossing midnight" problem (Row 3) where you can get a negative Duration if Numbers does the guessing for you and thinks both times are on the same day 😉.


Formula in C2: B2−A2 (and fill down).


With the cells formatted as Duration



I don't understand the question "find flight hours for the past 672 hours, 6months and year to date?"

More information may lead to a solution!


Happy flying!

Ian.

Jan 25, 2022 7:42 AM in response to CaptainJesper

CaptainJesper wrote:

How do I create formulas to look back and find flight hours for the past 672 hours, 6months and year to date?


You can consider something like this:




You can hide column B of the Summary table once you've got it working. (C and E in the example are just to display the formulas used in the screenshot).


Note that this sums according to the Out time. You can change to In time by referring to A instead of B.


If you need to convert the hours to a number instead of duration (perhaps for use in further calculation) then use the DUR2HOURS function.


SG

Jan 24, 2022 12:35 AM in response to Yellowbox

Hi again Jesper,



Yellowbox wrote:

I don't understand the question "find flight hours for the past 672 hours, 6months and year to date?"

Ok, now I get it. 672 hours is the past 4 weeks.

Past 6 months is more complicated because Durations do not include months (varying number of days, 28, 29, 30, 31). We might have to use the DATEDIF function.

Year to date is feasible.


Regards,

Ian.

Working on a Numbers log book for my flight time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.