Vlookup formula not working

searchingforhelp

Board Regular
Joined
Nov 11, 2020
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hi, I have created a formula in Sheet1 to find the EEE number in sheet2 column B. Unfortunately, I continue to receive a NA which should not be the case as the EEE number does exist. I do not need to add an IFERROR to the formula as all the EEE numbers are present.

Sheet1
Mr Excel - Copy.xlsx
ABC
1ColumnDatesResults
2TYU-0043211/14/2022#N/A
3TYU-0070001/5/2022
4TYU-0056561/10/2022
5TYU-0033332/5/2022
6TYU-0073303/6/2022
Sheet1
Cell Formulas
RangeFormula
C2C2=VLOOKUP(A2&"-"&B2,Sheet2!$A$2:$C$6000,2,FALSE)


Sheet2
Mr Excel - Copy.xlsx
ABC
1ColumnNumberDates
2TYU-005656EEE-0055551/10/2022
3TYU-007330EEE-0073213/6/2022
4TYU-003333EEE-0043722/5/2022
5TYU-007000EEE-0055581/5/2022
6TYU-004321EEE-0044441/14/2022
Sheet2


Any help you provide will be greatly appreciated.
Thank you.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try an XLookup instead.

Book2
ABC
1ColumnDatesResults
2TYU-0043211/14/2022EEE-004444
3TYU-0070001/5/2022EEE-005558
4TYU-0056561/10/2022EEE-005555
5TYU-0033332/5/2022EEE-004372
6TYU-0073303/6/2022EEE-007321
Sheet1
Cell Formulas
RangeFormula
C2:C6C2=XLOOKUP(A2:A6&"-"&B2:B6,Sheet2!A2:A6&"-"&Sheet2!C2:C6,Sheet2!B2:B6)
Dynamic array formulas.
 
Upvote 0
How about
Excel Formula:
=VLOOKUP(A2,Sheet2!$A$2:$B$6000,2,FALSE)
 
Upvote 0
How about
Excel Formula:
=VLOOKUP(A2,Sheet2!$A$2:$B$6000,2,FALSE)

Hi Fluff. Hope all is well. Originally, I did have the formula you outlined. However, there are instances where there are duplicate TYU numbers; however, the EEE number is different. In otherwards, you will have duplicate TYU numbers but there will never be duplicate EEE numbers and dates. For example in sheet1 rows 2 and 7 have the same TYU number but different dates. In sheet2 row 4 and 7 have the same TYU number but different EEE numbers and dates. Therefore, I need the vlookup to identify the TYU number then the date and locate the EEE number associated with it.

Mr Excel - Copy.xlsx
ABC
1ColumnDatesResults
2TYU-0043211/14/2022#N/A
3TYU-0070001/5/2022
4TYU-0056561/10/2022
5TYU-0033332/5/2022
6TYU-0073303/6/2022
7TYU-0043211/6/2022
Sheet1
Cell Formulas
RangeFormula
C2C2=VLOOKUP(A2&"-"&B2,Sheet2!$A$2:$C$6000,2,FALSE)


Mr Excel - Copy.xlsx
ABC
1ColumnNumberDates
2TYU-005656EEE-0055551/10/2022
3TYU-007330EEE-0073213/6/2022
4TYU-004321EEE-0044441/14/2022
5TYU-003333EEE-0043722/5/2022
6TYU-007000EEE-0055581/5/2022
7TYU-004321EEE-0033331/6/2022
Sheet2
 
Upvote 0
How about
Excel Formula:
=FILTER(Sheet2!$B$2:$B$6000,(Sheet2!$A$2:$A$6000=A2)*(Sheet2!$C$2:$C$6000=B2))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

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