+ Reply to Thread
Results 1 to 2 of 2

Finding the largest number in an array which does not correspond to x

Hybrid View

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2003
    Posts
    5

    Finding the largest number in an array which does not correspond to x

    Hi,

    I'm trying to find the largest number in an array which does not correspond to x, which in my case equals 2958465, with the following formula:

    {=IF(B39="";"";IF(MAX(IF($H$4:$H$2500=H39;$N$4:$N$2500))=2958465;LARGE(IF($H$4:$H$2500=H39;$N$4:$N$2500);2);IF(LARGE(IF($H$4:$H$2500=H39;$N$4:$N$2500);2)=2958465;LARGE(IF($H$4:$H$2500=H39;$N$4:$N$2500);5);MAX(IF($H$4:$H$2500=H39;$N$4:$N$2500)))))}

    My thought behind it was that the number which it should not correspond is the largest. However, in some cases it turned out to be also the 2nd and 3rd largest.

    Seeing as this is obviously not working, could anyone please help me with simply finding "the largest number which is not equal to x"?

    Thank you so much in advance!

    M

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding the largest number in an array which does not correspond to x

    How about?

    =IF(B39="";"";IF(MAX(IF($H$4:$H$2500=H39;IF($N$4:$N$2500<>2958465;$N$4:$N$2500)))))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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.6.0 RC 1