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]:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Row labels[/TD]
[TD]MPG[/TD]
[/TR]
[TR]
[TD]58911[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD="align: right"]KU60TB[/TD]
[TD]34[/TD]
[/TR]
[TR]
[TD="align: right"]DP47JT[/TD]
[TD]44[/TD]
[/TR]
</tbody>[/TABLE]

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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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