+ Reply to Thread
Results 1 to 7 of 7

VLookup accessing different tables - I know this function isnt the best one to use....

  1. #1
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    VLookup accessing different tables - I know this function isnt the best one to use....

    Hi all

    Thanks in advance for any feedback - much appreciated

    Please see attached document

    Using Pupil A as example
    I have added a vlookup to I4 which will lookup different tables (highlighted yellow) in the different grades sheet based on whether C4 equals A or B

    Id like to add another layer.

    C1 has the number 1 in it- id like to be able to change this to a 2 and have the vlookup look at a different set of tables in the different grades sheet (highlighted in blue) but still using C4 to decide which of the columns to refer too.

    Ive googled and can see indirect and match may be the answer but im not entirely sure how to translate to my sheet.

    Any feedback greatly received- thanks all
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Thanks for the feedback - Ive updated my profile now
    Version = Microsoft Office Professional Plus 2016 -

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Create four named ranges and try this:

    =IFERROR(VLOOKUP($H4,INDIRECT(CHOOSE($C$1,"Master","Custom")&(IF($C4="A","H","F"))),2,1),"")

    Named Ranges:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    F
    H
    F
    H
    2
    0
    F-
    0
    F=
    0
    F-
    0
    F=
    3
    3
    F=
    3
    F+
    3
    F=
    3
    F+
    4
    5
    F+
    5
    1-
    5
    F+
    5
    1-
    5
    10
    1-
    10
    1=
    10
    1-
    10
    1=
    6
    12
    1=
    12
    1+
    12
    1=
    12
    1+
    7
    15
    1+
    15
    2-
    15
    1+
    15
    2-
    8
    20
    2-
    20
    2=
    20
    2-
    20
    2=
    9
    25
    2=
    25
    2+
    25
    2=
    25
    2+
    10
    30
    2+
    30
    3-
    30
    2+
    30
    3-
    11
    35
    3-
    35
    3=
    35
    3-
    35
    3=
    12
    40
    3=
    40
    3+
    40
    3=
    40
    3+
    13
    45
    3+
    45
    4-
    45
    3+
    45
    4-
    14
    50
    4-
    50
    4=
    50
    4-
    50
    4=
    15
    55
    4=
    55
    4+
    55
    4=
    55
    4+
    16
    58
    5-
    58
    5-
    17
    18
    MasterF
    MasterH
    CustomF
    CustomH
    Sheet: different grades
    Attached Files Attached Files
    Last edited by AliGW; 10-07-2022 at 05:15 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Seen but no reply ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    Registered User
    Join Date
    05-14-2014
    Location
    Kent, England
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    20

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Thankyou so much indeed
    I saw Choose too when i googled but as it was time sensitive i couldn't get to grips with it at all I think i need to spend more time learning when time isnt a pressure.
    I really appreciate your speedy accurate response, it going to save me work wise today
    thanks so much

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: VLookup accessing different tables - I know this function isnt the best one to use....

    Glad to help

    Please mark as solved, etc. as advised above.

+ 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. Vlookup Isnt helping me with zip codes
    By NYK334 in forum Excel General
    Replies: 2
    Last Post: 12-14-2017, 02:20 AM
  2. [SOLVED] Vlookup or Index formula pulling data that isnt compatible
    By djmatok in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-16-2015, 05:40 PM
  3. VLOOKUP information that isnt in the column next to the reference
    By Eijaz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2014, 06:34 AM
  4. [SOLVED] Nested IF Function...why isnt it working?
    By PJC2013 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-26-2013, 11:00 PM
  5. using round function when there isnt a value in the cell
    By josh-mediwatch in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-20-2013, 09:04 AM
  6. Part of function isnt working
    By hawkinsr86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2012, 07:20 PM
  7. Accessing Microsoft Access Tables
    By dok112 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2005, 04:25 PM

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