+ Reply to Thread
Results 1 to 10 of 10

match same number more than once

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    24

    match same number more than once

    I would like to have cell E 2 show both the days from row A that corresponds to the max value (which is 90) in row B. My index and match formula only returns the first value from row A, telling me day 1, but the second 90 at day 4 does not.
    from




    A B C D E
    ------------------------------
    day Max Min 1 4
    1 90
    2 80
    3 70
    4 90
    5 60
    6
    7
    8

  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,496

    Re: match same number more than once

    this seems to work based on your limited data, CTRL+SHIFT+ENTER to activate it (it is an array formula).
    {=IFERROR(INDEX(A:A,SMALL(IF($B$2:$B$9=90,ROW($B$2:$B$9)),ROWS($A$1:A1))),"")}
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    24

    Re: match same number more than once

    I am missing something. if I upload my file and explained would that be easier?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: match same number more than once

    Yes._________________
    Dave

  5. #5
    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,496

    Re: match same number more than once

    I'm attaching my interpretation of your post (if you want to upload one that is fine).
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    24

    Re: match same number more than once

    what I want to do is have cell E55 tell me the days of the max from B17 to B47. I have that figured out, but as you can see with more than one occurrence it will only
    show the first one. I also want to do the same for the min but should be able to figure that out if I have the other. Thanks.
    Attached Files Attached Files

  7. #7
    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,496

    Re: match same number more than once

    so where do you want the second (or third or more) value(s) put, which cell do you want day 4 to be in?
    if you want it to be in cell E55 for the first and F55 for the second, then put this in E55 and drag right...
    =IFERROR(INDEX($A:$A,SMALL(IF($B$17:$B$21=$C55,ROW($B$17:$B$21)),COLUMNS($A$1:A1))),"")
    AGAIN, activated by CTRL+SHIFT+ENTER while still in the formula bar then when the {} appear on each end drag right.

  8. #8
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    24

    Re: match same number more than once

    Great! now how would I do the same for the MIN for E56 for the min values on C17 to C47?

  9. #9
    Registered User
    Join Date
    07-05-2019
    Location
    usa
    MS-Off Ver
    2016
    Posts
    24

    Re: match same number more than once

    Got it all figured out. Thanks so much for the help!

  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,410

    Re: match same number more than once

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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] Count number of cells from one match to another match on a different sheet
    By snowdude2004 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2017, 05:23 PM
  2. [SOLVED] Index match match with the column number determined by two rows???
    By bridge4444 in forum Excel General
    Replies: 2
    Last Post: 08-08-2016, 04:23 AM
  3. [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
  4. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  5. Replies: 4
    Last Post: 02-19-2013, 02:19 PM
  6. If number in culumn 'A' match set number another number in column 'I'
    By MAButler in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2011, 08:29 PM
  7. Match similar words to array and get row number of match
    By steefa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2009, 10:41 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