+ Reply to Thread
Results 1 to 18 of 18

Finding top 10 smallest data and matching it to associated data

  1. #1
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Finding top 10 smallest data and matching it to associated data

    Hello,

    I'm wondering if someone can help.

    In my example data set I have a list of people that staff go and visit in varoius citys and the amount of time spent with them each meeting. An average meeting time is then created, and I want to display the 10 people where the least amount of time spent with them - this I have already done in column K.


    However, in the columns highlighted in orange and yellow, I need to pull out the data that goes along with it e.g. rank 1 has the average time of 25 and this would be for Bob in London (and also Eve in Bristol). But I'm not sure how I go about pulling this associated data across. Is it by somehow combining an index match with the ranking funciton?


    I'm aware that there are duplicates where the averages are the same (and yet one is assigned rank 1 and the other as rank 2) but this is another issue I need to overcome another day.



    Any advice or input would be very much appreciated !

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    Hello,

    Why not make a table and put Rank in first column then sort?
    Last edited by crazyforexcel; 02-12-2020 at 03:36 PM.

  3. #3
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    hi crazyeddie,

    great suggestion! But the thing is, I've been asked to set this up so that there is this summary table to show the "top 10" which is seperate to where the data itself lives. Additionally, this summary table needs to be dynamic in as much as, after each month when we put in more meetings / add more clients, it will automatically update.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    Okay let me take a look.

  5. #5
    Registered User
    Join Date
    01-24-2020
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    95

    Re: Finding top 10 smallest data and matching it to associated data

    Hi, TABLE and Structured Reference come into play in your case.

    1. Insert "Table" in the range of your dataset and name it "DS" for simplicity; what's more, u can expand the records as much as u want, whether vertically or horizontally.

    2. Again I use a name "GRID" for simplicity of formula constructing; in fact, it's an unsorted array of average meeting time;
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    3. Formulae for matches based on average meeting time are constructed in the colored range.
    Attached Files Attached Files

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Finding top 10 smallest data and matching it to associated data

    Like this?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    Hi mightbracket123,

    I think maybe this will do.

  8. #8
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    Hi ThxAlot , thanks for taking a look ! What you have done is exactly what I'm after, I'm just trying to understand the logic of the formulas at work. Where you have the MATCH function included in the formulas in the coloured sections, what exactly are they matching ? (I'm only familar with more simplistic INDEX MATCHES).

    Thank you again !

  9. #9
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    Hi crazyeddie, thanks for this !! This also works and I feel I can understand much more what is going on with this. Thanks for taking a look and helping with this!!

  10. #10
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    This has the output also on the same sheet if you prefer with more simplistic formulas.

  11. #11
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    Hi again,

    Maybe a bit over the top but I thought of some kind of tie breaker. A rating system to reduce the times by how the customer feels for each visit. I hope you find this useful but if not just disregard.

    CE

  12. #12
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    Hi crazyeddie

    Thanks again for this and thanks for posting this tie breaker ! I'll have a think about the rating system as whilst I don't think the scoring would work exactly like this, I think the logic behind what you've done could certainly be useful, so thank you

    Thanks for all your help with this I really appreciate it.

  13. #13
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    Maybe try this. I enjoy the challenge.

  14. #14
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Finding top 10 smallest data and matching it to associated data

    I enjoy it too, but the OP did not care to read nor acknowledge my solution...
    Another candidate for my "Ignore list" ...

  15. #15
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    Sorry Pepe Le Mokko, I had started typing out a reply to you earlier but got caught up in work. I took a look at what you did but sadly it wasn't quite working in the way I had hoped, as where more than 1 client had the same average, it was bringing back the same location and name for both of these, rather that it being unique to each member.

    e.g. cells L4 + L5 both say Bob - but one should say Bob and the other Eve

  16. #16
    Forum Contributor
    Join Date
    05-09-2019
    Location
    South West
    MS-Off Ver
    365
    Posts
    108

    Re: Finding top 10 smallest data and matching it to associated data

    Thanks crazyeddie. I'm forever amazed at people's ability to come up with these kinds of things. I'm slowly getting better at Excel, but every time I come on here I feel like a complete novice all over again. Thanks again for going one step further with this, it's defintely given me something to think about and how this can go to the next level.

  17. #17
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Finding top 10 smallest data and matching it to associated data

    This version has data validation for the ratings. It also formats the Average time spent to 2 decimal places to reduce the duplicate occurrences.
    Last edited by crazyforexcel; 02-13-2020 at 10:40 AM.

  18. #18
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Red face Re: Finding top 10 smallest data and matching it to associated data

    Glad to help

+ 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. [SOLVED] Finding matching data L7
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2019, 12:35 PM
  2. Finding smallest value greater than x in a column while also matching dates.
    By pcopeland in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-04-2018, 04:06 PM
  3. [SOLVED] Formula - Finding matching data from different worksheets, returning data from 3rd colum
    By Rach1509 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2017, 11:33 AM
  4. Finding Matching Data in one Column/Adding corresponding matching string value.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 07:23 PM
  5. Finding matching data in long columns of data
    By atltempleman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 03:43 AM
  6. finding or matching data
    By langdon37 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-09-2008, 02:25 PM
  7. Finding matching data
    By solnajeff in forum Excel General
    Replies: 5
    Last Post: 11-30-2007, 11:58 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