Unique Values

nevillestoke

Active Member
Joined
Mar 6, 2002
Messages
252
I downloaded the morefunc.xll which was referenced in an earlier thread - and while I don't need to use the uniquevalues function yet, it looks like a useful one for future reference.

The function syntax is {=uniquevalues(array,order)}

However, when I use it, the results I get are not unique - in fact, even in the description and example that comes with the download, the results are not unique.

Let's see if I understand the function correctly:

You can assess a range reference (or several other options) to determine if a unique item appears in the range.

The example provided states that the range "PL" contains

54,22,92,54,4,71,54,54,38,66,92,31 and 4

and the function: {=uniquevalues(PL)} returns {92;71;66;54;387;31;22;4}

When I try to replicate this, the result I get is 4

Aren't both results incorrect? If the function is supposed to provide unique values, shouldn't the above use of the function return 71,66,38,31,22?

I am entering this as an array formula - using CTRL, SHIFT, ENTER but cannot understand the results.

Any one know where I am going wrong - or is my understanding faulty?

As noted - this would be helpful for many future sheets I will be creating.

Neville.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
When I press F9, I get the result listed in the example that was provided with the function (F9 b- obviously, something else I did not know about) - the result is

={92;71;66;54;38;31;22;4;"";"";"";"";""}

but, should 92 not be on the list, as it does appear more than once?

Thanks for the quick response.

Neville.
 
Upvote 0
Sorry- my error

I see now that the function is only returning one result of 92, 54, etc.

Thanks again

Neville
 
Upvote 0
...
but, should 92 not be on the list, as it does appear more than once?

Thanks for the quick response...

Unique means distinct. Since 92 is a distinct value, it should appear in the result list.
 
Upvote 0

Forum statistics

Threads
1,221,693
Messages
6,161,356
Members
451,697
Latest member
pedroDH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top