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
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.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks