Is there a function which search in the row (cells on the right of the formula cell) and find non-blank cell?
Is there a function which search in the row (cells on the right of the formula cell) and find non-blank cell?
What do you want to do with the information?
This formula returns the position of the first non-blank cell within B1:J1
This formula returns the value of the first non-blank cell in that rangePlease Login or Register to view this content.
Is that something you can work with?Please Login or Register to view this content.
It should be noted that Ron's formulas only work on TEXT data. Won't work on numeric data.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Good catch, Biff...Thanks!
These would work for either text or numeric entries and would ignore text blanks....""
Please Login or Register to view this content.
This will work with numbers and text
=INDEX(B1:J1,MATCH(TRUE,INDEX((B1:J1<>0),),))
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Slight tweak so that formula won't ignore zeros.
(I'm not a fan of omitting the 3rd argument of MATCH of the 2nd/3rd arguments of INDEX...I never remember what the default is :\ )Please Login or Register to view this content.
Well, for that matter, so am I
...but OFFSET doesn't try to match anything one way or another, based on an argument.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks