Lookup information from another sheet using VBA

mamady

Board Regular
Joined
Sep 23, 2011
Messages
238
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a list of information in sheet 1, like the following table

CountryMonthSubjectItem

and in sheet 2, I created a layout with a drop list for Country and Month attributes

I want a VBA code that will retrieve/lookup the subject and item based on select Country and Month attributes and assign that macro to a button

the layout in sheet 2 looks like the following

Country[drop list]Month[drop list]
Subject
Item
Item
Subject
Item
Item

given that for each country and month, there is a maximum of 6 subjects and 4 items under each subject.

I would appreciate any support,

thank you in advance
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Cross-posted:

Please take a minute to re-read the forum rules on cross-posting and follow them in future. Thanks.
:)
 
Upvote 0
Cross-posted:

Please take a minute to re-read the forum rules on cross-posting and follow them in future. Thanks.
:)

Thanks for bringing this matter to my attention
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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