Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Use SUM and FREQUENCY functions to count unique items

I need to count the number of unique employee numbers in a range of
employee numbers. I can use the following excel function to get the
answer, but how do I include this in sub routine?

+sum(n(frequency(c9:c50,C9:c50)0))

The range will change with each use of the spreadsheet, so I need to
detect the range of values (first row will always be 9, last row must
be determined). I can do that part:

Set sh = Worksheets("Compiled Totals")
Set rng = sh.Range(sh.Cells(9, "C"), _
sh.Cells(sh.Rows.Count, "C").End(xlUp))

I'm not sure how to determine the unique rows once I've determined the
range.

Any help would be appreciated. Thanks.
Connie

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
Count Unique Items Noel Excel Discussion (Misc queries) 9 December 3rd 08 11:28 PM
How do I count the frequency of items in a non-numeric list? RAR Excel Worksheet Functions 2 November 28th 06 11:33 PM
How do I count the frequency of items in a non-numeric list? Dave F Excel Worksheet Functions 0 November 28th 06 06:54 PM
Use SUM and FREQUENCY functions to count unique items Connie Excel Discussion (Misc queries) 3 October 19th 06 09:02 PM
Use SUM and FREQUENCY functions to count unique items Connie Excel Discussion (Misc queries) 0 October 19th 06 08:11 PM


All times are GMT +1. The time now is 03:23 PM.

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"