Hi all
Vlookup formulas: does the lookup range have be in descending order.
Thanks in advance
Short answer is no.
But, it depends on the application.
Typically, you only need to have the data sorted when you're looking up numeric values and need a "closest" match if an exact match doesn't exist.
For example, an income tax table. There's a range for the lookup value to fall into so there may not be an exact match:
From 0 to 9,999.99 = Rate1
From 10,000 to 19,999.99 = Rate2
From 20,000 to 39,999.99 = Rate3
From 40,000 to >40,000 = Rate4
In an application like this then the data would need to be sorted in ascending order like this:
Book1 |
---|
|
---|
| A | B |
---|
2 | 0 | Rate1 |
---|
3 | 10000 | Rate2 |
---|
4 | 20000 | Rate3 |
---|
5 | 40000 | Rate4 |
---|
|
---|