IFerror(IF(Hlookup) formula question -- showing an N/A

McNeil87

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

I have never used an Hlookup before, but assume it's like a Vlookup, but horizontally looking up a value.

This is the formula: IFERROR(IF(HLOOKUP(TRUE,AU4:BH4,1,0)=TRUE,TRUE,FALSE),FALSE). I am not sure how to interpret this formula.. can someone help explain it to me? Essentially the True/False is returned.

When it returns the value as False, it works, but I notice in the function arguments, it returns an #N/A. Attached an image to show.

Thank you!

Bridget
 

Attachments

  • 2019-12-11_15h36_33.png
    2019-12-11_15h36_33.png
    34.7 KB · Views: 6

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Are you trying to look up the value "TRUE"? Looks like your total function is looking to see if a value equals "TRUE" and if so, return the value "TRUE" else return "FALSE")

Typically the "LOOKUP" either V or H is setup as (Lookup value, range to look in, row/column to return from, true/false)
THe response you are receiving is from the IFERROR, not the HLOOKUP
 
Upvote 0
Correct. Looking up TRUE. The look up looks up true or false statement for both returned values as true, plus formulas to return text.
 
Upvote 0
The #N/A is because the Hlookup couldn't find TRUE in AU4:BH4.
Your formula can be simplified to
=IFERROR(HLOOKUP(TRUE,AU4:BH4,1,0),FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,868
Messages
6,122,005
Members
449,059
Latest member
mtsheetz

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