Pull Vehicle Information

myletterboxnp

New Member
Joined
May 20, 2022
Messages
28
Office Version
  1. 365
Hi there, need help in creating a formula.

Sheet 1
A1 Employee Name, B1 Department, C1 Position
There are 500 records of employees

Sheet 2
A1 Employee Name, B1 Vehicle Make, C1 Vehicle Model, D1 Vehicle Color E1, Vehicle Plate Number
There are 200 records of employees

I need to pull the vehicle information (Make/ Model/ Color/ Plate Number) from Sheet 2 to Sheet 1 behind each Name in Sheet 1 for those records whose name match. (Out of 500 employees, 200 use vehicles)

What should be the formula in Sheet 1?

Kind Regards,
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Thanks for posting on the forum.

Try this formula:

Example Sheet1:
Dante Amor
ABCDEFG
1Employee NameDepartmentPositionMakeModelColorPlate Number
2J SHR1Make2Model2Color2Plate Number2
3Dante AmorSist2Make3Model3Color3Plate Number3
4Otherxd3No existsNo existsNo existsNo exists
Sheet1
Cell Formulas
RangeFormula
D2:G4D2=IFERROR(VLOOKUP($A2,Sheet2!$A:$E,COLUMNS($C$1:D1),0),"No exists")

Example Sheet2
Dante Amor
ABCDE
1Employee NameMakeModelColorPlate Number
2J SMake2Model2Color2Plate Number2
3Dante AmorMake3Model3Color3Plate Number3
Sheet2


Note XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

--------------
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
--------------
 
Upvote 0
Since you have Excel 365 another option would be to use the FILTER function.
Using the example that Dante was kind enough to make:

Book1
ABCDEFG
1Employee NameDepartmentPositionMakeModelColorPlate Number
2J SHR1Make2Model2Color2Plate Number2
3Dante AmorSist2Make3Model3Color3Plate Number3
4Otherxd3No exists
Sheet1
Cell Formulas
RangeFormula
D4,D2:G3D2=FILTER(Sheet2!$B$2:$E$3,$A2=Sheet2!$A$2:$A$3,"No exists")
Dynamic array formulas.


Book1
ABCDE
1Employee NameMakeModelColorPlate Number
2J SMake2Model2Color2Plate Number2
3Dante AmorMake3Model3Color3Plate Number3
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,128
Members
449,097
Latest member
mlckr

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