Vlookup clarifiication

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi all :confused:

Vlookup formulas: does the lookup range have be in descending order.

Thanks in advance

No...

=VLOOKUP(A2,$F$2:$G$100,2,1)

presupposes that F2:G100 is sorted in ascending order on F2:F100.

=VLOOKUP(A2,$F$2:$G$100,2,0)

does effect an exact match between A2 and the values in F2:F100 and does not presuppose any sorting.

VLOOKUP does not expect a descending sort order at all, but see the MATCH function for that.
 
Upvote 0
Hi all :confused:

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
AB
20Rate1
310000Rate2
420000Rate3
540000Rate4
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top