Create a unique list from a column and filtering some values

mixy

New Member
Joined
Sep 15, 2012
Messages
5
Hi all,

I have created a unique list of countries using a example from this link How to extract a unique distinct list from a column in excel | Get Digital Help - Microsoft Excel resource

This is my formula array:
{=INDEX(Countries, MATCH(0, COUNTIF($K$1:K1, Countries), 0))}

where Countries is a named range for column A data. For example:
Spain
USA
USA
France
Spain

The result of the formula will be:
Spain
USA
France

Do you know how to discard, for example, Spain from the calculation?
In other words, find me the unique countries of except Spain.
In the above example, that would be USA and France

Thanks!!!

mixy
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi all,

I have created a unique list of countries using a example from this link How to extract a unique distinct list from a column in excel | Get Digital Help - Microsoft Excel resource

This is my formula array:
{=INDEX(Countries, MATCH(0, COUNTIF($K$1:K1, Countries), 0))}

where Countries is a named range for column A data. For example:
Spain
USA
USA
France
Spain

The result of the formula will be:
Spain
USA
France

Do you know how to discard, for example, Spain from the calculation?
In other words, find me the unique countries of except Spain.
In the above example, that would be USA and France

Thanks!!!

mixy
Like this...

Still array enterd:

=INDEX(Countries,MATCH(0,IF(Countries<>"Spain",COUNTIF($K$1:K1,Countries)),0))
 
Upvote 0
=INDEX(Countries,MATCH(0,IF(Countries<>"Spain",COUNTIF(K$1:K1,Countries)),0))

Ctrl+Shift+Enter, not just Enter
copy down as far as needed
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,220
Members
448,554
Latest member
Gleisner2

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