Using a drop-down list to conditionally choose column data

dwking1989

New Member
Joined
Aug 11, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a large set of data for a group of countries. I was hoping to use a drop-down menu so that a user could select an indicator and that data would then appear for that country in a smaller table. For instance in the screenshot below, selecting the GDP indicator would automatically return GDP values for the country from another sheet in column D, but if you change cell B1 it changes both the indicator and values in column D.

Thanks,

Dave

1674319965380.png
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
IS THIS SOMETHING YOU WANT?

WorkBook1.xlsx
ABCDEFGHIJKL
1IndicatorBEAR
2
3INDICATORS
4CountryClassificationRegionBEARSQUIRREL
5EthiopiaLDCSSA339GDP
6DRCLDCSSA120LION
7NigeriaLMICSSA167BEAR
8AfghanistanLDCMENA137
9PakistanLMICINDO PAC257CountrySQUIRRELGDPLIONBEAR
10MozambiqueLDCSSA432Ethiopia282387276339
11YemenLDCMENA326DRC206418231120
12KenyaLMICSSA201Nigeria243396125167
13SomaliaLDCSSA313Afghanistan245167152137
14UgandaLDCSSA180Pakistan227290490257
15TanzaniaLDCSSA294Mozambique122348460432
16SyriaLMICMENA486Yemen256408474326
17Kenya118332251201
18Somalia351284254313
19Uganda240318478180
20Tanzania294476291294
21Syria159347197486
22
Sheet6
Cell Formulas
RangeFormula
D4D4=B1
D5:D16D5=INDEX($G$9:$K$21,MATCH($A5,$G$9:$G$21,0),MATCH($D$4,$G$9:$K$9,0))
Cells with Data Validation
CellAllowCriteria
B1List=INDICATORS
 
Upvote 0
Solution
That worked perfectly. Thanks very much, really appreciate it. Had spent a lot of failed time googling.
 
Upvote 0
That worked perfectly. Thanks very much, really appreciate it. Had spent a lot of failed time googling.
You're welcome. Please mark the post solved, if that is something you can do.
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,730
Members
449,333
Latest member
Adiadidas

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