SOLVED

vlookup error with multiple criteria

Copper Contributor

Hi,

 

I have a spreadsheet with a list of training courses individuals have completed and the date, which is a connected export of a sharepoint list. I have another spreadsheet with is the training matrix for the company and i wanted to automatically update the matrix with the dates from the sharepoint list.

I found a solution which works brilliantly for all but two of the courses!

I combine the names and title of the course in the export sheet:

TSimsD_2-1672717025100.png

I then use the vlookup in the matrix sheet to look up the combined names with the title of the training which is the header of the column:

TSimsD_3-1672717087214.png

 

=VLOOKUP([@Combinedname]&Table32[[#Headers],[Safety Induction]],'Exported List from Training Register.xlsx'!Table_query__32[[#All],[Combinedname]:[Date completed]],8,FALSE)

 

I know this formula works as it works for the 10 other courses in the matrix. I have tried copying the names and title from the source sheet so i know that they are exact but it still cannot find the reference.

As you can see I have even tried with 1 1 as a name.

If anyone has any ideas I would love to hear them.

 

cheers

Tony

4 Replies
best response confirmed by VI_Migration (Silver Contributor)
Solution

@TSimsD 

It will return error or #N/A to your formula, because your lookup value and doesn't match on your reference table.
Just change your "combinedname" on your export sheet without including the title of training.
Formula: [@[First Name]&@[Surname]]

@Rr_ 

Thanks rrstrivera,

the formula is correct. As I said it works on other courses. The lookup is the combined first name & surname coupled with the title of the training.

 

TSimsD_1-1672777311552.png

 

TSimsD_2-1672777355392.png

 

Formula: =IFERROR(VLOOKUP([@Combinedname]&Table32[[#Headers],[Manual Handling]],'Exported List from Training Register.xlsx'!Table_query__32[[#All],[Combinedname]:[Date completed]],8,FALSE),"")

 

Cheers

Tony

 


Hi, @TSimsD 

Since we solved it on thru PM, there's a link to mark the solution at the bottom.
This helps for those who search.

 

Thanks!

Hi I can't see a link
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution

@TSimsD 

It will return error or #N/A to your formula, because your lookup value and doesn't match on your reference table.
Just change your "combinedname" on your export sheet without including the title of training.
Formula: [@[First Name]&@[Surname]]

View solution in original post