+ Reply to Thread
Results 1 to 5 of 5

Function to Locate Largest Value in a Column

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Tallahassee, Florida
    MS-Off Ver
    Excel 2007
    Posts
    18

    Question Function to Locate Largest Value in a Column

    Hey again everyone.

    I have a pretty easy [for you guys, it should be] request, although I'm too braindead to figure it out.

    I have a column ("B"), and in that column, a number is being entered called "Completed to Date". The number grows, and in cell B14 I want it to automatically find the largest number in that column and divide it by a cell on a different sheet. I'm only having problems with it finding the larger number, I can do the division part.

    Rereading that, it's rather messy and hard to understand. I'll give an example.

    Completed to Date
    5522
    18901
    31715
    39786

    I want cell B14 to automatically find the highest value in that column [in this case, 39786] and divide it by [Tracking!K6].

    My only idea to accomplish this so far was to have a massive IF function:
    =IF(B12=0,IF(B11=0,IF(B10=0,IF(B9=0,IF(B8=0,IF(B7=0,IF(B6=0,IF(B5=0,IF(B4=0,=B3,=B4),=B5),=B6),=B7),=B8),=B9),=B10),=B11),=B12)

    I'm sure it would work if I had done it right, but I think I'm missing a part of the function at least somewhere.
    Last edited by rtelectric; 06-29-2010 at 08:28 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function to Locate Largest Value in a Column

    =max(b1:b13)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Function to Locate Largest Value in a Column

    use the MAX() function

    E.g. =MAX(B1:B13)/Tracking!K6
    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.

  4. #4
    Registered User
    Join Date
    05-12-2010
    Location
    Tallahassee, Florida
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Function to Locate Largest Value in a Column

    Well that was bloody simple.

    Aren't I a fool?

    Thanks, Martin.

  5. #5
    Registered User
    Join Date
    05-12-2010
    Location
    Tallahassee, Florida
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Function to Locate Largest Value in a Column

    And thanks for your aid as well NBVC, although you were perhaps 15 seconds late.

+ 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