# Date Lookup Function - Flight Logbook.

#### Tacitus1991

##### New Member
Good Day,

I am a commercial pilot and I am developing my own flight logbook sheet (I know there are 1000'ds out there, but I want my own.)

I have it fine tuned, I just need some help with what I think is a VLOOKUP function, but I am not sure.

So what I have done is I have 2 Tabs, Tab 1 is the actual Logbook and Tab 2 is a summary page that generates a summary as you populate the logbook.

I need to get a formula where the summary looks at a specific column, and looks for the last time I flew a specific type of aircraft, then looks at the date next to that flight and returns that value. I am bamboozled. I have a link to the logbook (You are free to use it if you wish):

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

#### AlanY

##### Well-known Member
try this

<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />

#### Tacitus1991

##### New Member
Hi,

Thanks.....however, All it did was throws out a random number and not a date

try this

Excel 2013/2016
ABCDEFGHIV
1Name: Petrus L. WeinrebeDate Compiled:
3(01)(02)(03)(04)(05)(06)(07)(08)(09)
4Aircraft Class or TypeInstrumentSingle Engine AircraftDate Last Flown
5Actual TimeFSTD TimeDayNight
6DualPICPICUSCo-PilotDualPIC
7SLG410.5061.770.30080.82018-06-12
8RedBird00.30000002017-03-04
9C1820010.93.1002.102018-06-29
10
11
12
13
14
15
16
17
18
19
20
21
22
23Totals:10.50.372.673.40010.10.8
24Total Flight Hours Colums (02) to (19)167.7

</tbody>
Summary

Array Formulas
CellFormula
V7{=MAX(IF(Logbook!\$B\$5:\$B\$111=LEFT(Summary!A7,4),Logbook!\$A\$5:\$A\$111))}

</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

#### AlanY

##### Well-known Member
you need to format the cell/column as dates

#### Joe4

All it did was throws out a random number and not a date
It is important to understand how dates are stored in Excel. They are really just formatted numbers (with date formats).
The number represents the number of days since 1/0/1900 (and any decimal is time, or a fraction of the day).
This is easy to see if you enter any date/time in a cell, and change the format to "General".

#### AlanY

##### Well-known Member
is that what you got

<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />

after formatted as dates

<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />

#### Tacitus1991

##### New Member
Works now, thanks too much guys.

you're welcome

Replies
1
Views
105
Replies
2
Views
272
Replies
3
Views
153
Replies
1
Views
599
Replies
1
Views
357

1,147,991
Messages
5,744,206
Members
423,853
Latest member
cathevs09

### 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.

### Which adblocker are you using?

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

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