small tweak to formula needed to show false

xtreme07

Board Regular
Joined
Sep 21, 2010
Messages
71
hi,

i have this formula
=LOOKUP(2^15,SEARCH(Table3,A2),Table3)

atm it's showing #N/A for false. instead, i would need it to display 0
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
a tad long, but should achieve what you want:
=IF(ISERROR(LOOKUP(2^15,SEARCH(Table3,A2),Table3)),0,LOOKUP(2^15,SEARCH(Table3,A2),Table3))
 
Upvote 0
...
it's showing #N/A for false. instead, i would need it to display 0

If on 2007 or later...

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(Table3,A2),Table3),0)

If on a previous version...

=LOOKUP(REPT("z",255),CHOOSE({1,2},"",LOOKUP(9.99999999999999E+307,SEARCH(Table3,A2),Table3)))

which gives you a formula blank... You can replace 0 with 0&"" if so desired, giving you a text-number.

Note. In order to get the last numeric value from a range reference or an array reference, you see zillions of "personalized" variations on the big number 9.99999999999999E+307 which you can find under Excel's limits. The formulas above stick to Excel's own constant.
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,571
Members
452,927
Latest member
whitfieldcraig

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