Forum Discussion

UncleGene's avatar
UncleGene
Copper Contributor
Nov 19, 2021

Is it possible to use HLOOKUP and CHOOSE to get my answers from different rows?

I have been meaning to ask if this formula works? 
AND if not what is the alternative if i stil wan to stick with using HLOOKUP?

=HLOOKUP(D20,CHOOSE({1,2,3},Sales_Range,Disc,Disc_Level),2,TRUE)

Right now i get an Error: #REF!

 

4 Replies

  • Martin_Weiss's avatar
    Martin_Weiss
    Bronze Contributor

    Hi UncleGene 

     

    I do not see any mistake in your formula. I rebuilt the example based on your screenshot and it works fine for me. Attached please find my file, so you could compare with yours.

     

    Hope this helps.

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    UncleGene Try it this way:

    =HLOOKUP(D20,CHOOSE({1;2},Sales_Range,Disc_Level),2,TRUE)

    Use a semicolon in the "CHOOSE list" for a horizontal lookup, and a comma for a vertical lookup.

     

Resources