MikeWeaver
New Member
- Joined
- Jul 23, 2014
- Messages
- 26
I have a range similar to the table below, I would like to find using a formula the first and last nonzero value in the range. I would assume this should be done in two formulas, one to find the first nonzero value, and one to find the last.
[TABLE="width: 500"]
<tbody>[TR]
[TD]0[/TD]
[TD]12[/TD]
[TD]15[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
In this example I would like the formulas to return 2 (position of first nonzero value) and 5 (position of last nonzero value).
Thank you for any help!
[TABLE="width: 500"]
<tbody>[TR]
[TD]0[/TD]
[TD]12[/TD]
[TD]15[/TD]
[TD]0[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
In this example I would like the formulas to return 2 (position of first nonzero value) and 5 (position of last nonzero value).
Thank you for any help!