+ Reply to Thread
Results 1 to 2 of 2

to compare among a set of values and to find the maximum among them

Hybrid View

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    calicut
    MS-Off Ver
    Excel 2003
    Posts
    7

    to compare among a set of values and to find the maximum among them

    I have an excel sheet with column A as ID. For a particular ID say 1, there may be a number of probabilities shown in column B. I need value 1 for the greater probability for the same ID and 0 for the rest ( shown as result in column C). A sample is shown in the attached excel sheet. please help me with this......
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: to compare among a set of values and to find the maximum among them

    In C2 use this array formula

    =IF(B2=MAX(IF($A$2:$A$19=A2,$B$2:$B$19)),1,0)

    Confirm woith Ctrl+Shift+Enter and not jus Enter

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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