+ Reply to Thread
Results 1 to 6 of 6

Find which array a value belongs to.

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    7

    Find which array a value belongs to.

    So, I'm looking for a function that not only returns which is the nth largest value, but which array that value belongs to. Is this possible?

    For example, if I have a table that records the sales number from Monday to Friday. I want a formula that gives me which days have the top three sales. Using the =LARGE formula only gives me the sales value, but not what day they're from.

    Thank you
    Last edited by vhanster; 09-02-2021 at 01:27 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,626

    Re: Find which array a value belongs to.

    I think that to answer your question, we shall see your data layout.
    So follow the yellow banner near the top of the page and attach sample file, please
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-25-2016
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    7

    Re: Find which array a value belongs to.

    Here is the attachment.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: Find which array a value belongs to.

    try this formula:

    ="D"&MATCH(LARGE($B3:$H3,K$2),$B3:$H3,) &": " & TEXT(LARGE($B3:$H3,K$2),"#,000")
    Attached Files Attached Files
    Row row row your boat
    Gently down the stream

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Find which array a value belongs to.

    Try


    =INDEX($B$2:$H$2,MATCH(LARGE($B3:$H3,K$2),$B3:$H3,0))

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

    Re: Find which array a value belongs to.

    Pl see file.

    In K3

    =LARGE($B3:$H3,K$2)

    In L3

    =INDEX($B$2:$H$2,MATCH(K3,$B3:$H3,0))

    copied down both.

    Select K3:L6. Use fill handle and drag across.
    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.

+ 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] Need Formula to find which table a name belongs to
    By modytrane in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2020, 02:55 PM
  2. Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE
    By fred3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2016, 10:29 PM
  3. [SOLVED] Find out to which category my cell value belongs
    By rpinxt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2015, 09:12 AM
  4. not sure where this belongs
    By tim hem in forum Excel General
    Replies: 2
    Last Post: 07-17-2013, 02:07 AM
  5. Replies: 3
    Last Post: 12-24-2010, 06:19 AM
  6. Not sure if this belongs here...
    By mrbadss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2009, 02:44 AM
  7. Replies: 1
    Last Post: 10-25-2005, 02:05 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