Re: What formula would give a value of a last negative value in a range? by Harlan
Harlan
Fri Jul 09 07:38:06 CDT 2004
"kcc" <kcconline@comcast.NOSPAM.com> wrote...
>"Harlan Grove" <hrlngrv@aol.com> wrote in message
...
>>=LOOKUP(2,1/(A1:A100<0),A1:A100)
>
>I would have thought the intermittant #DIV/0's would have messed up
>the sort order of the lookup array, but I guess they are ignored.
>Is this a safe construct, or could Excel 2005 start treating #DIV/0
>as a value you might want to look up?
There are a lot of constructs Excel 2005/6/7/? (code name 'Longshot'?) could
screw up, and this is certainly one of them. While MATCH, VLOOKUP and
HLOOKUP could be 'fixed', LOOKUP is unlikely to be touched since online help
almost deprecates its use.