Why is this formula returning unexpected value?

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
The following formula exists in cell G2
=IF(C2<1,"",IFERROR(LOOKUP(2^15,SEARCH(Table!$A$2:$A$42000,A2),Table!$A$2:$A$42000),""))
The contents of cell C2 is “2”
The expected result for cell G2 is a blank cell but the formula is returning “0”
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
The following formula exists in cell G2
=IF(C2<1,"",IFERROR(LOOKUP(2^15,SEARCH(Table!$A$2:$A$42000,A2),Table!$A$2:$A$42000),""))
The contents of cell C2 is “2”
The expected result for cell G2 is a blank cell but the formula is returning “0”

Why would you expect a blank cell?
 
Upvote 0
UGH
I have been at it too long...............disregard, so sorry.
 
Upvote 0
No apologies :) . I was beginning to think I missed something in the lookup formula that would return a "" . Hope you got it working.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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