• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Get Unique list from column with formule

Monty

Well-Known Member
Hello Experts.

Please help me with Getting unique list from column with formula..

i do not want to use Array formula.. and wanted dynamic last row.

Please find attatched for your reference.


Country Output
India India
USA USA
London London
India
USA
London
India
USA
London
India
USA
London
 

Attachments

  • Test.xlsx
    9 KB · Views: 6
Hello Chihiro.

Thanks for your quick update.

But this formula works but leaves blanks.

Qucik snapshot for you.


Country Output
India India
USA USA
London London
India
USA
hello hello
India
USA
London
India
USA
London
 
If you need sorted list without sorting original range... I'd go with array formula.

A question, why aversion to array formula?
 
=LOOKUP(0,COUNTIF($B$1:B1,$A$2:$A$10),$A$2:$A$10)

for dynamic range - create named range.

other alternatives are pivot and vba barring frontend array.
 
Thanks Deepak.

out put is not coming as expecting...can you help.

A k
b s
c c
d b
a a
b #N/A
c #N/A
s #N/A
k #N/A
 
Yes deepak.

That's the problem..Any other solution...It works perfectly with Arrary formules but need dynamic range for that..if we do not have any other option other then array.

Here is my formule which am using but not dynamic.

ARRAY FORMULA

=INDEX($A$2:$A$20, MATCH(0, COUNTIF($B$1:B1, $A$2:$A$20), 0))




Thanks
 
Why not using a named range for ($A$2:$A$20) with the array.

I don't think without array it's possible but will check with pc soon.
 
Yep, dynamic named range is the way to go.

Named range formula (named "lstCountry")
=Sheet1!$A$2:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A))

Then formula in B2:
=IFERROR(INDEX(lstCountry, MATCH(0, COUNTIF($B$1:B1, lstCountry), 0)),"")

Confirmed as array (CSE)
 
Yes deepak.

But when we increase that range ($A$2:$A$20) to A21 it does't work....as this formula expects range should be same in A column too..
 
...but this follows with zero always at the end.

Odd. I can't replicate your issue on my end. Double check your dynamic named range formula.
upload_2017-1-16_16-38-12.png

FYI - You should have column header in A1, or formula may not return last match.
 
hii chihiro sir,

Could you please explain below formula how work?

Then formula in B2:
=IFERROR(INDEX(lstCountry, MATCH(0, COUNTIF($B$1:B1, lstCountry), 0)),"")


Thanks
rahul shewale
 
Back
Top