Consulting

Results 1 to 4 of 4

Thread: VLOOKUP referencing table name

  1. #1
    VBAX Contributor
    Joined
    Mar 2009
    Location
    Porto, Portugal
    Posts
    180
    Location

    VLOOKUP referencing table name

    Hi
    I have this formula that should work:
    =VLOOKUP(c4,Table2,5,False) - Table2 is located in sheet2
    I have tried too:
    =VLOOKUP(c4,Table2[[#Headers],[Products]],False)
    But I always get #N/A
    What am I dooing wrong?
    Thanks in advance
    Ioncila

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Is "Table2" a defined name?

    Alternately, instead of typing "Table2" into the formula, select the entire Table2.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    VBAX Contributor
    Joined
    Mar 2009
    Location
    Porto, Portugal
    Posts
    180
    Location
    Hi
    Table2 is a referencing table - I guess it as called table name (excel2013).
    But it's a table that "grows" everyday, so if I select the table range, will it assume the new data too in the range?

  4. #4
    VBAX Contributor
    Joined
    Mar 2009
    Location
    Porto, Portugal
    Posts
    180
    Location
    I Think I've solved with INDEX & MATCH
    =INDEX(Table2[[#Data],[Products]],MATCH(C4,Table2[[#Data],[Clients]],0))
    But I still can't figure why VLOOKUP doesn't work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •