A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I set up a formula to count only unique items in a column?



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2006, 11:56 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default How do I set up a formula to count only unique items in a column?

For Example: If I have a column with 8 items but two are duplicates. I want
the formula to return a value of only the unique items (6)

ABC
DEF
GHI
JKL
MNO
PQR
ABC
DEF
  #2  
Old March 26th, 2006, 11:57 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default How do I set up a formula to count only unique items in a colu

Thanks Jennifer

it worked great

Lyle


"jennifer" wrote:

I take no credit; Not my creation:

=SUMPRODUCT((A1:A30"")/COUNTIF(A1:A30,A1:A30&""))
or
=SUMPRODUCT(--(A1:A30""),1/COUNTIF(A1:A30,A1:A30&""))

"LYLERR" wrote:

For Example: If I have a column with 8 items but two are duplicates. I want
the formula to return a value of only the unique items (6)

ABC
DEF
GHI
JKL
MNO
PQR
ABC
DEF

  #3  
Old September 24th, 2009, 10:06 PM posted to microsoft.public.excel.worksheet.functions
JDub
external usenet poster
 
Posts: 5
Default How do I set up a formula to count only unique items in a colu

Do you know how to display the unique value in a cell (ABC, DEF, GHI, JKL,
MNO or PQR) instead of count the unique items?

For example in a separate column, rows 1 - 6 will display ABC, DEF, GHI,
JKL, MNO and PQR but in rows 7 and 8, ABC and DEF not be duplicated...will be
blank.

"jennifer" wrote:

I take no credit; Not my creation:

=SUMPRODUCT((A1:A30"")/COUNTIF(A1:A30,A1:A30&""))
or
=SUMPRODUCT(--(A1:A30""),1/COUNTIF(A1:A30,A1:A30&""))

"LYLERR" wrote:

For Example: If I have a column with 8 items but two are duplicates. I want
the formula to return a value of only the unique items (6)

ABC
DEF
GHI
JKL
MNO
PQR
ABC
DEF

  #4  
Old September 25th, 2009, 12:53 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default How do I set up a formula to count only unique items in a colu

Hi,

You may use Advanced Filters. Select the range including the header row.
Now go to Data Filter Advanced Filter and select Copy to another
location. in the list range, specify the range of cells (incl. the header
row) and leave the criteria range blank. In the copy to box, select any
blank cell and check the box for unique records only.

Hope this helps./

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"JDub" wrote in message
...
Do you know how to display the unique value in a cell (ABC, DEF, GHI, JKL,
MNO or PQR) instead of count the unique items?

For example in a separate column, rows 1 - 6 will display ABC, DEF, GHI,
JKL, MNO and PQR but in rows 7 and 8, ABC and DEF not be duplicated...will
be
blank.

"jennifer" wrote:

I take no credit; Not my creation:

=SUMPRODUCT((A1:A30"")/COUNTIF(A1:A30,A1:A30&""))
or
=SUMPRODUCT(--(A1:A30""),1/COUNTIF(A1:A30,A1:A30&""))

"LYLERR" wrote:

For Example: If I have a column with 8 items but two are duplicates. I
want
the formula to return a value of only the unique items (6)

ABC
DEF
GHI
JKL
MNO
PQR
ABC
DEF


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Worksheet Functions 2 January 5th, 2006 02:03 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Worksheet Functions 17 November 25th, 2005 05:18 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Worksheet Functions 12 April 17th, 2005 10:36 PM
Count Unique Items Regan Worksheet Functions 3 April 28th, 2004 02:57 PM


All times are GMT +1. The time now is 12:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.