> If you want the value of the last numeric value in the column range....
>
[quoted text clipped - 25 lines]
> >
> > Any help offered would be appreciated.
Through a fortunate quirk in the LOOKUP function, if you use it to find a
value that is greater than any other value in the list...it returns the last
item of that type (text or numeric) in the list. Excel's maximum possible
number is 9.99999999999999E307, but I use 10^99 to avoid all that typing.
If you were looking for the last text value in a column range, this would
work:
=LOOKUP(REPT("z",255),C2:C20)
Note: REPT("z",255) returns a string of 255 z's
Regarding Peo's solution, the COUNT function returns the count of numeric
cells. As long as the series of numeric values is contiguous (no blanks or
text within the list), it returns the position of the last numeric cell
within the list.
In Peo's application, the INDEX function returns the n-th item in C2:C10000,
where "n" is the count of numeric cells.
I hope that helps.
(Post back if you have more questions)
***********
Regards,
Ron
XL2002, WinXP
> Ron,
>
[quoted text clipped - 36 lines]
> > >
> > > Any help offered would be appreciated.
Pank - 03 Apr 2007 18:08 GMT
Ron,
Thank U for explaining. So much to learn and put into pratice.
Regards
> Through a fortunate quirk in the LOOKUP function, if you use it to find a
> value that is greater than any other value in the list...it returns the last
[quoted text clipped - 62 lines]
> > > >
> > > > Any help offered would be appreciated.
Ragdyer - 04 Apr 2007 01:18 GMT
"<<<Through a fortunate quirk in the LOOKUP function>>>"
I wouldn't exactly describe it as a "quirk".<g>
I believe it's more like a computer program "blindly" following the code of
the author.
Since Lookup() is *supposed* to be properly used on *only* an ascending
ordered list,
*AND*
If Lookup() can't find the lookup value, it uses the largest value in the
array (list) that is less than or equal to lookup value,
Lookup() assumes the *largest* value is the *LAST* value, since it is
programmed to believe the list is sorted, ascending.
And we make the lookup value larger then any number that would *normally*
exist in the list:
10^99 - 99^99
Or we make it as large as any number which *can* exist in the list:
9.99999999999999E307

Signature
Regards,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
> Through a fortunate quirk in the LOOKUP function, if you use it to find a
> value that is greater than any other value in the list...it returns the
[quoted text clipped - 72 lines]
>> > >
>> > > Any help offered would be appreciated.
Ron Coderre - 04 Apr 2007 02:19 GMT
You didn't like "quirk", RD?
It seems like we both described the same function behavior.
However, I apologize to LOOKUP() if I disparaged it in any way. <vbg>
Best Regards,
Ron
> "<<<Through a fortunate quirk in the LOOKUP function>>>"
>
[quoted text clipped - 97 lines]
>>> > >
>>> > > Any help offered would be appreciated.
Ragdyer - 04 Apr 2007 18:25 GMT
Come to think of it, you're label is probably appropo.<bg>

Signature
Regards,
RD
---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
> You didn't like "quirk", RD?
>
[quoted text clipped - 109 lines]
>>>> > >
>>>> > > Any help offered would be appreciated.