+ Reply to Thread
Results 1 to 4 of 4

Finding the largest value

  1. #1
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151

    Finding the largest value

    Hi

    I need a formula to find the largets value for a firm. This is best shown by an example. I have a list of firms 3000 firms, each firm has a number of shareholders witha percentage: e.g

    Firm %owned
    1 20
    1 30
    1 50
    2 0.3
    2 20
    2 13
    3 100
    4 20
    4 2
    4 25


    I need a formula that works out the largest shareholder.... in my example it would look like:

    Firm Largest Owner
    1 50
    2 20
    3 100
    4 25


    Thanks very much for your help!!!

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Finding the largest value

    Use this array formula

    =MAX(IF(A2:A20=firmid,B2:B20))

  3. #3
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Finding the largest value

    try

    =INDEX(MAX((A2:A20=1)*(B2:B20)),0)
    or
    =SUMPRODUCT(MAX(--(A2:A20=1),(B2:B20)))
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  4. #4
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151

    Re: Finding the largest value

    That's worked perfectly, thankyou!

+ 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