array formulas - Find four adjacent empty cells in Excel -
i have problem finding empty cells in table. want find empty parts of table (empty part - 4 or more empty cells in row).
table:
+------+------+------+------+------+------+------+------+------+------+ | name | day1 | day2 | day3 | day4 | day5 | day6 | day7 | day8 | day9 | +------+------+------+------+------+------+------+------+------+------+ | | 1 | 8 | 2 | 7 | | 8 | 4 | | 1 | | b | 2 | 8 | 4 | | | | | 5 | 7 | | c | 2 | | 6 | 7 | | 8 | 9 | 7 | | | d | 4 | | | | | | | | 8 | +------+------+------+------+------+------+------+------+------+------+ the answer example should this:
b empty day4 - day7 d empty day2 - day8 i guess need use array formula, not have experience that...
i appreciate or comments.
thanks!
assuming headers in a1:j1 , data in b3:j3. check each row itself, formula this:
=if(min(len(b3:g3&c3:h3&d3:i3&e3:j3)),"",index(b$1:g$1,1,match(0,len(b3:g3&c3:h3&d3:i3&e3:j3),0))&" - "&index(b$1:j$1,1,match(1,(index(b3:g3,1,match(0,len(b3:g3&c3:h3&d3:i3&e3:j3),0)):i3="")*(index(b3:g3,1,match(0,len(b3:g3&c3:h3&d3:i3&e3:j3),0)+1):j3<>""),0)+match(0,len(b3:g3&c3:h3&d3:i3&e3:j3),0)-1)) would do.
this array formula , must confirmed ctrl+shift+enter!
after can auto fill down formula. , show each row (if 4+ cells in row empty) headers of first , last empty cell of range. cells not need blank (empty stings work).
to automatically collapse have output want it, need array array formula again (which not possible parts , consume lots of resources.

Comments
Post a Comment