Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Count unique values in 1 column where cells in another show non-bl

I have a spreadsheet whereby I need to be able to count how many unique items
are in column D (D5 onwards), where each corresponding value in column O is a
non-blank.

Is there an easy way to do this and if so, how?

Many thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Count unique values in 1 column where cells in another show non-bl

=SUM(--(FREQUENCY(IF((D5:D2000<"")*(O5:O2000<""),MATCH( D5:D2000,D5:D2000,0)),ROW(INDIRECT("1:"&ROWS(D5:D2 000))))0))

this is an array formula, so commit with Ctrl-Shift-Enter, not just Enter

--
__________________________________
HTH

Bob

"Sarah (OGI)" wrote in message
...
I have a spreadsheet whereby I need to be able to count how many unique
items
are in column D (D5 onwards), where each corresponding value in column O
is a
non-blank.

Is there an easy way to do this and if so, how?

Many thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count unique values in 1 column where cells in another show non-bl

Sarah,

Try this

=MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1)

This is an array formula and musr be entered by pressing CTRL+Shift+Enter
and NOT just enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't simply type these yourself. Change D20, O20
to the range you want but you then must re=enter as an array.

Mike

"Sarah (OGI)" wrote:

I have a spreadsheet whereby I need to be able to count how many unique items
are in column D (D5 onwards), where each corresponding value in column O is a
non-blank.

Is there an easy way to do this and if so, how?

Many thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count unique values in 1 column where cells in another show no

I should have mentioned if this returns a #NAME error then activate the
analysis toolpak

Tools|Addins
Check analysis toolpak.

Mike

"Mike H" wrote:

Sarah,

Try this

=MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1)

This is an array formula and musr be entered by pressing CTRL+Shift+Enter
and NOT just enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't simply type these yourself. Change D20, O20
to the range you want but you then must re=enter as an array.

Mike

"Sarah (OGI)" wrote:

I have a spreadsheet whereby I need to be able to count how many unique items
are in column D (D5 onwards), where each corresponding value in column O is a
non-blank.

Is there an easy way to do this and if so, how?

Many thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default Count unique values in 1 column where cells in another show no



"Mike H" wrote:

I should have mentioned if this returns a #NAME error then activate the
analysis toolpak

Tools|Addins
Check analysis toolpak.

Mike

"Mike H" wrote:

Sarah,

Try this

=MROUND(SUM(IF(LEN(D5:D20),IF(O5:O20<"",1/COUNTIF(D5:D20,D5:D20)))),1)

This is an array formula and musr be entered by pressing CTRL+Shift+Enter
and NOT just enter. If you do it correctly then Excel will put curly brackets
around the formula {}. You can't simply type these yourself. Change D20, O20
to the range you want but you then must re=enter as an array.

Mike

"Sarah (OGI)" wrote:

I have a spreadsheet whereby I need to be able to count how many unique items
are in column D (D5 onwards), where each corresponding value in column O is a
non-blank.

Is there an easy way to do this and if so, how?

Many thanks in advance.

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
one column of cells show ####. Values show when I open it. Help grantljg Excel Discussion (Misc queries) 3 September 18th 07 09:19 PM
count of unique values within a column Jason Excel Discussion (Misc queries) 7 July 5th 07 07:00 PM
Unique Count when Values 0.01 Jill1 Excel Worksheet Functions 3 November 22nd 06 01:36 PM
How do i count the number of unique values in a given column? Bobby Excel Discussion (Misc queries) 8 September 1st 06 06:43 PM
Count unique values and create list based on these values vipa2000 Excel Worksheet Functions 7 August 5th 05 01:17 AM


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