Thread: count
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default count

Hi!

Try this:

D1 = GA1234
D2 = GA2345

Enter this formula in E1 and copy down:

=SUMPRODUCT((A$1:A$8=D1)/COUNTIF(B$1:B$8,B$1:B$8))

Biff

"brian thompson3001 via OfficeKB.com" <u15682@uwe wrote in message
news:5fb70e390a218@uwe...
Hi

This is a distribution report. with the following 2000+ rows and10 cols.
One
column headed "load number "contains a number that is the same for
1,2,3,4,5,

6,7,8 or 9 rows, unfortunately this not constant. What I am attempting to
get
is the number of different delivery points (col B) for each load number in
col A
I have tried sub totals but can't get to count only different ones?

Col A Col B
GA1234. Ipswich
GA1234. Norwich
GA1234. Ipswich
GA2345. B'ham
GA2345.Stoke
GA2345.Stafford
GA2345.Stoke
GA2345.Stoke

Hopefully end up with the following result
GA1234 = 2.
GA2345 = 3

Any idea's or direction

Regards

Brian

--
bnt

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200605/1