Vlookup or Index-Match

ROKK

New Member
Joined
Aug 26, 2002
Messages
3
How can you perform a vlookup with multiple variables?

i.e. I need to look up department and year and return a unique amount for both criteria.

The dataset will have department and year in their respective columns more than once.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
On 2002-08-27 17:41, ROKK wrote:
How can you perform a vlookup with multiple variables?

i.e. I need to look up department and year and return a unique amount for both criteria.

The dataset will have department and year in their respective columns more than once.

Hi - welcome to the board. It's fairly straightforward to do multikey lookups...just search here for a few ideas. But, you say "The dataset will have department and year in their respective columns more than once" and that you want to "return a unique amount for both criteria". Aren't these mutually exclusive?

Care to post an example from your data & an indication of what results you'd expect. Consider downloading the html maker add in from the link below this post.

Paddy
 
Upvote 0
Dept. Year Amount
Accounting 1997 36.76
Accounting 1998 48.97
Operations 1997 56.98

If I wanted to perform a vlookup to return the amount for Accounting in 1997?
 
Upvote 0

Forum statistics

Threads
1,214,524
Messages
6,120,049
Members
448,940
Latest member
mdusw

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