Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 331
Default Use a vlookup to lookup up and count the amount of unique numbers

Can I use a VLOOKUP to return a count of unique values associated with
certain people? Ie. can I use a vlook up to lookup and then count of a number
of unique reference numbers associated with a person called 'John Smith' and
then put that count total in a particular cell?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Use a vlookup to lookup up and count the amount of unique numbers

count of a number of unique reference numbers

...........A..........B
1.......Bill........10
2.......John........0
3.......John........0
4.......Sue.......10
5.......Sue.......10
6.......Lisa......20
7......Tom......10
8......John......10
9......John......10
10....John......20

Count unique numbers associated with John.

D1 = John

Try this array formula** :

=COUNT(1/FREQUENCY(IF(A1:A10=D1,IF(B1:B10<"",B1:B10)),B1:B 10))

Result = 3 (0,10,20)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Greg" wrote in message
...
Can I use a VLOOKUP to return a count of unique values associated with
certain people? Ie. can I use a vlook up to lookup and then count of a
number
of unique reference numbers associated with a person called 'John Smith'
and
then put that count total in a particular cell?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...lic.excel.misc



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
VLOOKUPS to Count Unique numbers Greg Excel Discussion (Misc queries) 1 February 14th 08 07:55 PM
Count unique numbers Stilin Excel Worksheet Functions 2 September 19th 07 12:04 PM
Count Unique Numbers Averitt Engineer Excel Worksheet Functions 6 February 14th 07 09:26 PM
Count unique numbers for execs DanielJW Excel Discussion (Misc queries) 2 November 29th 05 10:47 AM
summary count of unique numbers Dave Edge Excel Discussion (Misc queries) 5 November 12th 05 12:06 AM


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