Display a list only with the values by country

Omer_K

Board Regular
Joined
Apr 9, 2017
Messages
124
Office Version
  1. 365
Hello everyone,
I asked a question in the past, but there are some changes here:
The table above has data for each country - as you can see - there are a number of missing data.
Cell D16 has a Data Validation list of all countries
I would like to know that if I select a particular country from the list, I will only see the full data,
For example, if I choose the state of Florida, I will only see a list of complete data in the table below.
But anyway (even if it's empty) I want to see the three columns of:
Population, Persons per household, and Time zone (s)


Hope i was clear,


Thank you :)

Omer


Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
1
Country
AreaBuilding permitsCapitalCountry/regionAbbreviationNamePopulationPersons per householdTime zone(s)
2
Alabama
135,765​
MontgomeryUS-ALAlabama
4,874,747​
2.55​
Central Time Zone
3
California
102,350​
US-CACalifornia
39,536,653​
Pacific Time Zone
4
Florida
170,304​
TallahasseeUnited StatesFlorida
21,670,000​
2.63​
5
Hawaii
28,311​
3,369​
US-HI
1,427,538​
Hawaii-Aleutian Time Zone
6
Illinois
149,998​
Illinois
2.63​
Central Time Zone
7
Indiana
18,713​
IndianapolisUnited States
6,666,818​
8
Nevada
286,367​
17,952​
Carson CityUnited StatesUS-NVNevada
2.72​
Mountain Time Zone, Pacific Time Zone
9
New Jersey
22,608​
26,793​
United StatesUS-NJ
9,005,644​
2.73​
10
New YorkAlbanyUS-NYNew York
11
Oregon
255,026​
19,586​
United StatesUS-OROregon
4,142,776​
2.51​
Mountain Time Zone, Pacific Time Zone
12
TexasAustinUS-TX
28,304,596​
2.84​
13
Washington
184,827​
44,077​
OlympiaWashington
7,405,743​
2.56​
Pacific Time Zone
14
15
16
Florida​
<==Choose Country from the list
17
18
Area​
170,304​
19
Capital​
Tallahassee​
20
Country/region​
United States​
21
Name​
Florida​
22
Population​
21,670,000​
23
Persons per household​
2.63​
24
Time zone(s)​
Sheet: Data
 
Dear Aladin - you are the best!! :)
if i wuold like No matter what, at the bottom of the list in range C18:.. always get the three last columns: Population,Persons per household,Time zone(s) Although one may be empty..

In C18 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$1:$J$1,SMALL(IF(ISNUMBER(MATCH($B$1:$J$1,{"Population","Persons per household","Time zone(s)"},0))+(INDEX($B$2:$J$13,MATCH($D$16,$A$2:$A$13,0),0)<>""),COLUMN($B$1:$J$1)-COLUMN($B$1)+1),ROWS($A$18:A18))),"")

Is this what you have in mind?
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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