Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel function to select unique values...

I am trying to count the number of unique records in Excel worksheet.
If this were SQL it would be easy but in excel I have no idea.

I am trying to use this function but is is producing errors.

=COUNTIF(AND(B5:B136,"=BFS"),(FREQUENCY(D5:D136,D5 :D136)0,1))

Here is an example of the data:

salesperson date
Brad 18-Sep-08
Brad 18-Sep-08
Tom 18-Sep-08
Ed 18-Sep-08
Brad 15-Sep-08
Tim 15-Sep-08
Brad 14-Sep-08

Thanks for any help!

Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Excel function to select unique values...

Couple of possibilities. You can use a Pivot Table - Data - Pivot Table, and
Place the salesperson column in the row field. Click and drag to bottom of
list and your row count will be in the Name box at top right.

Or, if you only want specific names, you can type the names, then
=countif(A:A,repname)

" wrote:

I am trying to count the number of unique records in Excel worksheet.
If this were SQL it would be easy but in excel I have no idea.

I am trying to use this function but is is producing errors.

=COUNTIF(AND(B5:B136,"=BFS"),(FREQUENCY(D5:D136,D5 :D136)0,1))

Here is an example of the data:

salesperson date
Brad 18-Sep-08
Brad 18-Sep-08
Tom 18-Sep-08
Ed 18-Sep-08
Brad 15-Sep-08
Tim 15-Sep-08
Brad 14-Sep-08

Thanks for any help!

Chris

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
Function to select random values from a list. Peter Barrett Excel Worksheet Functions 1 November 16th 06 02:27 PM
What function to select the last 3 small values from a list ? Eric Excel Discussion (Misc queries) 7 December 31st 05 12:14 PM
What function to select the last 3 small values from a list ? Eric Excel Worksheet Functions 2 December 31st 05 08:02 AM
Function to count unique values? Richard Buttrey Excel Worksheet Functions 5 September 22nd 05 02:58 PM
how do I select unique dates from a database in Excel? pomalley Excel Worksheet Functions 3 March 9th 05 03:02 PM


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