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.: example table topic attempt

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

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -