![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
I am taking a value from one cell and using Vlookup trying to find a value in a table which is greater than it. Vlookup always defaults to a lower value than the one I want!
Is there an IF function to attach to the Vlookup code to get the next value along, or is there a different approach that anyone can suggest? |
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
You could use...
=OFFSET($B$1,MATCH(A1,$B$1:$B$6,0),1) ...where your lookup table consists of 2 columns beginning in cell B1. Suppose your table contained... {1,"A" ;2,"B" ;3,"C" ;4,"D" ;5,"E" ;6,"F"} ...and cell A1 contained 2. This formula would return "C". |
|
|
|
|
|
#3 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
But zero as the Match_Type argument for match means find and exact match, so if the number doesn't exist you get the dreaded N/A
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|