+ Reply to Thread
Results 1 to 7 of 7

Returning row number from Maximum value

  1. #1
    Registered User
    Join Date
    03-29-2011
    Location
    Hastings, Sussex
    MS-Off Ver
    Excel 2003
    Posts
    5

    Returning row number from Maximum value

    This is the basic layout of what I have:-

    A B C D E F
    1Week Name Prod #1 Prod #2 Prod #3 Total units
    2 26/03/11 Keith 10 8 10 28
    3 Brian 10 10 7 27
    4 Karen 0 21 4 25
    5 Andrew 5 16 2 23
    6 Chris 8 12 4 24

    I'm using =SUM(C2:E2) to add up the individual sales in F, and then using =MAX(F2:F6) to find the highest number (28 in this instance). What I would like to do is have a way of getting the Row number where the highest number is so that I can retrieve the name in that row. I want to display it something like this:- "28 units were sold by Keith this week".
    Obviously, I wouldn't need something like that on a sheet this small, but imagine it containing thousands of cells.

    Thank you for any help you can offer.
    Keith.
    Last edited by KeithMJ; 03-30-2011 at 03:49 PM. Reason: Change of subject title

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Newbie needs help

    To aid in future searches, this site requires relevant titles. In your case maybe "Returning row number from Maximum value" See these rules to avoid further issues;

    http://www.excelforum.com/forum-rule...rum-rules.html

    Thanks.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Newbie needs help

    Keith - welcome to the forum, you can do a combination of index/match or a vlookup to get the results you are looking for, I would recommend uploading some sample in a spreadsheet.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Newbie needs help

    day92, please refrain from responding to threads where a Moderator or senior member has asked the OP to adhere to forum rules, until that issue has been resolved.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    03-29-2011
    Location
    Hastings, Sussex
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Newbie needs help

    Quote Originally Posted by ChemistB View Post
    To aid in future searches, this site requires relevant titles. In your case maybe "Returning row number from Maximum value" See these rules to avoid further issues;

    http://www.excelforum.com/forum-rule...rum-rules.html

    Thanks.
    My apologies. I just wanted to dive straight in with a question and I would have put a title like that if I had known just what it was I needed to do. As I said, I'm new to Excel so please bear with me.
    Last edited by KeithMJ; 03-30-2011 at 04:07 AM.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Returning row number from Maximum value

    Try
    =INDEX($B$2:$B$6,MATCH(MAX($F$2:$F$6),$F$2:$F$6,0))
    Does that work for you?

  7. #7
    Registered User
    Join Date
    03-29-2011
    Location
    Hastings, Sussex
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Returning row number from Maximum value

    Thank you, ChemistB. A bit of fiddling and it worked as I wanted it to. Your reputation has been added to

+ 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