Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
match function?
Why doesn't the match function work if the list is out-of-order?
Is there a function that will find the FIRST VALUE IN A LIST (EVEN IF IT IS OUT-OF-ORDER) that is the smallest value greater than or equal to the specified value? For example, given in cells A1:A4: 2 3 5 1 How do I ask for the first value that comes along that is greater than or equal to 4? So that the return value would be "3" since 5 is in the "3"-position of the list. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
match function?
Here you go
=MATCH(SMALL(A1:A20,COUNTIF(A1:A20,"<"&D1)+1),A1:A 20,0) with 4 in D1 hardcoded =MATCH(SMALL(A1:A20,COUNTIF(A1:A20,"<4")+1),A1:A20 ,0) -- Regards, Peo Sjoblom -- Regards, Peo Sjoblom "Matt" wrote in message ... Why doesn't the match function work if the list is out-of-order? Is there a function that will find the FIRST VALUE IN A LIST (EVEN IF IT IS OUT-OF-ORDER) that is the smallest value greater than or equal to the specified value? For example, given in cells A1:A4: 2 3 5 1 How do I ask for the first value that comes along that is greater than or equal to 4? So that the return value would be "3" since 5 is in the "3"-position of the list. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can we get unique values in match function for same match key. | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Match as well as does not match array function | Excel Discussion (Misc queries) | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |