Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you use Match with a match type of -1? It will provide the position of
the next larger item as long as the table is sorted descending. Along the lines of: If IsError (Application.VLookUp(Mystrng, MyTable, MyCol, False)) Then MyTable.Sort := xlDescending MyPos = Application.Match(Mystrng, MyTable, -1) MyPos would now equal the row within the table. From there you should be able to get the cell address to reference from for your column offset. Mike F "ashoulds" wrote in message ... Is there a way to return the next largest value using a vlookup function when an exact match is not found? As of now, it keeps returning the value that matches or the next smallest value. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to combine Combo Box function with Vlookup function | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION | Excel Worksheet Functions | |||
how do I write a vlookup function within an iserror function so t. | Excel Worksheet Functions | |||
I want to use Vlookup function and AND function in a single formu. | Excel Worksheet Functions |