+ Reply to Thread
Results 1 to 16 of 16

how to determine the position of the greatest value on an arbitrary range?

  1. #1
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    how to determine the position of the greatest value on an arbitrary range?

    I have an excel sheet like this:

    Desired result:

    408 Max value 1st 1

    432
    432 Max value 5th 5
    426
    403
    396
    390




    364
    364
    364 Max value 3rd 3
    357
    340


    275
    275 Max value 7th 7
    253
    230
    230
    221
    221
    221


    I need to determine how many rows from the bottom of a range it takes to reach the maximum value. How can one do it on Excel? I’m a relative noob with it, can only do simple calculations – and this seems too complex for me.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    Hi
    Can you please attach it in excel?
    See the yellow banner at the top of the page for more instructions.

    Thanks.

  3. #3
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    Re: how to determine the position of the greatest value on an arbitrary range?

    ok. here's the spreadsheet that contains the problem.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    You are counting from the bottom and up?

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    You can use something like that but the range needs to be adjusted manually:


    =COUNTIF(A1,"<"&MAX(A1))+1
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    Re: how to determine the position of the greatest value on an arbitrary range?

    yes, i am counting from the bottom up.

    and yes, i would love if the ranges could be found by excel, but dunno how to do it. maybe some arithmetics with the row() -function?
    Last edited by zdoe; 03-16-2021 at 04:16 PM.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    Hi
    See attached:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    Sorry I see now that it work only if the numbers are organized in descending order

  9. #9
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    This would be more accurate:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Limor_OP; 03-16-2021 at 05:40 PM.

  10. #10
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    Re: how to determine the position of the greatest value on an arbitrary range?

    fantastic. and yes, it's so complex that i could've never figured it out on my own... thank you, belinda200.

    odd thing - it doesn't work on 2003, but does on 2016. reason to start using the later version!

  11. #11
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    Hi,
    not so strange, MS adds new functions and developments with each new version.
    yes, the formula seems complex/cumbersome, I assume there might be a simpler-looking solution but that's what I have come up with : )

    You're welcome.

  12. #12
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    One more amendment!
    I saw it still doesn't work in certain cases where the same MAX number repeats itself in none-consecutive cells

    So use this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    Re: how to determine the position of the greatest value on an arbitrary range?

    Quote Originally Posted by belinda200 View Post
    One more amendment!
    I saw it still doesn't work in certain cases where the same MAX number repeats itself in none-consecutive cells

    So use this:

    Please Login or Register  to view this content.
    with a new data set i get #REF!-errors, but i don't understand enough of the formula to know why. still want to take a look?
    Attached Files Attached Files
    Last edited by zdoe; 03-21-2021 at 10:54 AM.

  14. #14
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: how to determine the position of the greatest value on an arbitrary range?

    Hi,
    Please find attached the adjusted file. I think some of your manual input is not precise
    Attached Files Attached Files
    Last edited by Limor_OP; 03-21-2021 at 04:09 PM.

  15. #15
    Registered User
    Join Date
    02-23-2004
    Location
    helsinki, finland
    MS-Off Ver
    2016
    Posts
    59

    Re: how to determine the position of the greatest value on an arbitrary range?

    super thanks. this works.

  16. #16
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105
    Great. You're welcome.

+ 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: 6
    Last Post: 11-17-2020, 01:31 PM
  2. Determine Quartile By Cell Value and Not Position
    By JohnnyR38 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2020, 07:30 PM
  3. Determine position of a number in an array
    By megaiooo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2013, 02:39 AM
  4. Replies: 0
    Last Post: 10-19-2012, 11:12 AM
  5. Replies: 7
    Last Post: 06-14-2010, 05:46 PM
  6. Determine position/order of tab(s)
    By jesterea in forum Excel General
    Replies: 14
    Last Post: 02-12-2010, 03:20 PM
  7. how to Determine class position in excel?
    By makhan10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2009, 03:03 AM

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