K
kcc
I'm trying to do a match to find a number equal or larger than
an input value. Since the values in the table are ascending I
need to reverse them to use a -1 Match type.
I've got a half dozen tricks that work. What I would like to
find out is why one in particular doesn't work.
A simplified example:
A1:J1 contains the values 2, 4,...,20.
A2 is the look up value. (eg 15)
A3 is =MATCH(A2,OFFSET(J1,0,1-ROW(Count!1:10)),-1)
where count is a blank sheet to return the numbers from 1 to 10.
I can see that the offset returns the array in reverse order which
is what I want. The Match however returns 1 for any A2<=20
and #N/A otherwise, which indicates to me that only the first
element of the offset array is passed to the Match.
Entering it as an array formula doesn't seem to effect how it works.
MATCH(15,{20;18;16;14;12;10;8;6;4;2},-1) returns 3 as I
would expect and the components of my formula evaluate to
the same values so I would think I would get the same result.
Any ideas that do not require sorting, reserving the array into cells
first, or doing a Type 1 match and adding 1 would also be welcome.
Thanks
kcc
an input value. Since the values in the table are ascending I
need to reverse them to use a -1 Match type.
I've got a half dozen tricks that work. What I would like to
find out is why one in particular doesn't work.
A simplified example:
A1:J1 contains the values 2, 4,...,20.
A2 is the look up value. (eg 15)
A3 is =MATCH(A2,OFFSET(J1,0,1-ROW(Count!1:10)),-1)
where count is a blank sheet to return the numbers from 1 to 10.
I can see that the offset returns the array in reverse order which
is what I want. The Match however returns 1 for any A2<=20
and #N/A otherwise, which indicates to me that only the first
element of the offset array is passed to the Match.
Entering it as an array formula doesn't seem to effect how it works.
MATCH(15,{20;18;16;14;12;10;8;6;4;2},-1) returns 3 as I
would expect and the components of my formula evaluate to
the same values so I would think I would get the same result.
Any ideas that do not require sorting, reserving the array into cells
first, or doing a Type 1 match and adding 1 would also be welcome.
Thanks
kcc