VLOOKUP giving bizarre results

M0X3

New Member
Joined
Jun 16, 2021
Messages
41
Office Version
  1. 2016
Platform
  1. Windows
In a certain column I have the formula "=IFERROR(VLOOKUP(cell1,range1,2)+0,IFERROR(VLOOKUP(cell2,range2,15)+0,0)"
The first part of the formula works fine. I get the expected results returned to me. The second part "VLOOKUP(cell2,range2,15)" is returning completely ridiculous results. It matches all the cells in that column with one of two cells within range2 without any obvious logic to it. I know this is all very vague, but what are some errors that could lead to this. I tried reducing the VLOOKUP range and changing the 15 to 2 but that doesn't change anything. How should I proceed?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Please try to put "false" or "0" in last of the formula, like VLOOKUP(cell1,range1,2,0) VLOOKUP(cell2,range2,15,0)
 
Upvote 0
Solution
Your VLOOKUP formulas require that both lookup tables must be sorted on their first columns. If they aren't, you will get odd results. If you intended to use an exact match, then you should be using:

Excel Formula:
=IFERROR(VLOOKUP(cell1,range1,2,FALSE)+0,IFERROR(VLOOKUP(cell2,range2,15,FALSE)+0,0))
 
Upvote 0

Forum statistics

Threads
1,215,835
Messages
6,127,167
Members
449,368
Latest member
JayHo

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