Vlook up with two refereces

loufreixas

New Member
Joined
Dec 16, 2005
Messages
1
I have a table with 5 columns
date country business sales receivables

I would like to select sales just for some countries for come months in another worksheet

So i use vlookup. The thing is that i would need to enter two references: country and month, and when i enter the formula =VLOOKUP(AND(A2;b2);AR!A2:E29;5), N/A appears.

Can somebody help me?
Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Your best bet would be to insert a column in the tab containing the data and concatenate the Country and Month (i.e. A2&B2). Once that's done your vlookup would look as follows:

=VLOOKUP(A2&B2,AR!A2:E29,5,0)

Hope that helps.
 
Upvote 0
Try:

=SUMPRODUCT((A2:A29="December"),(B2:B29="USA"),--(D2:D29))

Where A2:A29 contains Months, and B2:B29 contains Counties, and D2:D29 contains the Sales info.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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