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:
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.
Comments
Post a Comment