#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Countif distindt

Hello. Please, is there some formula i can use to do count distinct of a
range of cells? This would help to eliminate duplicates when counting, I can
do this using the pivot table but it would be great to have this as formula
to avoid many steps. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Countif distindt

=COUNTIF(A1:A100,"distinct")

"Guilherme Loretti" wrote:

Hello. Please, is there some formula i can use to do count distinct of a
range of cells? This would help to eliminate duplicates when counting, I can
do this using the pivot table but it would be great to have this as formula
to avoid many steps. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Countif distindt

One way

=SUMPRODUCT(--(A1:A10<""),1/COUNTIF(A1:A10,A1:A10&""))


will do a distinct count in A1:A10

--
Regards,

Peo Sjoblom


"Guilherme Loretti" wrote in
message ...
Hello. Please, is there some formula i can use to do count distinct of a
range of cells? This would help to eliminate duplicates when counting, I
can
do this using the pivot table but it would be great to have this as
formula
to avoid many steps. Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Countif distindt

Great way out. Thanks!

"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(A1:A10<""),1/COUNTIF(A1:A10,A1:A10&""))


will do a distinct count in A1:A10

--
Regards,

Peo Sjoblom


"Guilherme Loretti" wrote in
message ...
Hello. Please, is there some formula i can use to do count distinct of a
range of cells? This would help to eliminate duplicates when counting, I
can
do this using the pivot table but it would be great to have this as
formula
to avoid many steps. Thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Countif distindt

Nice addendum to David Hager's original.

"Peo Sjoblom" wrote:

One way

=SUMPRODUCT(--(A1:A10<""),1/COUNTIF(A1:A10,A1:A10&""))


will do a distinct count in A1:A10

--
Regards,

Peo Sjoblom


"Guilherme Loretti" wrote in
message ...
Hello. Please, is there some formula i can use to do count distinct of a
range of cells? This would help to eliminate duplicates when counting, I
can
do this using the pivot table but it would be great to have this as
formula
to avoid many steps. 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
COUNTIF and OR Annika Excel Discussion (Misc queries) 6 June 1st 06 02:54 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 02:27 PM.

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

About Us

"It's about Microsoft Excel"