Hi all,
A colleague of mine has an issue where he is trying to find and return the first instance of a non 0 in an array of ca60 cells.
At first we thought he may be able to use an nested if statement. but it appears that there are too many cells to be able to do this.
Does anyone know of an elegant solution that we could use?
Many thanks,
Rich
Try:
=INDEX(A1:A60,MATCH(TRUE,A1:A60>0,0))
adjust ranges to suit and confirm the formula with CTRL+SHIFT+ENTER not just ENTER...you will see { } brackets appear around the 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.
I've passed your suggestion on, many thanks.
Rich
That worked a treat.
Thanks.
Rich
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks