excel formula - Right to Left Match Count Non-Blank Cells -
how modify formula:
=match(1,--(aa1:ah1=""),0)-1
to count right left? want count number of non-blank cells until blank cell, need starting right left.
the array formula (confirmed ctrl+shift+enter)
=max(if(len(aa1:ah1)<>0,column(aa1:ah1)))
should give index of column containing last non-blank cell, in row multiple intercalated blank cells.
the array formula (confirmed ctrl+shift+enter)
=max(if(len(aa1:ah1)=0,column(aa1:ah1)))
should give index of column containing last blank cell, in row multiple intercalated blank cells.
you use values calculate desired results.
i.e.:
to put together:
=max(if(len(aa1:ah1)<>0,column(aa1:ah1))) - max(if(len(aa1:ah1)=0,column(aa1:ah1)))
should give desired result.
Comments
Post a Comment