hello all, i have a row of 18 numbers that update autmatically and give me a
number increasing by 1 if the statement is true, if false, i get a 0. i would
like to know of a formula that will give me the last number in the string
excluding the 0's.
example is columns BA3:BR3 and in column BS3 i would like to see last number
over 0.
the below example would be after 3 different days of inputs, as you can see
it does not take the 0 but the last whole digit in the string.
your help would be greatly appreciated
thank you
ba bb bc bd be bf bg bg bi bj bk bl bm bn bo bp bq br
bs
0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
0 0 =2
ba bb bc bd be bf bg bg bi bj bk bl bm bn bo bp bq br
bs
0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
3 0 =3
ba bb bc bd be bf bg bg bi bj bk bl bm bn bo bp bq br
bs
0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
3 4 =4
Peo Sjoblom - 01 May 2008 18:37 GMT
Adapt this
=LOOKUP(2,1/((BA3:BR3<>"")*(BA3:BR3<>0)),BA3:BR3)
if there can be no empty cells within you can use
=LOOKUP(2,1/(BA3:BR3<>0),BA3:BR3)

Signature
Regards,
Peo Sjoblom
> hello all, i have a row of 18 numbers that update autmatically and give
> me a
[quoted text clipped - 26 lines]
> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
> 3 4 =4
Tom Hutchins - 01 May 2008 18:49 GMT
Try this array formula (assuming row 1. Change as needed):
=INDEX(A1:R1,1,MAX(--(A1:R1<>0)*COLUMN(A1:R1)))
For an array formula, instead of Enter, you have to press Ctrl + Shift +
Enter. If you do it right, Excel will add curly braces around the formula.
Hope this helps,
Hutch
> hello all, i have a row of 18 numbers that update autmatically and give me a
> number increasing by 1 if the statement is true, if false, i get a 0. i would
[quoted text clipped - 22 lines]
> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
> 3 4 =4
T. Valko - 01 May 2008 18:53 GMT
Try this:
=LOOKUP(2,1/BA3:BR3,BA3:BR3)

Signature
Biff
Microsoft Excel MVP
> hello all, i have a row of 18 numbers that update autmatically and give
> me a
[quoted text clipped - 26 lines]
> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
> 3 4 =4
Bob Phillips - 01 May 2008 19:04 GMT
Doesn't work if the last value is < 1 but > 0

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Try this:
>
[quoted text clipped - 30 lines]
>> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
>> 3 4 =4
T. Valko - 01 May 2008 19:16 GMT
This should take care of that:
=LOOKUP(1E100,1/BA3:BR3,BA3:BR3)

Signature
Biff
Microsoft Excel MVP
> Doesn't work if the last value is < 1 but > 0
>
[quoted text clipped - 33 lines]
>>> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
>>> 3 4 =4
Joe - 02 May 2008 02:37 GMT
thank you all for your help, the first one i tried and its good. i have been
trying to figure that out for a few months now and was getting nowhere. keep
up the good work.
Joe
> This should take care of that:
>
[quoted text clipped - 37 lines]
> >>> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
> >>> 3 4 =4
Ron Rosenfeld - 02 May 2008 03:12 GMT
>Doesn't work if the last value is < 1 but > 0
While your statement is true, I don't see how that would occur given the OP's
description.
--ron
joe - 20 Aug 2008 03:21 GMT
joe test
> hello all, i have a row of 18 numbers that update autmatically and give me a
> number increasing by 1 if the statement is true, if false, i get a 0. i would
[quoted text clipped - 22 lines]
> 0 1 2 3 4 5 6 7 8 0 1 2 3 0 1 2
> 3 4 =4