Flying-Hours calculation

Corton Flyer

New Member
Joined
Jan 22, 2010
Messages
15
One of my administrative duties is to keep a record of all of the flying-hours completed by a group of twenty pilots. I've constructed a spreadsheet and entered all of their flying records into it.

At the head of each column I have the date, aircraft type, registration number, pilot name, co-pilot name, other crew name, day flying, night flying, solo, dual, total captain hours, etc.

Whilst that I've completed the easy part of this project and that I can transfer each individual pilots flying-hours into his own seperate logbook (by filtering and copy/pasting into another worksheet), there are three other reports that I'm required to provide:

1. To be able to list the number of flying-hours completed during the previous 7 days (for each individual pilot).

2. To be able to list the number of flying-hours completed during the previous 30 days (for each individual pilot).

3. To be able to list the number of flying-hours completed during the previous 90 days (for each individual pilot).

I can't say that I'm an Excell guru; hence, I'd appreciate any assistance/help that anyone might be able to offer in my trying to resolve the above issues?

Many thanks

John
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
John

I think the first thing you should do is reconsider how the spreadsheet is structured.

I've only briefly read your post but from what I can gather the current structure doesn't seem to be conducive to easily analysing/manipulating the data.

Mind you it would perhaps help if you could post some sample data, because I could be totally wrong.:)
 
Upvote 0
Hi Corton Flyer welcome to the board.

I have assumed that the hours are in column B

=SUM(INDEX(B:B,MATCH(99^99,B:B)):INDEX(B:B,MATCH(99^99,B:B)-6))

The figure at the end controls the number of days in the case illustrated this will add the last 7 days - if you want the last 30 change the -6 to -29.

Don't forget to format the result cell as [hh]:mm otherwise you will get an odd result

edvwvw
 
Upvote 0
edvwvw

Thanks for your efforts. The hours were in fact in column P, so I changed the formula to reflect that column. The ensuing result didn't make any sense (the hours were formatted correctly).

Much scratching of head!

Cheers

John
 
Upvote 0
Excel Workbook
HIJKLMNO
11Last 7 Dayslast 30 Days
12pilot 301/12/20095:25pilot 13:03pilot 117:2415/01/2010
13pilot 402/12/20095:25pilot 211:49pilot 245:0523/12/2009
14pilot 103/12/20096:11pilot 35:58pilot 320:08
15pilot 504/12/20091:10pilot 413:33pilot 432:53
16pilot 505/12/20095:33pilot 50:00pilot 534:22
17pilot 206/12/20093:29
18pilot 307/12/20091:39
19pilot 208/12/20092:40
20pilot 509/12/20096:47
21pilot 210/12/20094:39
22pilot 211/12/20094:22
23pilot 212/12/20096:08
24pilot 413/12/20093:57
25pilot 114/12/20096:40
26pilot 415/12/20095:10
27pilot 516/12/20092:22
28pilot 517/12/20095:51
29pilot 318/12/20096:38
30pilot 419/12/20095:14
31pilot 420/12/20095:44
32pilot 521/12/20094:28
33pilot 122/12/20097:08
34pilot 123/12/20096:48
35pilot 424/12/20095:15
36pilot 225/12/20094:37
37pilot 526/12/20093:53
38pilot 327/12/20091:07
39pilot 228/12/20097:19
40pilot 329/12/20095:14
41pilot 430/12/20092:25
42pilot 231/12/20093:30
43pilot 501/01/20107:00
44pilot 202/01/20106:58
45pilot 403/01/20102:25
46pilot 504/01/20103:28
47pilot 205/01/20107:21
48pilot 206/01/20103:31
49pilot 507/01/20103:30
50pilot 308/01/20107:49
51pilot 109/01/20107:58
52pilot 510/01/20107:38
53pilot 111/01/20106:23
54pilot 512/01/20103:57
55pilot 413/01/20103:52
56pilot 414/01/20105:23
57pilot 515/01/20104:56
58pilot 416/01/20103:04
59pilot 117/01/20103:03
60pilot 318/01/20105:58
61pilot 419/01/20104:16
62pilot 220/01/20105:22
63pilot 221/01/20106:27
64pilot 422/01/20106:13
65263:20
Sheet1
Excel Workbook
N
1217:24
Sheet1
 
Upvote 0
The formulas in O are =Today()-7 and =Today()-30 so sumproduct will always show the last 7 or 30 days. If you need that to stay as a result each day, and not update the following date you could have some of the VBA guys write something up that will copy each days results as a value only result into another worksheet
 
Upvote 0
scottylad2

Thanks a million... having made a few minor changes to my workbook; it all works a treat!

Cheers

John
 
Upvote 0
scottylad2,

How would I modify your previous formula to include an inserted column in say, column 'I'? This additional column shows the flying-hours of the co-pilot, and, with the way in which my workwook is laid-out, does indeed show the hours of pilot 2 (and others) within both columns. Hence, the single column only reflects those figures within that column. I guess what I'm trying to say is, that a pilot in the first column will also feature within the next column when he's flying as a co-pilot on a different date; hence, I need some method of picking-up those hours too!

Having manipulated your formula into my own workbook, it doesn't reflect those hours which are listed within the adjacent column; so it doesn't tell the whole story.

I hope I've made sense?

Cheers

John
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,779
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top