+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP match of column gives a result with a max of x

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    West Virginia, US
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    69

    VLOOKUP match of column gives a result with a max of x

    So what I am trying to do is use a pull down on one worksheet linked to a table on another worksheet allow the user to only input a number from 1 (always the minimum) to x (which is the number found in the table).
    Currently it is showing #VALUE which is probably related to the pull down bringing up a term versus a number. I am unsure how to correct it.

    =IF(B23="",1,MAX(VLOOKUP(B23,Talents!C4:Q134,4,FALSE)))


    C23 is the cell i would like the user be able to select a number. The pull down is in B23 and it will bring up a term. that term is linked to a table on the Talents tab (in the C column) the maximum that x can be is found in column 4 in the table (the minimum is always 1 and the max can b anything from 1-10).

    I am fairly new to excel so I am sure I am screwing something up. Thank you for any help.
    Attached Files Attached Files
    Last edited by MrO; 12-03-2012 at 12:41 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP match of column gives a result with a max of x

    If I understand you correctly, you want to simply return the value on TALENTS column E, based on whatever is entered in CHAR B22?

    If that is the case, then you need to use...

    =VLOOKUP(B22,Talents!$C$2:$E$35,3)

    you can add the if(B22="", if you want to
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VLOOKUP match of column gives a result with a max of x

    Hi MrO,

    if you are trying to get the value for tier from the talents sheet. you can just use a vlookup in cell C22.
    Regards,
    Hyperdude

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    West Virginia, US
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    69

    Re: VLOOKUP match of column gives a result with a max of x

    What I would like to end up with is based on what is in B23 (will link up with the left column in the table), I need C23 to only be able to return a number between 1 and x (x being the number in the 4th column of the table). Is that possible some way?
    So the user can use the pull down in B23 to pick any one of the Talents and C23 will allow them to then pick the tier. That tier based on which Talent is selected can be anywhere from 1-X.
    Does that make more sense?

  5. #5
    Registered User
    Join Date
    09-02-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: VLOOKUP match of column gives a result with a max of x

    what you want is to retrieve the data keyed in by the user on char sheet to display on the talents sheet?

  6. #6
    Registered User
    Join Date
    11-26-2012
    Location
    West Virginia, US
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    69

    Re: VLOOKUP match of column gives a result with a max of x

    I would like it to show in C23 on the main tab if possible. If not some way for the user to only be able to key in a number between 1-x

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: VLOOKUP match of column gives a result with a max of x

    maybe this could explain better or clear something on what you expect.

    Test (7).xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  8. #8
    Registered User
    Join Date
    11-26-2012
    Location
    West Virginia, US
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    69

    Re: VLOOKUP match of column gives a result with a max of x

    I tried using Data Validation but that is a fail also.
    Using Whole Number choice a number between 1 and =VLOOKUP(B25,Talents!$C$4:$Q$134,4,FALSE)
    It says the maximum evaluates to an error. Do you want to continue?

    Tough to figure out

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: VLOOKUP match of column gives a result with a max of x

    data validation

    minimum
    1

    maximum
    =d21

    d21 is the vlookup formula provided by Fdibbins

  10. #10
    Registered User
    Join Date
    11-26-2012
    Location
    West Virginia, US
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    69

    Re: VLOOKUP match of column gives a result with a max of x

    I did a combination of the suggestions. Created another small table off to the side with the vlookup command as mentioned. Then used the data validation suggestion to pull from the table. It forces a user to select a tier number from 1 to whatever is in B23.
    Thank you all for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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