+ Reply to Thread
Results 1 to 7 of 7

Looking for a way to select winners based on location

  1. #1
    Registered User
    Join Date
    05-12-2020
    Location
    Toronto
    MS-Off Ver
    16.36
    Posts
    3

    Question Looking for a way to select winners based on location

    Hi there,

    Does anyone know of a formula or function whereby a winner can be selected, based on highest points from a specific location.

    For clarification - we have Name, Points, and Location fields. I want to pull the Name of the person with the most points at each location. So one winner from Location A, one from Location B, etc.

    Thanks in advance for your help!
    Attached Files Attached Files
    Last edited by cs_max; 05-12-2020 at 06:34 PM. Reason: Added example

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Looking for a way to select winners based on location

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-12-2020
    Location
    Toronto
    MS-Off Ver
    16.36
    Posts
    3

    Re: Looking for a way to select winners based on location

    Thank you! I've added the sample workbook to my original post.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Looking for a way to select winners based on location

    v A B C D E F
    1 name points location
    2 John 450 Washington Washington =MAXIFS($B$2:$B$19,$C$2:$C$19,D2) =INDEX($A$2:$A$19,MATCH($E$2:$E$5,$B$2:$B$19,0))
    3 Lisa 124 Washington New York =MAXIFS($B$2:$B$19,$C$2:$C$19,D3) =INDEX($A$2:$A$19,MATCH($E$2:$E$5,$B$2:$B$19,0))
    4 Sam 96 Washington San Francisco =MAXIFS($B$2:$B$19,$C$2:$C$19,D4) =INDEX($A$2:$A$19,MATCH($E$2:$E$5,$B$2:$B$19,0))
    5 Rupert 483 Washington Kansas =MAXIFS($B$2:$B$19,$C$2:$C$19,D5) =INDEX($A$2:$A$19,MATCH($E$2:$E$5,$B$2:$B$19,0))
    6 Raymond 222 Washington
    7 Daniel 394 New York
    8 Josh 182 New York
    9 Liam 44 New York
    10 Frank 203 San Francisco
    11 Alex 112 San Francisco
    12 Adam 456 San Francisco
    13 Michael 342 San Francisco
    14 Richard 231 San Francisco
    15 Kyle 505 Kansas
    16 Jordan 100 Kansas
    17 Jess 87 Kansas
    18 Sarah 42 Kansas
    19 Lindsay 310 Kansas

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Looking for a way to select winners based on location

    Shortened the whole thing by using this formula

    =INDEX($A$2:$A$19,MATCH(MAXIFS($B$2:$B$19,$C$2:$C$19,D2),$B$2:$B$19,0))

  6. #6
    Registered User
    Join Date
    05-12-2020
    Location
    Toronto
    MS-Off Ver
    16.36
    Posts
    3

    Re: Looking for a way to select winners based on location

    That's amazing! Thanks so much for working that out - it seems to work perfectly!

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Looking for a way to select winners based on location

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

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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. pre select folder location
    By kobiashi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-21-2018, 03:59 PM
  2. Using offset function to select a range of cells based on active cell location
    By laxminarayana in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2017, 07:49 AM
  3. Replies: 0
    Last Post: 10-22-2014, 12:07 PM
  4. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  5. Select a Range Based on Active Cell Location?
    By w01f in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2009, 08:35 AM
  6. Code to select a range of cells based on cursor location
    By kys2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2007, 05:57 PM

Tags for this Thread

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