Forum Discussion

Fiona11's avatar
Fiona11
Copper Contributor
Jan 16, 2020

Vlookup

I have created a Vlookup formula - VLOOKUP(A5,ETB!$A$9:$L$105,12), which returns the correct value, but when I copy it down it correctly becomes VLOOKUP(A6,ETB!$A$9:$L$105,12), but then returns the same value as the first formula. Please help - I've been messing with it for ages, but can't find where I'm going wrong!

 

Thanks

 

Fiona

13 Replies

  • Jakal_Moon's avatar
    Jakal_Moon
    Copper Contributor

    Fiona11 

    Try changing the false to true.  I always leave it omitted and just add an extra comma at the end, but when I forget the extra comma, I always have those type of issues.  VLOOKUP(A5,ETB!$A$9:$L$105,12,)

     

    • Fiona11's avatar
      Fiona11
      Copper Contributor

      Jakal_Moon 

      Thanks so much for this - true just returns the same value as before and a comma gives me #N/A again.

       

      I can't help thinking its something really basic that I'm missing, but I'm tearing my hair out trying to think of more things to try!

      • PReagan's avatar
        PReagan
        Bronze Contributor

        Fiona11 

         

        The #N/A suggests that your lookup value (A6) does not exist in the source data (ETB!A9:A105). Ensure that your lookup value exists in the list (the exact same value).

         

        As a note Jakal_Moon, I have found it as a safe practice to always include "FALSE" as the [range_lookup] to ensure that VLOOKUP() returns the exact result that I am looking for (and otherwise an error if the lookup value does not exist).

  • PReagan's avatar
    PReagan
    Bronze Contributor

    Hello Fiona11,

     

    To find an exact match with the VLOOKUP() formula, use:

    VLOOKUP(A6,ETB!$A$9:$L$105,12, FALSE)

     

    If the [range_lookup] is omitted, VLOOKUP() will find the closest match in the first column.

    • Fiona11's avatar
      Fiona11
      Copper Contributor
      Thanks for this. I tried it but unfortunately it has returned #N/A. Not sure if I'm being daft but is my range_lookup not the ETB!$A$9:$L$105 part of my formula?
  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Fiona11 

    Please ensure calculations are set to automatic.  Formulas menu | Calculation | Calculation Options | Automatic.

    • Fiona11's avatar
      Fiona11
      Copper Contributor
      Thanks, Patrick, yes it is, and all other formulae on sheet are behaving perfectly!

Resources