Help with VLOOKUP using two criteria please!!

sarah_watson

New Member
Joined
Sep 24, 2013
Messages
1
Hello,

First an apology if this is in a sticky or another answer already, I did have a search but turned up nothing. I'm new here so please be gentle!

OK, here is the problem. I need to do a VLOOKUP formula but it must match two criteria to pull the value through.

The table below shows a sample of my data [it is from a pivot table but I've pasted the values out to make it easier to work with]:

Row labelsMPG
5891140
KU60TB34
DP47JT44

<tbody>
</tbody>

An employee with payroll number 58911 has driven two cars and gets 34 MPG in one of them and 44 MPG in the other.

On a separate tab I have a list of payroll numbers and current vehicles. Also a blank column for MPG. I need it to pull through the MPG for the driver for their current vehicle only. So in the above case it needs to match payroll number 58911 AND vehicle reg KU60TB and display 34 as the gas consumption.

Any help would be much appreciated, if you need more information please let me know.

Thanks!
S.
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,216,098
Messages
6,128,812
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