+ Reply to Thread
Results 1 to 10 of 10

Smallest number through INDEX MATCH

  1. #1
    Registered User
    Join Date
    08-23-2019
    Location
    Los Angeles
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Lightbulb Smallest number through INDEX MATCH

    Hi everyone,

    I'm struggling with my data that does not give the result I want, could you please help me?

    Capture.PNG


    How to get 10 (on column 'unit' or column B) for item code 1172 (as 10, is the smallest total unit for 1172)?
    How to get -20 (on column 'unit' or column B) for item code 1856 (as -20, is the smallest total unit for 1856)?

    I've tried =MIN(B2:B9,INDEX(B2:B9,MATCH(C2,A2:A9,0))) but the result is -20
    I've tried =SMALL(INDEX(B2:B9,MATCH(C2,A2:A9,0),0),ROWS(1:1)) but the result is 12

    Thank you so much for your help, really appreciate it.

    -Melissa-

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: Smallest number through INDEX MATCH

    try this ARRAY formula =MIN(IF(A2:A9=D2,B2:B9))
    activated by ctrl+shift+enter, you'll know it is active when the {} appear at each end of the formula. Can't add them yourself.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Smallest number through INDEX MATCH

    Or try:

    =AGGREGATE(15,6,$B$2:$B$9/($A$2:$A$9=D2),1)

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Smallest number through INDEX MATCH

    Hi Melissa and welcome to the forum,

    This looks like a MinIfs() problem to me. See the attached where I have the problem and answer done for you.

    MinIfs for Melissa.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Smallest number through INDEX MATCH

    MINIFS is not available in Excel 2010.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    08-23-2019
    Location
    Los Angeles
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Smallest number through INDEX MATCH

    You solve my 2 hours problem in just a second :,) Thanks

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

    Re: Smallest number through INDEX MATCH

    Quote Originally Posted by anggiemelisa View Post
    You solve my 2 hours problem in just a second :,) Thanks
    Perhaps you could add which solution you are referring to ?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Smallest number through INDEX MATCH

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

  9. #9
    Registered User
    Join Date
    08-23-2019
    Location
    Los Angeles
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Smallest number through INDEX MATCH

    Thank you everyone for the help! All formula work! Can't believe this has so many ways to get the result I want

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: Smallest number through INDEX MATCH

    Thanks for the rep. As I said in my thank you message to you earlier, it would be helpful to upgrade your profile to show that you are using two versions of Excel and which they are.

+ 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. Replies: 5
    Last Post: 10-25-2016, 11:48 AM
  2. Index Match to find smallest 6 numbers problem
    By minto in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2015, 05:48 AM
  3. [SOLVED] Converting Hlookup to Index Match with variable column index number
    By SimonLock in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-09-2015, 09:14 AM
  4. [SOLVED] Index Match Smallest return
    By f i sh in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-02-2014, 03:16 PM
  5. [SOLVED] Counting the number of times INDEX/MATCH finds more than 1 match.
    By loloduane in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2014, 03:35 AM
  6. [SOLVED] INDEX MATCH and MIN/SMALL to pull first and second smallest values from array
    By tlafferty in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2014, 04:03 AM
  7. INDEX MATCH 3rd SMALLEST NUMBER
    By sleazyfish in forum Excel General
    Replies: 1
    Last Post: 07-24-2009, 04:59 AM

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