PDA

View Full Version : Formula for finding unique values



Ben Clinton
09-24-2021, 02:26 AM
Do you know what formula to use in tis example if I want to find a unique value in column B?29009

anish.ms
09-24-2021, 03:06 AM
=UNIQUE(B2:B11)
Currently the UNIQUE function is only available with Office 365 subscriptions. Excel 2019, Excel 2016, Excel 2013 and earlier do not support dynamic array formulas, so the UNIQUE function is not available in these versions.

mancubus
09-24-2021, 04:20 AM
https://www.get-digital-help.com/how-to-extract-a-unique-list-and-the-duplicates-in-excel-from-one-column/

Ben Clinton
09-27-2021, 10:49 AM
Thanks for your advice:)

Bob Phillips
09-28-2021, 08:26 AM
If you don't have Office 365 and the UNIQUE function, try this.

In cell D2, enter -
=B2

In cell D3, add this array formula -
=IFERROR(IF(INDEX($B$2:$B$100,MATCH(0,COUNTIF(D$2:D2,$B$2:$B$100&""),0))=0,"",INDEX($B$2:$B$100,MATCH(0,COUNTIF(D$2:D2,$B$2:$B$100&""),0))),"")

copy D3 down as far as you need.

Paul_Hossler
09-28-2021, 09:13 AM
FYI, the :D is 'translated' by the forum software. It really is ":D". i.e. part of the range specification

Took me awhile long ago to figure out why Ranges were laughing at me :yes

anish.ms
10-07-2021, 11:21 AM
Thanks Bob for this formula:bow: and thanks Paul for clarifying the range converted into smiley :clap:
Just a doubt - Is there any specific reason for having &"" in the count if formula
COUNTIF(D$2:$D2,$B$2:$B$100&"")

Bob Phillips
10-12-2021, 11:32 AM
Sorry about the smilies, I should look at my posts after I post them :-)


Just a doubt - Is there any specific reason for having &"" in the count if formula
COUNTIF(D$2:$D2,$B$2:$B$100&"")

It is there so as to handle the case where there are blank cells in the data.