+ Reply to Thread
Results 1 to 8 of 8

How to find highest number in a column

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to find highest number in a column

    I wondered if someone could help me?

    I need to find out the highest number in a column of figures, however if the column has the same number in multiple cells it needs to look at the column adjacent to it to which is high than the other. Plus there are names in the first column which I would need to link, hope this is clear 

    Here is an example

    Col A Col B Col C

    Name Pounds Ounces

    Clive 2 10
    Tom 3 10
    Charlie 3 8
    Nick 2 14
    Sam 1 15



    Highest would be Tom 3 pounds 10 ounces

    Can anyone help?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: How to find highest number in a column

    One way, avoiding using array formulae, is to put this formula in D1:

    =B1+C1/16

    and copy down. Then you can find the name using this formula:

    =INDEX(A:A,MATCH(MAX(D:D),D:D,0))

    Hope this helps.

    Pete

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to find highest number in a column

    Actually, a single-cell solution doesn't have to be an array formula:

    =INDEX(A2:A1000,MATCH(MAX(INDEX(B2:B1000+C2:C1000/16,,)),INDEX(B2:B1000+C2:C1000/16,,),0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: How to find highest number in a column

    welcome to the forum, Diane R. assuming data in A2:C6, try this array formula:
    =INDEX(A2:A6,MATCH(MAX(B2:B6*16+C2:C6),B2:B6*16+C2:C6,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    assuming the above is in cell E2 & if you need the weight, just do a VLOOKUP
    =VLOOKUP(E2,A2:C6,2,0)
    that gives you the pounds. change the red one to 3 to give you ounces

    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

  5. #5
    Registered User
    Join Date
    10-18-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to find highest number in a column

    Quote Originally Posted by XOR LX View Post
    Actually, a single-cell solution doesn't have to be an array formula:

    =INDEX(A2:A1000,MATCH(MAX(INDEX(B2:B1000+C2:C1000/16,,)),INDEX(B2:B1000+C2:C1000/16,,),0))

    Regards
    Hello,

    This works great thank you for your help, including everyone else who contributed

    If I wanted to copy the formula but leave the name column as a constant, how would I change it I have tried using $ but cannot get it to work. This is the formula I currently have


    =INDEX(A5:A33,MATCH(MAX(INDEX(J5:J33+K5:K33/16,,)),INDEX(J5:J33+K5:K33/16,,),0))

    Plus, if I want to put the weight that corresponds to the name below it would I need to use a VLOOKUP as suggested by benishiryo

    Thanks

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to find highest number in a column

    Hi,

    When you say you want to copy the formula, what exactly do you mean? Are you wanting to adapt it to get different results? Or just paste it somewhere else but without Excel changing the cell references?

    =INDEX($A$5:$A$33,MATCH(MAX(INDEX($J$5:$J$33+$K$5:$K$33/16,,)),INDEX($J$5:$J$33+$K$5:$K$33/16,,),0))

    making all the range references absolute, would do that, though you say that you've already tried that (?)

    Regards

  7. #7
    Registered User
    Join Date
    10-18-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to find highest number in a column

    Thanks, that's better, I had put the $ signs in the wrong place. I just needed the constant around the 'A' Columns

    Regards

    Diane

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to find highest number in a column

    Ah, ok. Glad you got it to work.

    Regards

+ 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: 1
    Last Post: 06-10-2013, 07:08 PM
  2. Find highest revision number in one column of a item number in another column
    By Tasiast in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2013, 01:03 PM
  3. Find highest number of sales in a date range and show seller and sale number
    By audiofreak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 03:34 AM
  4. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  5. Replies: 3
    Last Post: 08-10-2006, 11:40 PM

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