+ Reply to Thread
Results 1 to 6 of 6

Problem with VLOOKUP using table name?

  1. #1
    Registered User
    Join Date
    10-07-2018
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Office 365 and Microsoft Office for Mac
    Posts
    4

    Question Problem with VLOOKUP using table name?

    Hi everyone,

    I'm having trouble with a tracking sheet I created for my department in school to track pupil scores.
    Specifically the second sheet.
    The teacher can use a dropdown box (under tracking name) to see all the pupils % scores and the residual between that and the class average.

    Unfortunately it seems to not pick up the correct score.

    However I have checked my formula and it is definitely pointing at the right cell.

    (I have added a sample of the worksheet using fake names.)

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-07-2018
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Office 365 and Microsoft Office for Mac
    Posts
    4

    Re: Problem with VLOOKUP using table name?

    Some additional info, when the worksheet is locked teachers can only change the cells coloured orange.
    The first sheet is data entry.
    The second sheet has the lookup function.
    The third sheet graphs the data from the second sheet.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Problem with VLOOKUP using table name?

    You need to use exact match, not approximate.

    =VLOOKUP($A$3,Tracking!$A$6:$BL$36,3,0)

    However, I would suggest a different method, this formula in B3, then dragged right will match the tracking point as well so that you don't need to change the lookup column in each formula.

    =INDEX(Tracking!$C$6:$BL$36,MATCH($A3,Names,0),MATCH(B$1,Tracking!$A$1:$BJ$1,0))

  4. #4
    Registered User
    Join Date
    10-07-2018
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Office 365 and Microsoft Office for Mac
    Posts
    4

    Re: Problem with VLOOKUP using table name?

    Thank you Jason, That formula works brilliantly.
    Could you maybe explain how you put it together? I'm always trying to further my Excel knowledge.
    I understand that INDEX is for looking up an ARRAY but I have never used a MATCH formula before.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Problem with VLOOKUP using table name?

    The match function simply returns the position of whatever you're looking for rather than the actual result that you would get from vlookup.

    The first match is used to find the row that contains the selected pupil name, the second finds the column with the tracking point. The index function then gives you the result where the row and column intersect.

    Note that the row, or column found by the match function is based on the range used, not the actual row numbers, using your example file, the match for Donovan Heras is row 2, then second row in A6:A36.

    Lastly, with the column match, the range is offset to the left of the index range by 2 columns. This is done because the results are coming from columns C,G,K, etc. but the Tracking point headings are in columns A,E,I, etc. When you merge cells, whatever you enter into them only exists in the leftmost cell, the others are effectively empty.

    Not so much out of the box thinking, but you need the lid open.

  6. #6
    Registered User
    Join Date
    10-07-2018
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Office 365 and Microsoft Office for Mac
    Posts
    4

    Re: Problem with VLOOKUP using table name?

    Thanks for the additional info - will certainly be using this in the future!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  2. vLookUp problem. can't figure out a table
    By EX650R in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 05:03 PM
  3. Replies: 9
    Last Post: 08-13-2012, 08:00 AM
  4. Vlookup problem, gets stuck halfway through looking up table
    By henriklesaque in forum Excel General
    Replies: 6
    Last Post: 03-19-2012, 07:46 AM
  5. Replies: 3
    Last Post: 12-07-2009, 11:49 AM
  6. Problem with Hlookup, Vlookup, Index with table
    By pepsijoe in forum Excel General
    Replies: 5
    Last Post: 10-01-2009, 04:24 PM
  7. [SOLVED] VLOOKUP Table Problem
    By Daywalker in forum Excel General
    Replies: 8
    Last Post: 03-09-2008, 04:50 PM
  8. Problem with VLOOKUP and pivot table
    By LB79 in forum Excel General
    Replies: 2
    Last Post: 07-26-2006, 09:28 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1