Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 142
Default Unique values in an array.

Is there a way, in Excel 2003, to return a summary list of all the unique
values in an array? For example, in the following array of 10 values, there
are only three unique values. How would I get excel to give me a list of the
unique values?

Array:

BOB
SUE
JON
JON
SUE
BOB
BOB
BOB
JON
JON

I would like Excel to give me a list of the unique values in this array. i.e -

BOB
SUE
JON

Any ideas?

Thanks,
Jerry
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Unique values in an array.

Hi
you can actually filter for unique values use the Advanced command in the
Sort & Filter group on the Data tab, (check unique values box).

"Jerry" wrote:

Is there a way, in Excel 2003, to return a summary list of all the unique
values in an array? For example, in the following array of 10 values, there
are only three unique values. How would I get excel to give me a list of the
unique values?

Array:

BOB
SUE
JON
JON
SUE
BOB
BOB
BOB
JON
JON

I would like Excel to give me a list of the unique values in this array. i.e -

BOB
SUE
JON

Any ideas?

Thanks,
Jerry

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Unique values in an array.

Try this:
Your list is in A1:A13
Put "=A1" in B1
Put
"{=OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),R
OW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)}"
in B2
Put
"{=OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B2),R
OW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)}"
in B3
Put
"{=OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B3),R
OW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)}"
in B4
....

Rodrigo


Jerry wrote:

Is there a way, in Excel 2003, to return a summary list of all the
unique values in an array? For example, in the following array of 10
values, there are only three unique values. How would I get excel to
give me a list of the unique values?

Array:

BOB
SUE
JON
JON
SUE
BOB
BOB
BOB
JON
JON

I would like Excel to give me a list of the unique values in this
array. i.e -

BOB
SUE
JON

Any ideas?

Thanks,
Jerry




--

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
Returning an array of unique values? Blue Max Excel Worksheet Functions 10 January 16th 08 02:51 AM
Array formula for unique values Dan Hatola Excel Worksheet Functions 1 January 20th 07 03:06 AM
Array formula for unique values Dan Hatola Excel Worksheet Functions 0 January 20th 07 02:11 AM
Non-unique elements in an array Andrew Excel Discussion (Misc queries) 1 August 22nd 05 11:58 AM
create list of unique values from a column with repeated values? Chad Schaben Excel Worksheet Functions 1 July 8th 05 10:25 PM


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