Vlookup?

pedrods

New Member
Joined
Oct 23, 2017
Messages
7
Hi,

Not sure what / how to do this.

I need to lookup vehicle registration number + data as per below (below is what I have in one excel tab.

Date Van Reg Driver Name

23/10/2017 ABC 123 ?


The other tab contains these columns.

Date Driver Name Van Reg

23/10/2017 Rob Benson ABC 123


I need to use a vlookup (??) to be able to populate the driver name into the "driver name" blank column up top. The formula needs to look / match by date and by Van Reg in order to be able to work out if it's copying the correct driver name into the column up top.

Hope this makes sense.

Basically i can't get a vlookup to lookup both data and vag reg on a monday for example. If both Van Reg, Date match, then i want to copy the driver who used it that day into the column up top. Essentially there's two sets of data which makes it annoying.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,317
Assuming data in Sheet2 columns A:C, headers in row 1, try this array formula in C2 of the first sheet

=INDEX(Sheet2!B$2:B$100,MATCH(1,IF(Sheet2!A$2:A$100=A2,IF(Sheet2!C$2:C$100=B2,1)),0))
Ctrl+Shift+Enter

M.
 

pedrods

New Member
Joined
Oct 23, 2017
Messages
7
Not quite.

One sheet called "Vans" has "Date/Driver/Van Reg" columns, the other sheet called "LineItems" has "Delivery Date/Van Reg".

The sheet which has the column (empty at this stage) is "LineItems" column "D" which is called "Driver Name". Thats the one im trying to populate.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,317
Not quite.

One sheet called "Vans" has "Date/Driver/Van Reg" columns, the other sheet called "LineItems" has "Delivery Date/Van Reg".

The sheet which has the column (empty at this stage) is "LineItems" column "D" which is called "Driver Name". Thats the one im trying to populate.
Adjust the sheet names and ranges accordingly. And confirm the formula with Ctrl+Shift+Enter, not just Enter.

M.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,317
Hi Pedro

I've seen your Private Message. As a new user you are not able to receive PMs.

Anyway, all the questions, formulas, data sample etc should be put in the thread. Support by email is not recommended in this forum.

M.
 

Forum statistics

Threads
1,082,323
Messages
5,364,584
Members
400,809
Latest member
formulasataglance

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top