+ Reply to Thread
Results 1 to 6 of 6

Finding the smallest 3 values by region

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    16
    Posts
    2

    Finding the smallest 3 values by region

    Hi,

    I am looking for a solution for this basic problem. I believe I should use INDEX and MATCH functions. Please see the attachment. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Finding the smallest 3 values by region

    Please try at K4:K18
    =IFERROR(INDEX(B:B,MOD(AGGREGATE(15,6,C$3:C$52*10^6+ROW(C$3:C$52)/(A$3:A$52=LOOKUP("z",I$4:I4)),J4),10^6)),"")
    Attached Files Attached Files

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Finding the smallest 3 values by region

    Excel 2016 (Windows) 32 bit
    I
    J
    K
    2
    The worst 3 (smallest value) units by region
    3
    4
    North
    1
    170
    5
    2
    181
    6
    3
    188
    7
    8
    East
    1
    126
    9
    2
    167
    10
    3
    302
    11
    12
    South
    1
    162
    13
    2
    171
    14
    3
    213
    15
    16
    West
    1
    132
    17
    2
    172
    18
    3
    224


    Excel 2016 (Windows) 32 bit
    K
    4
    =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3)
    5
    =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3)
    6
    =SMALL(IF(A:A=$I$4,C:C,10^9),ROW()-3)
    7
    8
    =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7)
    9
    =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7)
    10
    =SMALL(IF(A:A=$I$8,C:C,10^9),ROW()-7)
    11
    12
    =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11)
    13
    =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11)
    14
    =SMALL(IF(A:A=$I$12,C:C,10^9),ROW()-11)
    15
    16
    =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15)
    17
    =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15)
    18
    =SMALL(IF(A:A=$I$16,C:C,10^9),ROW()-15)
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Finding the smallest 3 values by region

    In K4 then copy down

    =IFERROR(AGGREGATE(15,6,$C$3:$C$52/($A$3:$A$52=INDEX($I$4:$I4,MATCH("ZZZ",$I$4:$I4,1))),J4),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Finding the smallest 3 values by region

    In K3 Cell

    Please Login or Register  to view this content.
    Drag the formula down


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Registered User
    Join Date
    07-10-2019
    Location
    Helsinki, Finland
    MS-Off Ver
    16
    Posts
    2

    Re: Finding the smallest 3 values by region

    Thank you very much for all the answers and effort.

    Sorry for unclear message I wanted to find three Unit names not values. I will now adjust Bo_Ry 's function to my real sheet.

+ 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. Formula Error for finding smallest values and index with horizontal cells
    By JoeyscLee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2017, 12:36 PM
  2. Finding next smallest value?
    By wilson33 in forum Excel General
    Replies: 6
    Last Post: 03-13-2016, 11:11 AM
  3. Different method for finding variable region
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2009, 12:14 PM
  4. finding 10 smallest unique values in a list
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2008, 08:59 PM
  5. Finding Smallest Value
    By Phil in forum Excel General
    Replies: 5
    Last Post: 05-28-2006, 08:30 PM
  6. [SOLVED] finding next smallest value in a column
    By Greg in forum Excel General
    Replies: 2
    Last Post: 02-02-2006, 02:10 PM
  7. Finding smallest numbers
    By Mike7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2005, 07:39 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