Interpret Excel Formula with ISERROR and VLookup

McNeil87

Board Regular
Joined
Dec 6, 2019
Messages
55
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello,

I inherited a file with the following excel formula using ISERROR and Vlookup. I know ISERROR is used to return True for any error type, otherwise, False. But how would i interpret this ISERROR for a specific vell, the doing a Vlookup.. i believe the end states, otherwise, give me cell X2. Any input in how to interpret this formula would be great. thank you!!

=IF(ISERROR(X2),VLOOKUP(J2,'Tracking Codes'!C:E,1,0),X2)
 

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.
Hi McNeil87,

Yes, it sounds like you have it. Any interpretation will depend on the formula in column X, i.e. why would it return an error?

If X2 is not in error then you'll get X2, otherwise search all of column C for the contents of J2 and if you find it return it, otherwise you'll get #N/A

McNeil87.xlsx
BCDEIJWX
2191#DIV/0!
3212#N/A
4xxX#VALUE!
5434#VALUE!
6#N/A25#VALUE!
7#N/A16#VALUE!
8747#VALUE!
9A78A
10B99B
11CC
12DD
Tracking Codes
Cell Formulas
RangeFormula
X2X2=1/0
X3X3=VLOOKUP(1,X2,1,0)
X4:X8X4=MAX("A","B")
B2:B12B2=IF(ISERROR(X2),VLOOKUP(J2,'Tracking Codes'!C:E,1,0),X2)
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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