Find First Non-Blank in a Range :-
Let's suppose you have a range as in our example, C2:H2, C3:H3 and so on.. And in each range , you want first non-blank value.
For that, you can use formula:
=INDEX(C2:H2,MATCH(FALSE,ISBLANK(C2:H2),0))
Lets break the formula for better understanding:
1) ISBLANK(C2:H2) >> It brings the result as True or False.
Let's suppose you have a range as in our example, C2:H2, C3:H3 and so on.. And in each range , you want first non-blank value.
For that, you can use formula:
=INDEX(C2:H2,MATCH(FALSE,ISBLANK(C2:H2),0))
Lets break the formula for better understanding:
1) ISBLANK(C2:H2) >> It brings the result as True or False.
2) MATCH(FALSE,ISBLANK(C2:H2),0)) >> Here , we are using match function to match the False with isblank as we have to find not blank cell value.
0 ('zero'), represent Exact match.
0 ('zero'), represent Exact match.
It will give you the position of first non-blank cell.
3) After that index function gives you relative position cell value.
INDEX(C2:H2,MATCH(FALSE,ISBLANK(C2:H2),0))
INDEX(C2:H2,MATCH(FALSE,ISBLANK(C2:H2),0))
Thanks!!
Keep Practicing!!
Keep Practicing!!
No comments:
Post a Comment