+ Reply to Thread
Results 1 to 8 of 8

Help with getting unique output dependent on two data validation lists

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    Illinois, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Help with getting unique output dependent on two data validation lists

    I have two validation lists that work correctly. However, I need output lower in the worksheet that will produce unique data dependent on what is selected in the validation lists. I have attached a sample workbook of basic data of what I mean. Any and all suggestions would be appreciated.


    Sample Book.xlsx

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with getting unique output dependent on two data validation lists

    Simplest, add a column to your "data" that concatenates those two values together to create a single unique key for each row, then a standard VLOOKUP can still do the job.

    There are fancier array formulas that can do it without the key column addition, but this keeps things easy to read.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-30-2012
    Location
    Illinois, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with getting unique output dependent on two data validation lists

    Ok, a follow up question for this. I want to apply a skins match to this spreadsheet. Each hole is worth a certain amount that can be changed by the user. Whoever wins each hole wins that skin for the hole. If there is a tie on the hole, the money carries over to the next hole. Is there a formula that can tell me the winner and how much that golfer won?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with getting unique output dependent on two data validation lists

    Best not try and imagine these scenarios. You will need to demonstrate in your workbook visually exactly the "results" you're after. Make sure all the reference data is there and mockup the goal desired.

  5. #5
    Registered User
    Join Date
    03-30-2012
    Location
    Illinois, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with getting unique output dependent on two data validation lists

    Below is the attached workbook. I know that Bob is the winner of the example by myself physically counting and doing the math. I need a formula to insert to find the monetary award for the winner. I have inserted a comment as to where the formula needs to be. Again the skins amount can be changed by the user and if a hole has a tie the amount for that hole carries over to the next hole.

    SampleVlookupWithKey (1).xlsx

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with getting unique output dependent on two data validation lists

    Explain your math.

  7. #7
    Registered User
    Join Date
    03-30-2012
    Location
    Illinois, United States
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help with getting unique output dependent on two data validation lists

    Whoever shoots the lowest on each individual hole wins the skin amount input. Each hole will have a winner unless there is a tie, and that amount must be carried over to the next hole. I need the amount won by each basically and then the highest subtracted by the lower to find the amount won. The $50 on there may not be correct it was just where I needed the answer. For example for Bob, Hole 1= 25, 2= 25, 3=25, 4=-25...etc.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with getting unique output dependent on two data validation lists

    Maybe this:

    D10: =IF(SUMPRODUCT(--(D3:U3<D2:U2))>SUMPRODUCT(--(D2:U2<D3:U3)), C3, C2)
    I10: =((SUMPRODUCT(--(D3:U3<D2:U2)))-(SUMPRODUCT(--(D2:U2<D3:U3))))*B4

+ 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