+ Reply to Thread
Results 1 to 4 of 4

MAX IF not equal to result in another cell

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    95

    MAX IF not equal to result in another cell

    Hi

    Could someone help me with this one (or just tell me it's not possible)?

    I have figures in one column that I want the MAX value of but *only* if the value does not match the value in another corresponding column.

    For example
    COL 1/COL 2
    4 / 3
    6 / 6
    5 / 7
    2 / 1

    The desired result of the above would be 5. It is the highest number in Col1 that does not match the number directly next to it in Col2. 6 is not the max because it matches the value directly next to it in Col2

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,553

    Re: MAX IF not equal to result in another cell

    Use this array formula:

    =MAX(IF(A1:A5<>B1:B5,A1:A5))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-03-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    95

    Re: MAX IF not equal to result in another cell

    Brilliant. Thanks so much. I'm familiar with array formulas, I just couldn't figure the correct syntax.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,553

    Re: MAX IF not equal to result in another cell

    You're welcome!! The array formula thing is one of a few canned replies that I use. Lots of people aren't familiar with arrays, so a wee reminder often helps...

+ 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: 3
    Last Post: 01-30-2014, 07:49 PM
  2. Replies: 9
    Last Post: 12-09-2012, 08:37 PM
  3. Do Loop Until result equal 0
    By MaxJan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-27-2012, 06:03 PM
  4. COUNTIF until the result is greater than or equal to a specified number.
    By JSB_2011 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2012, 11:58 PM
  5. Make Cell equal to result of other cell formula
    By Davo in forum Excel General
    Replies: 1
    Last Post: 08-12-2011, 06:57 PM
  6. when is equal not equal - cell reference results to blank cell
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 09:44 AM
  7. [SOLVED] If the result of a formula is negative make equal to zero
    By Nrippe in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-12-2006, 05:45 PM
  8. [SOLVED] formula result #value! needs to equal zero for average calculation
    By LauraRose in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2006, 02:20 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