Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lisaml
 
Posts: n/a
Default count a group of numbers but do not count duplicates

I need to count a column of numbers but do not want to count the duplicate
numbers. How do I do this?
  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

I'm not sure whether you want to count the number of unique entries or to sum
them. Assuming it's the former:

=SUM(1/COUNTIF(A1:A20,A1:A20))

entered as an array formula with CTRL+SHIFT+ENTER

If you want to sum the first occurrence of each unique number, use a "helper"
column (say C) with this formula, copied down as far as needed.

=COUNTIF($A$1:A1,A1)

Then use =SUMIF(C1:C20,1,A1:A20)

On Wed, 26 Jan 2005 12:55:05 -0800, Lisaml
wrote:

I need to count a column of numbers but do not want to count the duplicate
numbers. How do I do this?


  #3   Report Post  
Ola
 
Posts: n/a
Default

Try this: http://www.cpearson.com/excel/duplicat.htm
Look under "Counting Unique Entries In A Range"

Ola Sandstrom

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to count numbers of certain values Ripple919 Excel Worksheet Functions 3 January 12th 05 04:13 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM
Working with a large group of numbers Majoe4 Excel Worksheet Functions 1 December 10th 04 07:29 PM
How do I create formula to count numbers in a range of cells? EmilyJ Excel Worksheet Functions 1 December 8th 04 05:24 AM
Group by count formula nobrabbit Excel Worksheet Functions 1 November 7th 04 09:10 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"