

This makes it hard to use VLOOKUP with multiple criteria. Unlike INDEX and MATCH (or XLOOKUP), VLOOKUP needs a complete table with lookup values in the first column. On the bad side, VLOOKUP is limited and has dangerous defaults. Using VLOOKUP successfully is a rite of passage: from beginner to skilled Excel user. For new users in particular, it is immensely satisfying to watch VLOOKUP scan a table, find a match, and return a correct result. On the good side, VLOOKUP is easy to use and does something very useful. VLOOKUP is probably the most famous function in Excel, for reasons both good and bad.

Vertical data | Column Numbers | Only looks right | Matching Modes | Exact Match | Approximate Match | First Match | Wildcard Match | Two-way Lookup | Multiple Criteria | #N/A Errors | Videos Introduction VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches. Lookup values must appear in the first column of the table passed into VLOOKUP. If you prefer online learning or live outside South Africa, look at our online MS Excel training courses.VLOOKUP is an Excel function to get data from a table organized vertically. Want to learn more about Microsoft Excel? If you prefer attending a course and live in South Africa look at the Johannesburg MS Excel 3 Day Advanced Course or the Cape Town MS Excel 3 Day Advanced training course. This is slightly more advanced and covered in the Advanced Excel course. This is where you mimic the FIND by telling the VLOOKUP to find cells that CONTAIN the lookup as opposed to being exactly the same as the lookup. To change the formats from numbers to text you can use the VALUE and TEXT functions.Īll of these options are addressed in the Intermediate Excel course.Īnother option is to do a partial match with the VLOOKUP. You can use TRIM to get rid of any unnecessary spaces. Best to do it on both the lookup value and table array.
HOW TO USE VLOOKUP IN EXCEL 2000 VBA HOW TO
How to fix the VLOOKUP problemįirst and easiest is to create a new lookup column. If you did the same thing in A6, you would find no spaces and that’s the reason for the #N/A.Įither way, if you can see it and VLOOKUP can’t it will in all likelihood be a space or format issue. You can use your arrow keys to see how many spaces there are after the text. So below note in cell A10, the cursor was placed far away from the text (to the right) and when we clicked, the blinking icon wasn’t right next to the text but several characters away. Rather click as far to the right as possible.

When doing this make sure you don’t click right next to the text. If you do a FIND and you find the item, but VLOOKUP didn’t, click into the two offending cells and check for spaces. First test- VLOOKUP can’t find it, but FIND can So having a space at the end of a cell is difficult for a human to spot but is never ignored by Excel. Although humans don’t see spaces as characters, a space is a character in Excel. The most common reason this happens though is due to leading or trailing spaces. So if you were looking for ABC, then it would ignore 123ABC456.

VLOOKUP looks for a cell that matches in the ENTIRE cell. So if you were looking for ABC, it would find it in a cell that contained 123ABC456. First to understand the difference between how VLOOKUP finds items and how the FIND tool finds them.įIND looks for any cell that CONTAINS the lookup value.
