Help with excel

Copper Contributor
How can i tell excel to take the last value in a column before the “0” that completes the column
10 Replies

@Alexvez01098 

If that's the only 0 in the column, it could be

=INDEX(A:A,MATCH(0,A:A,0)-1)
Yup thanks it worked
What if there’s a zero before in the column?

@Alexvez01098 

It returns the value before first found zero. Why do you use zero as column end, not COUNTA() to calculate the size of the range in the column?

I dont know how to use this one

@Alexvez01098 

In simplest case that's like

image.png

I’m using it to find a time zone descrition. Some of the zone value is 0. I need it to find the last value in my colum before the last zero

@Alexvez01098 

Perhaps you may submit sample file removing sensitive information? Is it something after last zero, is that text or number, etc. ?

I want excel to take the last info before all the zero at the end

@Alexvez01098 

That is another model

image.png

formula is

 

=INDEX(A:A,AGGREGATE(14,6,1/($A:$A=0)/(LEN($A:$A)>0)*ROW($A:$A),1)-1)