Description: I have a VLOOKUP formula, [ =VLOOKUP(G2,INDIRECT(F2),2,0) ], where F2 varies, but is a named range. This formula works. When I try the same with HLOOKUP, [ =HLOOKUP(G17,INDIRECT(F17),2,0) ] the INDIRECT fails. If I put the name of the Range directly into the formula, it works, however if I try to do it where the name of the Range is in F17, it fails. Actual Results: I get an Err:502 Expected Results: Should be the same as vlookup Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 153363 [details] shows vlookup functioning with indirect, and hlookup not working.
Sorry, but there are not named ranges on the sample.
*** Bug 126899 has been marked as a duplicate of this bug. ***
(In reply to m.a.riosv from comment #2) > Sorry, but there are not named ranges on the sample. attached example contains 4 "Database Ranges" (Menu Data/Define Range...)
Sorry, confirmed.
with: Version: 4.4.7.2 Build-ID: f3153a8b245191196a4b6b9abd1d0da16eead600 Gebietsschema: de_DE F3/F18 is #REF! and with Version: 5.4.7.2 (x64) Build-ID: c838ef25c16710f8838b1faec480ebba495259d0 CPU-Threads: 4; BS: Windows 6.19; UI-Render: Standard; Gebietsschema: de-DE (de_DE); Calc: single F3 is a F18 is Err:502 btw: it works with a named range: m = $Sheet1.$A$12:$G$13
Not a bug. See Ask answer https://ask.libreoffice.org/en/question/204562/problem-with-hlookup-and-indirect/?answer=204649#post-id-204649