+ Reply to Thread
Results 1 to 3 of 3

Thread: Maximum of Selected Range

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Maximum of Selected Range

    I need a function that will return whether or not (in binary form-either yes/no or 0/1) a value is the maximum for a range of codes that are equivalent to one another. For example, if codes in column A are identical, a 0/1 or yes/no must be returned in column C indicating whether or not the corresponding value in column B is the maximum for the identical A column codes. I attached a sample xls of what I'm talking about.

    My spreadsheet contains hundreds of thousands of rows, so I do not have the time to manually select the ranges myself.

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,958

    Re: Maximum of Selected Range

    In C2 use the formula =B2=MAX(INDEX($B$2:$B$20 *--($A$2:$A$20=A2),0)) and copy down.

    That will return TRUE or FALSE, if you want something different then encode it in an IF statement, e.g. =IF(B2=MAX(INDEX($B$2:$B$20 *--($A$2:$A$20=A2),0)),"Yes","No")

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Maximum of Selected Range

    You're a life saver Andrew! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0