Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel function
How can i find the nearest value to a value in an array or column
i.e. find nearset to 14 in column of vlaue 1,5,8,13,16,18 need this to come back with value of 13 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel function
=INDEX(A1:A6,MATCH(MIN(ABS(A1:A6-14)),(ABS(A1:A6-14)),0)) entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Holdey" wrote in message ... How can i find the nearest value to a value in an array or column i.e. find nearset to 14 in column of vlaue 1,5,8,13,16,18 need this to come back with value of 13 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel function
If the column is always sorted ascending, you can use VLOOKUP to
return the next lowest value to lookup. =VLOOKUP(14,{1;5;8;13;16;18},1,TRUE) will return 13. If A1=14 and B1:B6={1;5;8;13;16;18} then you can use this function: =VLOOKUP(A1,$B$1:$B$6,1,TRUE) On Dec 12, 11:16 am, Holdey wrote: How can i find the nearest value to a value in an array or column i.e. find nearset to 14 in column of vlaue 1,5,8,13,16,18 need this to come back with value of 13 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
Excel 2002: Auto Sum function not working in large Excel file | Excel Discussion (Misc queries) | |||
challenge! javascript function into excel function | Excel Worksheet Functions | |||
Excel Workday Function with another function | Excel Discussion (Misc queries) | |||
Can you nest a MID function within a IF function in Excel | Excel Worksheet Functions |