Forum Discussion
williep
Apr 23, 2019Copper Contributor
Vlookup Problem
I am trying to use =vlookup to show phone numbers in an excel spread sheet that has the names in column a and the numbers in column b. It couldn't be more simple.
If I type the name in cell a5, it will show the number in a4.
The argument is, =vlookup(d2,a2:b170,2)
It doesn't get more basic than that but it is not working correctly. I'm using Office 365.
What could possible be wrong?
4 Replies
- SergeiBaklanDiamond Contributor
williep , if in D2 the name which is in A5, the formula shall return you the value from B5, isn't it?
- williepCopper ContributorThat's correct. I wrote a4 by mistake. It should be b4 . So when I type in a name from a5 it is returning a number from b4. Something is not working correctly. Also, some cells work ok. but the ones that don't will always return a number from the cell right above the correct cell.
I can't believe that I am the only one who has had this problem.- SergeiBaklanDiamond Contributor
williep , since you skip last parameter, VLOOKUP uses approximate search by default. And approximate search requires what your first column is to be sorted A to Z. Perhaps that's the reason.