Looking up two values to return a third

rob412

New Member
Joined
Apr 14, 2011
Messages
1
G'day!
I need some help to calculate the 'Hours' (F Column). Each time the servicing is completed on the engine, columns A through to E will be manually entered. Columns F and G will be automatically populated. The 'Hours' column is calculated by locating the previous servicing for the specific engine then subtracting it from the current engine hours. This will give the hours between the servicing.
Example:
When the current hours for eng002 is entered in D8 (300 in the example), cell F8 will look up the previous hours of the servicing (D4), then subtract it from the current hours (giving an answer of 180).

I've tried various versions of the VLOOKUP, INDEX, MATCH and LARGE formulae however I can't get it to work. The tricky bit is that the engine data will be entered randomly (I.e. the servicing doesn't always occur in any set order)

I hope you can understand what I'm getting at and I look forward to the solution! Below is a sample of the table that i'm trying to get to work.

Thanks!
Excel Workbook
ABCDEFGHI
1Engine Serial NumberDate of ServicingServicing TypeEngine HoursDQHoursDQ/HrAircraftEngine Position
2eng00101-Jan8090
3eng00210-Jan1260
4eng00312-Jan7080
5eng00130-Jan24040
6eng00309-Mar290160
7eng00204-Apr300200
Unknown Sheet Name
Excel 20??
 
Last edited by a moderator:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to MrExcel!

As you probably saw, there was a problem with the display of your table and Jon has tried to tidy it up. If your description no longer fits the table as now displayed, just reply to thread and give a new description that does match the table as now displayed.
 
Upvote 0
Excel Workbook
ABCDEF
1EngHrsHrs between service
2Eng001100 
3Eng002122
4Eng004144
5Eng00416622
6Eng005188
7Eng00221088
8Eng00423266
9Eng001254154
10Eng00227666
11Eng004332100
Sheet
 
Upvote 0
As you probably saw, there was a problem with the display of your table and Jon has tried to tidy it up. If your description no longer fits the table as now displayed, just reply to thread and give a new description that does match the table as now displayed.

Whoops! :oops: I lined up the columns but didn't pay attention to row references. Apologies for that.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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