Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Using 'lookup' or 'vlookup' I can determine an exact match value or the next
SMALLEST value, but not the next LARGEST value. How to I return the next largest value? ex. I want to find the value of "2.2" or the next greater value in a table and my table looks like this: 1 1.5 2 2.5 3 The answer I'm looking for would be "2.5" but lookup returns "2". Thanks. Jim |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can use the MATCH( ) function to look for either an exact match, or
the next smallest (data needs to be sorted in ascending order) OR the next largest (data needs to be sorted in descending order). This is controlled by the match_type parameter (the third parameter) being set to -1. You can use INDEX( MATCH( ) ) in a similar way as VLOOKUP( ). Hope this helps. Pete |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Jimd wrote...
.... I want to find the value of "2.2" or the next greater value in a table and my table looks like this: 1 1.5 2 2.5 3 The answer I'm looking for would be "2.5" but lookup returns "2". Assuming you don't want to resort this list, which I'll assume is named LST, and your value sought, 2.2, is in a cell named v, try this formula. =INDEX(LST,MATCH(v,LST)+(VLOOKUP(v,LST,1)<v)) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this. The following data is in range B3:B6 1 2 3 2.5 In cell B8, type 2.2. In cell E8 or wherever, enter te following array formula (Ctrl+Shift+Enter) =MAX(IF((B3:B6B8)*(B3:B6<INT(B8)+1),B3:B6)) If you require any clarifications, please feel free to contact me at "Jimd" wrote: Using 'lookup' or 'vlookup' I can determine an exact match value or the next SMALLEST value, but not the next LARGEST value. How to I return the next largest value? ex. I want to find the value of "2.2" or the next greater value in a table and my table looks like this: 1 1.5 2 2.5 3 The answer I'm looking for would be "2.5" but lookup returns "2". Thanks. Jim |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi ,
Are you not looking just for: =LARGE(list;2) ? HTH Sige Ashish Mathur wrote: Hi, Try this. The following data is in range B3:B6 1 2 3 2.5 In cell B8, type 2.2. In cell E8 or wherever, enter te following array formula (Ctrl+Shift+Enter) =MAX(IF((B3:B6B8)*(B3:B6<INT(B8)+1),B3:B6)) If you require any clarifications, please feel free to contact me at "Jimd" wrote: Using 'lookup' or 'vlookup' I can determine an exact match value or the next SMALLEST value, but not the next LARGEST value. How to I return the next largest value? ex. I want to find the value of "2.2" or the next greater value in a table and my table looks like this: 1 1.5 2 2.5 3 The answer I'm looking for would be "2.5" but lookup returns "2". Thanks. Jim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need to retrieve dates from lookup | Excel Discussion (Misc queries) | |||
Another way to lookup data | Excel Worksheet Functions | |||
Lookup Vector > Lookup Value | Excel Worksheet Functions | |||
Lookup function w/Text and Year | Excel Worksheet Functions | |||
double lookup, nest, or macro? | Excel Worksheet Functions |