LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default dcount of unique values

Hi,

Is there a way where I can get a list of distinct values for a column
from a set of rows which is obtained by applying a set of filter
parameters (basically equivalent of a select distinct in SQL)?

I tried DCOUNT and it works to get the count of all values matching
the filter parameters. But I couldn't seem to find a way to get a
count of the distinct values in a column.

Please note that I need this to be done automatically, i.e., if the
data changes, this count has to change. And the data that I'm trying
to do a distinct is dynamic, i.e., it has to obtained by applying a
set of filter conditions on the actual data in the worksheet.

I'd appreciate any suggestions.

One way I could think of is write a formula which can extract a subset
of rows from ny actual data into another range of cells based on my
filter criteria. And then I can use FREQUENCY on this subset. Is there
a function/formula which could extract a subset of rows into another
range? (e.g., like SELECT in SQL.)

Thanks,
Kumar.
 
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
Unique Values, not Unique Records steph44haf Excel Discussion (Misc queries) 1 May 12th 10 07:52 PM
"--" (was "DCOUNT Unique Values") Wilba Excel Worksheet Functions 2 November 3rd 07 12:50 AM
DCOUNT Unique Values Wilba Excel Worksheet Functions 2 October 26th 07 10:06 AM
DCOUNT to Return Values from Access database Tim H Excel Discussion (Misc queries) 5 December 15th 05 10:27 PM
DSUM and DCount when criteria values are similar BAC Excel Worksheet Functions 1 February 14th 05 06:38 PM


All times are GMT +1. The time now is 10:32 AM.

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"