Extract only the Titles that not empty

Omer_K

Board Regular
Joined
Apr 9, 2017
Messages
124
Office Version
  1. 365
Hello friends,
In the example I have attached, I have a list of countries where some states have data in the same column and some do not.
In the table below I would like to see only a list of countries that have data.


Hello friends,
In the example I have attached, I have a list of countries where some states have data in the same column and some do not.
I would like to know how to create list of the countries that onlt have data have data.


I'll be glad to receive your help
Thank you :)

Excel 2016 (Windows) 32 bit
A
B
C
D
E
F
G
H
I
J
K
L
M
N
1
Alabama​
California​
Florida​
Hawaii​
Illinois​
Indiana​
Nevada​
New Jersey​
New York​
Oregon​
Texas​
Washington​
2
3​
1​
2​
3​
1​
1​
5​
1​
3
1​
1​
2​
2​
1​
5​
3​
4
5​
4​
3​
3​
4​
5
3​
5​
5​
5​
1​
5​
6
3​
3​
1​
5​
1​
2​
2​
7
5​
3​
4​
5​
3​
2​
8
3​
2​
2​
1​
1​
9
4​
5​
5​
3​
2​
1​
10
3​
3​
2​
5​
4​
3​
1​
11
3​
3​
4​
4​
2​
4​
12
4​
3​
3​
2​
4​
5​
5​
1​
13
14
15
Alabama
California
Florida
Illinois
Indiana
Nevada
New York
Texas
Washington
16
17
18
19
20
Sheet: Data
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Put this in C15 and drag right:

=IFERROR(INDEX($1:$1,AGGREGATE(15,6,COLUMN($B$1:$M$1)/(MMULT(TRANSPOSE(ROW($B$2:$B$12)),--($B$2:$M$2<>""))>0),COLUMNS($C15:C15))),"")

And it appears that Washington should not be listed?
 
Upvote 0
Eric you are a genius!!


You're definitely right - Washington shouldn't show up,


Thanks so much it works perfect :)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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