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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -