#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default distinct

is there any exel fuction to counting how many distinct data like distinct
funtion on sql programming
example

1 ab
2 ab
3 ac
4 ad
the result should be 3 not 4, i had use counta or count fuction butdoesn't
work

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default distinct

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

andifak wrote:

is there any exel fuction to counting how many distinct data like distinct
funtion on sql programming
example

1 ab
2 ab
3 ac
4 ad
the result should be 3 not 4, i had use counta or count fuction butdoesn't
work


--

Dave Peterson
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
Distinct Vipul Dani Excel Worksheet Functions 4 July 11th 06 07:56 AM
Count Distinct only John Moore Excel Discussion (Misc queries) 4 November 25th 05 11:47 AM
Distinct Value With Countif spalmarez Excel Worksheet Functions 0 November 8th 04 05:24 PM
Distinct Value With Countif spalmarez Excel Worksheet Functions 4 November 6th 04 07:30 AM
Count distinct Debbie t Excel Worksheet Functions 2 November 3rd 04 08:42 PM


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