excel - Formula that finds the last non blank cell which is greater than zero in a range -


i have slight puzzle excel formula , using in conjunction ibm cognos disclosure management disables vba can't use coded work around normally.

i need formula finds last non blank cell greater 0 in range (single row)

so instance:

enter image description here

in example i’d expect col f returned value of 6.

this formula works other way round:

=index(a1:i1,match(1,index(1-isblank(a1:i1),1,0),0)

but can’t figure out how flip goes other side. count value of 0 want ignore.

does body have idea how achieve this?

thanks

the value given by:

=lookup(2,1/(1:1>0),1:1) 

the location (column number) given array formula:

=if(counta(1:1)=0,"",max((1:1<>0)*(column(1:1)))) 

array formulas must entered ctrl + shift + enter rather enter key.

enter image description here


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -