View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bentam3 Bentam3 is offline
external usenet poster
 
Posts: 7
Default Distinct Count with Criteria

I'm hoping somene can help me with my problem. I have few thousand rows of
data we create a large report from each month in Excel. We have now been
asked to add in a table which does distinct counts with multiple criteria. I
have added in a consise version below.

How can I create a formula which will fill in the results in the table below
to achieve the answers I've manually added in?

A B C D
1 NAME DEPARTMENT LOCATION TYPE
2 Mary Finance A Primary
3 Sally Finance B Primary
4 Sally Finance B Primary
5 Mary IT A Primary
6 John Finance B Secondary
7 John Finance B Secondary
8 David Admin A Primary
9 John IT B Secondary
10 David Finance A Primary
11 David IT C Primary
12
13
14 Results Table for Locations A & B
15 DEPARTMENT Primary Secondary
16 Finance 3 1
17 Admin 1 0
18 IT 1 1

Thanks
BT