Re: Finding the nearest match without reusing results
- From: David Hilberg <david.hilberg@xxxxxxxxx>
- Date: Sat, 15 Sep 2007 10:32:14 -0000
In the previous post I meant to write IfError, not IsError.
- David
*Current test formula, omitting the IsError function*
=INDEX($A$9:$A$12,MATCH(
MIN(
($B5=$B$9:$B$12)*ABS($C5-$C$9:$C$12)*
(MMULT(--($A$9:$A$12=TRANSPOSE($E$1:$E4)),ROW($E$1:$E4)^0)=0)+
999999999*(($B5<>$B$9:$B$12)+
(MMULT(--($A$9:$A$12=TRANSPOSE($E$1:$E4)),ROW($E$1:$E4)^0)>0))
),
($B5=$B$9:$B$12)*ABS($C5-$C$9:$C$12)*
(MMULT(--($A$9:$A$12=TRANSPOSE($E$1:$E4)),ROW($E$1:$E4)^0)=0)+
111111111*(($B5<>$B$9:$B$12)+
(MMULT(--($A$9:$A$12=TRANSPOSE($E$1:$E4)),ROW($E$1:$E4)^0)>0)),
0))
*Formula*
IsError (Index( StoresInTable2, Match( Min(UnusedStore SalesDiffs
across CurrentState), (UnusedStore SalesDiffs across CurrentState'),
exactmatch)), "No Match")
*Errors*
IsError returns "No Match" for no match or for general snafu. Could
use IsNA to trap #N/A caused by no match, but not hide other errors
(e.g. #VALUE! caused by not array-entering formula). IsNA would have
to be nested as If( IsNA(formula), "No Match", formula), duplicating
the long Index formula.
.
- References:
- Re: Finding the nearest match without reusing results
- From: David Hilberg
- Re: Finding the nearest match without reusing results
- From: David Hilberg
- Re: Finding the nearest match without reusing results
- From: David Hilberg
- Re: Finding the nearest match without reusing results
- From: goofy11
- Re: Finding the nearest match without reusing results
- From: goofy11
- Re: Finding the nearest match without reusing results
- From: David Hilberg
- Re: Finding the nearest match without reusing results
- From: goofy11
- Re: Finding the nearest match without reusing results
- From: David Hilberg
- Re: Finding the nearest match without reusing results
- Prev by Date: Re: Finding the nearest match without reusing results
- Next by Date: Re: Macro to delete rows
- Previous by thread: Re: Finding the nearest match without reusing results
- Next by thread: Re: Finding the nearest match without reusing results
- Index(es):
Relevant Pages
|