+ Reply to Thread
Results 1 to 2 of 2

Large function excluding a specific value

  1. #1
    Registered User
    Join Date
    03-07-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    55

    Large function excluding a specific value

    I have the following large function that finds the next number (in the range A1:I1) below the value in (L1). E.g. range: 1,4,8,12,32,50,51,55,61 - L1=40 - so this would output 32 which is the next number in the range below 40.

    =LARGE(A1:I1,COUNTIF(A1:I1,">"&L1)+1)

    I need to exclude a specific value that would reside in cell M1, e.g. 32, so given the example above the large formula would output 12 because the next value below 40, excluding 32, is 12. Can anyone help exclude a specific value without compromising what this formula already does?

    Appreciation in advance

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

    Re: Large function excluding a specific value

    Try:

    =LARGE(IF(A1:I1<>M1,A1:I1),COUNTIF(A1:I1,">"&L1)+1)

    but you have to confirm this with CTRL+SHIFT+ENTER not just ENTER as it is now an Array formula.
    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