Need Help Deciphering this function

TheBird

New Member
Joined
May 25, 2011
Messages
2
Any help deciphering this would be greatly appreciated! I see an error function but the 2 vlookups are what i'm struggling with.

=IF(ISERROR(VLOOKUP($H12,dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,dusa,4,FALSE))
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Biff,

I guess so, point it out to me please.

=TRUE????

Ak
You reproduced it:

=IF(ISERROR(VLOOKUP($H12,Dusa,4,FALSE)=TRUE),0,VLOOKUP($H12,Dusa,4,FALSE))

Let's assume the result of the lookup is X.

As written, that formula is doing this:

=IF(ISERROR("X"=TRUE),0,VLOOKUP($H12,Dusa,4,FALSE))

It works but it's just by "dumb luck".

If the lookup returns #N/A then:

=IF(ISERROR(#N/A=TRUE),0,VLOOKUP($H12,dusa,4,FALSE))

ISERROR(#N/A=TRUE) = ISERROR(#N/A) = TRUE

And the result of the formula will be 0 as expected.
 
Upvote 0
Aladin Akyurek said:
If VLOOKUP is supposed to return a number...

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2},0,VLOOKUP($H12,dusa,4,0)))

would probably be a tad faster.
This will do the same thing and is a tad cleaner:

=LOOKUP(1E100,CHOOSE({1,2},0,VLOOKUP($H12,dusa,4,0)))
 
Upvote 0
Yet another option (if not on Excel 2007):

=IF(ISERROR(MATCH($H12,lookup_array,0)),0,VLOOKUP($H12,table_array,4,0))

Which may be a tad faster or slower than the other options... who knows!

Matty
 
Upvote 0

Forum statistics

Threads
1,225,155
Messages
6,183,212
Members
453,151
Latest member
Lizamaison

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