I do not use the VLOOKUP a lot and always struggle when I do. I know the most common reason for errors is the lookup value data not being in the most left column. I have tried putting the lookup columns on the same sheet and same result. What am I missing?
Book1.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Item Code | ProductLine | Description | PrimaryVendorNo | WarehouseCode | UDF_INVENTORIED_ITEM | TotalQuantityOnHand | LastPhysicalCountDate | UDF_UNIQUEKEY | UDF_UPC | StandardUnitCost | LastSoldDate | |||
2 | 054X-BLACK | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 0.00 | #N/A | ||||||
3 | 054X-BLACK-2XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 63011 | 766369066612 | 8.53 | #N/A | ||||
4 | 054X-BLACK-3XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 83702 | 766369066629 | 9.31 | 5/25/2023 | #N/A | |||
5 | 054X-BLACK-L | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 63004 | 766369066599 | 6.65 | 8/8/2023 | #N/A | |||
6 | 054X-BLACK-M | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 63003 | 766369066582 | 6.65 | 12/8/2023 | #N/A | |||
7 | 054X-BLACK-S | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 63002 | 766369066575 | 6.65 | #N/A | ||||
8 | 054X-BLACK-XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 63005 | 766369066605 | 6.65 | #N/A | ||||
9 | 054X-DEEP FOREST | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 0.00 | #N/A | ||||||
10 | 054X-DEEP FOREST-2XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310961 | 766369121717 | 8.53 | #N/A | ||||
11 | 054X-DEEP FOREST-3XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310972 | 766369121724 | 9.31 | 5/25/2023 | #N/A | |||
12 | 054X-DEEP FOREST-L | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310954 | 766369121694 | 6.65 | #N/A | ||||
13 | 054X-DEEP FOREST-M | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310953 | 766369121687 | 6.65 | #N/A | ||||
14 | 054X-DEEP FOREST-S | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310952 | 766369121670 | 6.65 | #N/A | ||||
15 | 054X-DEEP FOREST-XL | A | Hanes EcoSmart - 5.2-Ounce Jer | 0001904 | 000 | N | 0.00 | 310955 | 766369121700 | 6.65 | #N/A | ||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
M2:M15 | M2 | =VLOOKUP(I2,Sheet2!A1:B25,2,FALSE) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
Sheet2!_FilterDatabase | =Sheet2!$A$1:$B$1 | M2 |
Book1.xlsx | ||||
---|---|---|---|---|
A | B | |||
1 | unique_key | my_price | ||
2 | 62872 | 5.06 | ||
3 | 62873 | 5.06 | ||
4 | 62874 | 5.06 | ||
5 | 62875 | 5.06 | ||
6 | 62881 | 5.66 | ||
7 | 62912 | 6.84 | ||
8 | 62913 | 6.84 | ||
9 | 62914 | 6.84 | ||
10 | 62915 | 6.84 | ||
11 | 62921 | 8.78 | ||
12 | 62932 | 9.59 | ||
13 | 63002 | 6.84 | ||
14 | 63003 | 6.84 | ||
15 | 63004 | 6.84 | ||
16 | 63005 | 6.84 | ||
17 | 63011 | 8.78 | ||
18 | 64702 | 2.37 | ||
19 | 64703 | 2.37 | ||
20 | 64704 | 2.37 | ||
21 | 64705 | 2.37 | ||
22 | 65611 | 2.35 | ||
23 | 65612 | 2.35 | ||
24 | 65613 | 2.35 | ||
25 | 65614 | 2.35 | ||
26 | 65615 | 2.35 | ||
27 | 65621 | 2.65 | ||
28 | 65622 | 2.65 | ||
29 | 65623 | 2.65 | ||
30 | 65624 | 2.65 | ||
31 | 65625 | 2.65 | ||
32 | 65631 | 2.65 | ||
33 | 65632 | 2.65 | ||
34 | 65633 | 2.65 | ||
35 | 65634 | 2.65 | ||
36 | 65635 | 2.65 | ||
37 | 65641 | 2.65 | ||
Sheet2 |