ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Filtering diverse values (https://www.excelbanter.com/excel-worksheet-functions/145637-filtering-diverse-values.html)

[email protected]

Filtering diverse values
 
I'm trying to filter out diverse values in a column

Assume:
A1:A5 = Name1
A6:A10 = Name2
A11:A15 = Name3

I want to be able to automate a list that shows:

Name1
Name2
Name3

Not:

Name1
Name1
Name1
Name1
Name1
Name2
Name2
Name2
Name2
Name2
Name3
Name3
Name3
Name3
Name3

I have an idea of how to do this, but I want to make sure if I'm even
thinking in the right direction.


vezerid

Filtering diverse values
 
A formula-based solution:

In B1:
=A1

In B2 (*array formula*):

=IF(ISERROR(MATCH(0,COUNTIF($B$1:B1,$A$1:$A$100),0 )),"",INDEX($A$1:$A
$100,MATCH(0,COUNTIF($B$1:B1,$A$1:$A$100),0)))

Copy down the formula in B2.

HTH
Kostis Vezerides

On Jun 7, 5:25 pm, wrote:
I'm trying to filter out diverse values in a column

Assume:
A1:A5 = Name1
A6:A10 = Name2
A11:A15 = Name3

I want to be able to automate a list that shows:

Name1
Name2
Name3

Not:

Name1
Name1
Name1
Name1
Name1
Name2
Name2
Name2
Name2
Name2
Name3
Name3
Name3
Name3
Name3

I have an idea of how to do this, but I want to make sure if I'm even
thinking in the right direction.





All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com