Closed Thread
Results 1 to 10 of 10

Row number as result of LARGE formula

  1. #1
    Forum Contributor
    Join Date
    03-14-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    107

    Row number as result of LARGE formula

    Hi all,

    Is there an easy way to get cell reference or row/col number of large formula?
    I want as result row number, where LARGE formula found nth top value.

    LARGE(A1:A4,1) > result A4 or row-4
    LARGE(A1:A4,2) > result A2 or row-2
    LARGE(A1:A4,3) > result A3 or row-3

    A
    2
    4
    4
    5

    MATCH function not working properly with two or more same number (example 4), always return 2. Thanks
    Attached Files Attached Files

  2. #2
    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,152

    Re: Row number as result of LARGE formula

    Try

    in Column E

    =A2+COUNTIF($A$2:A2,A2)*0.001

    Copy down

    in C2

    =MATCH(LARGE($E$2:$E$5,ROWS($1:1)),$E$2:$E$5,0)

  3. #3
    Forum Contributor
    Join Date
    03-14-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    107

    Re: Row number as result of LARGE formula

    JohnTopley thanks. If there is no other solution to keep one cell formula, I will have to use additional column.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Row number as result of LARGE formula

    In C2, copied down, use this array formula:

    =MATCH(LARGE($A$2:$A$5-ROW($A$2:$A$5)/10^10,ROWS($1:1)),$A$2:$A$5-ROW($A$2:$A$5)/10^10,0)

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    03-14-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    107

    Re: Row number as result of LARGE formula

    Glenn Kennedy thanks, this is what I want

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Row number as result of LARGE formula

    You're welcome...

  7. #7
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Row number as result of LARGE formula

    Otherway use countif without use array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down

    Regard
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  8. #8
    Forum Contributor
    Join Date
    03-14-2017
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    107

    Re: Row number as result of LARGE formula

    micope21 thanks, it also works and it's shorter. Thanks

    but it's without LARGE function, so not for me
    Glenn Kennedy solution is universal and we only change nth value of LARGE formula. In your solution we have to change ranges, but it's nice alternative for LARGE
    Last edited by mtcas; 03-15-2017 at 07:26 AM.

  9. #9
    Registered User
    Join Date
    04-16-2020
    Location
    San Francisco, CA
    MS-Off Ver
    Office Online
    Posts
    1

    Re: Row number as result of LARGE formula

    Hi Glenn,

    After frantically searching for nearly 4 hours, I think this is exactly what I need. However I'm having trouble understanding the syntax. Could you please explain what the
    Please Login or Register  to view this content.
    is doing in this example? Also, I replaced
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    to grab the top 10 for my situation.

    Any help would be greatly appreciated!

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

    Re: Row number as result of LARGE formula

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, or you want clarification, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. After all, the thread is three years old.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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.

Closed 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: 12-18-2015, 01:24 PM
  2. [SOLVED] Extending Formula to Cover Large Number of Rows
    By RossChip in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-14-2013, 05:54 AM
  3. [SOLVED] Drag down formula to skip a large number of rows
    By exclaymation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2013, 11:23 PM
  4. Repeat Formula on large number of cells
    By cyberuser in forum Excel General
    Replies: 2
    Last Post: 12-20-2010, 09:00 PM
  5. Large Form Help: Handling large number of text boxes and labels
    By laterdaysluke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2010, 03:12 PM
  6. IF function based on True result with large formula.
    By naiveprogrammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2005, 07:05 AM
  7. Conditional Formula to Give the Large Number
    By Gos-C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2005, 05:18 PM

Tags for this Thread

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