Cell format causing formula to return nothing

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following formula

=IFERROR(LOOKUP(2,1/(Internal!$D$12:$D$5000=C16)/(Internal!$F$12:$F$5000=E16),(Internal!$G$12:$G$5000)),"")

If E16 = alpha numeric values the desired data is returned from G16

but if E16 is numbers only it returns nothing from G16

I have tried changing the column formats to match etc but no luck

Any help appreciated

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi @ExcelRoy

What is "Internal" defined as? Is it the sheet that the formula is on? Could you provide an example of the data you're looking up please? The reason it's returning nothing is because your IFERROR statement is picking up the errors and returning "". I'm unsure what you're trying to do with the division dividers in the formula. Is it possible you could use a vlookup or hlookup instead?
 
Upvote 0
Hi @ExcelRoy

I presume you're using the lookup to lookup the latest value from an array (such as outlined here https://exceljet.net/formula/lookup-latest-price). The formula is looking at both C16 and E16 and that may be where one of your issues lies; you could encapsulate a cast within e.g. "str(Internal!$F$12:$F$5000)=str(E16)" which casts both the lookup and the equals as strings. The reason you're getting nothing is because that's what the IFERROR is set to return if the formula returns an error.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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