# Table, extract content from a row, remove blanks and order in order A-Z

#### mstgier

##### New Member
Dear Forum,
I am not new to Excel but until now didn't use it in a sophisticated way. I am stuck with a Table, where I am not able to get to my target.

What am I trying to do is the following in:

As you can see in the below picture, I did some experimenting before going back to my table and Google was of course my good old friend to help me find a solution

Row A is my Example, where I try to get data out from. I found a formula, to remove the blanks and show them in Row C. The Formula I used is the following:

=IFERROR(INDEX(\$A\$2:\$A\$17, SMALL(IF(LEN(\$A\$2:\$A\$17)=0,"", ROW(\$A\$2:\$A\$17)-MIN(ROW(\$A\$2:\$A\$17))+1), ROW(A1))),"")

The next formula in Row D is removing the duplicates and is ordering it in alphabetical order:

=IFERROR(INDEX(\$C\$2:\$C\$11, MATCH(SMALL(IF(COUNTIF(\$D\$1:D1, \$C\$2:\$C\$11)=0, COUNTIF(\$C\$2:\$C\$11, "<"&\$C\$2:\$C\$11), ""), 1), COUNTIF(\$C\$2:\$C\$11, "<"&\$C\$2:\$C\$11), 0)),"")

Now comes the problem!

If we have a look at Row F, as you can see, I have my table called "Test" and the Row is called "Example_with_a_table" (This ridiculous name is only used as an example).

Is there a way, I can extract all the data from the Table and have the same result like in Row D? It doesn't matter if the solution is within the Table or not, as long as I do get the result.

Where I am struggling is, that with the result in Row D, I am referring to a range but in a Table, I am addressing the Table itself with the [@[Example with a table]],
therefore, I assume, I have to address my request in a different way but I have no clue how or if it is possible with the formulas I started, not sure how to change it

May I challenge you?

Thank you,

Mike

### Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

#### shaowu459

##### Well-known Member
have you tried this? A1:A11 is a inserted table.
Book3
ABC
1ExampleExample
2aa
3bb
4c
5cd
6a
7
8d
9d
10
11b
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=UNIQUE(FILTER(Table1[Example],Table1[Example]<>""))
Dynamic array formulas.

#### mstgier

##### New Member
That is faszinating and not that difficult It works perfectly also for me...

Thanx a lot... I was not aware of Unique but will read about it now and try to understand...

Thanx a million

#### shaowu459

##### Well-known Member
That is faszinating and not that difficult It works perfectly also for me...

Thanx a lot... I was not aware of Unique but will read about it now and try to understand...

Thanx a million
You are welcome~ New functions in Office 365 are very useful, such as UNIQUE, SORT, FILTER, they are easy to use and understand. Have a look at these functions will save a lot of time.

Replies
5
Views
47
Replies
3
Views
329
Replies
3
Views
62
Replies
9
Views
54
Replies
8
Views
110