Forum Discussion

PatrycjaML's avatar
PatrycjaML
Copper Contributor
May 26, 2021

Vlookup

Hello All.

 

I am having an issue with VLOOKUP function where it duplicates information from an upper row even thought the lookup value is different. 

Any ideas 

4 Replies

    • PatrycjaML's avatar
      PatrycjaML
      Copper Contributor

      HansVogelaar Yes this is preset as automatic.  This issue appears with this setting. 

      Any other ideas?

      • mathetes's avatar
        mathetes
        Gold Contributor

        PatrycjaML 

         

        VLOOKUP, unless you set the "range lookup" to FALSE or 0 will, if the column being used as reference is not sorted in alphabetical or sequential order, once it hits an "answer" that is beyond the desired one,  will go back to the previous.

         

        For example, you have entered =VLOOKUP("C",tablerange,2) but the table being referenced is arrayed

        A,10

        B,34

        D,34

        E,23

        C,67

        then you will get the values next to "B" i.e., 34

        If on the other hand you write your formula as =VLOOKUP("C",tablerange,2,0) you'll get your desired result. That last little 0 (or the word FALSE) is critical