![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 10
|
Here's the problem:
I have a long list of countries, many of which occur several times. I want a formula which will determine how many DIFFERENT coutries there are in the list. E.g: China Denmark Denmark Finland Total = 3 It feels like it should be simple - but I can't do it! Thanks in advance... |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
ok. this is a long away..
just incase it is urgent..its all i know off my head. select your fiels. then go to data/filter/advanced filter.. and filter by unique fields. then copy these fields to a new column and see how many rows there are. |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=SUM(IF(LEN(A2:A5),1/COUNTIF(A2:A5,A2:A5))) where A2:A5 houses the country data. In order to array-enter a formula you need to hit control+shift+enter, not just enter. |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
ALADIN...
htats what i sort of meant... |
|
|
|
|
|
#5 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Saloomi
I would seriously consider a small Pivot Table instead. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|