+ Reply to Thread
Results 1 to 3 of 3

selecting a range based on name

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    selecting a range based on name

    Hello,
    I am trying to do the following.

    Column A, Column B
    John, 2
    John, 3
    John, 1
    Max, 1
    Max, 10
    ..

    In column C, I would like Excel to select the maximum value from column B for each individual. Is there a way to do this?
    Thanks for any help.

  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: selecting a range based on name

    =MAX(INDEX(($A$2:$A$40=D2)*$B$2:$B$40,0)) where d2 holds a name
    "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
    Registered User
    Join Date
    09-06-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: selecting a range based on name

    That worked. Thanks a lot!

+ 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. Selecting Range of Cells based on Criteria
    By gmclauchlan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2011, 12:19 PM
  2. Selecting a column range based
    By dems in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2010, 11:47 AM
  3. Selecting Range based on integer
    By odyeiop in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-15-2009, 10:29 PM
  4. Selecting a range based on cell value
    By alpha1980 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-26-2008, 07:19 AM
  5. Selecting range based on values
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2005, 02:06 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