+ Reply to Thread
Results 1 to 5 of 5

In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Spain
    MS-Off Ver
    Excel Mac 2008
    Posts
    14

    In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

    I have this formula:
    =INDEX($B$1:$G$1;MATCH(MAX(B2:G2);B2:G2;0))

    It looks for the maximum value in a row (all votes from a polling station) and returns the index (header of the maximum value column = name of the most voted party).

    In case there were 2 or more repeated maximum values in a range/row, what can I add to the formula to receive a warning or print the 2 maximum values?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

    how about this... =IF(COUNTIF(B2:G2;MAX(B2:G2))>1;"warning";INDEX($B$1:$G$1;MATCH(MAX(B2:G2);B2:G2;0)))
    (I think I changed all the commas to semicolons for your settings.)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

    Try array entering this in cell A1 or other and fill down until you get blanks. You will need to change the "," comma argument separators to ";" for your regional settings.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    11-21-2012
    Location
    Spain
    MS-Off Ver
    Excel Mac 2008
    Posts
    14

    Re: In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

    Thank you both for your replies. They've been very useful to solve my problem
    (the first one is OK to check for repeated values; the 2nd has been trickier for me, as I think I've not converted correctly the formula to my regional configuration (and my old Mac excel.)

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: In a formula MATCH a maximun value, how to alert about a tie (repated max value)?

    RE the second one:

    Please try this. I believe it is correct though I can not test it at my end.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 10-10-2013, 05:14 AM
  2. Want Closed Excel workbook to alert me when celll or cells with date match todays date
    By morrisgnew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2013, 08:37 AM
  3. [SOLVED] Macro Request to find and remove repated value within the cell
    By ganeshinscribe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2012, 08:27 AM
  4. New message alert... doesn't ALERT me very well
    By Xx7 in forum Outlook Formatting & Functions
    Replies: 6
    Last Post: 07-20-2011, 03:54 PM
  5. Calling the address of a maximun value
    By izabennett in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2009, 10:24 AM
  6. Extend count repated
    By jacome in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2008, 10:01 AM
  7. [SOLVED] Can I have a worksheet link for minimum and maximun axis value
    By MAude in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2006, 12:35 PM
  8. Finding the maximun value lower than the maximun
    By brunces in forum Excel General
    Replies: 2
    Last Post: 04-28-2005, 08:19 AM

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