Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alex
 
Posts: n/a
Default count cells with unique numbers

If I have a column with some repeated numbers:

58
168
168
25
....

How could I count the cells from the column to get 3 (not 4) as a result -
to be able to count the one number only once.

Thanks
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Some options...

1]

=SUM(IF(A2:A100<"",1/COUNTIF(A2:A100,A2:A100)))

which must be confirmed with control+shift+enter intead of just with enter.

2]

=SUMPRODUCT((A2:A100<"")/COUNTIF(A2:A100,A2:A100&""))

3]

=SUM(IF(FREQUENCY(A2:A10,A2:A10)0,1))

The last two just need enter.

Alex wrote:
If I have a column with some repeated numbers:

58
168
168
25
...

How could I count the cells from the column to get 3 (not 4) as a result -
to be able to count the one number only once.

Thanks

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
Can I count how many grey-filled cells are in a row ? AnthonyG Excel Worksheet Functions 1 February 4th 05 10:08 AM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 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
generating Unique ID numbers for students Maltenrazer Excel Worksheet Functions 2 November 6th 04 12:32 AM


All times are GMT +1. The time now is 01:10 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"