+ Reply to Thread
Results 1 to 5 of 5

Return relative position of the largest number in an array

  1. #1
    Registered User
    Join Date
    08-11-2011
    Location
    HCM
    MS-Off Ver
    Excel 2007
    Posts
    15

    Return relative position of the largest number in an array

    Hi there

    i have the following array of number in cell D3 to D7 : 1 2 0 -1 -2

    Then in cell F3 to F8, i need a function to search the above Array for the largest number, then return the position of that number. If the position is the same, then return true, if not, return false.

    Sorry for my bad english, if it is not clear enough, please check the attach file.

    Thanks much everyone
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Return relative position of the largest number in an array

    hi DanielMinh, try:
    =MAX($D$3:$D$7)=D3

    to find the position:
    =MATCH(MAX($D$3:$D$7),$D$3:$D$7,0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Return relative position of the largest number in an array

    If the position is the same, then return true, if not, return false
    Please Login or Register  to view this content.
    Array for the largest number, then return the position of that number
    Please Login or Register  to view this content.
    Edit:
    Ops, my answer is late. Is same as benishiryo did.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Registered User
    Join Date
    10-30-2012
    Location
    Modlin , Poland
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    42

    Re: Return relative position of the largest number in an array

    I'm nor sure you want to get sth like that, but I hope this is felpful
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-11-2011
    Location
    HCM
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Return relative position of the largest number in an array

    Thanks all for your answer. That is very fast ^^

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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