• 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.

How to extract unique values without using unique function

Pasadu

Member
Dear Sir, please could you help me with another formula to extrac unique values without using the unique function?

78670
 
Pasadu

Please next time, attach a sample file, It takes time to make a file to test, which we can use on other problems

Assuming your data is in A1:
in B2: =IFERROR(INDEX($A$2:$A$10, MATCH(0, INDEX(COUNTIF($B$1:B1, $A$2:$A$10), 0, 0), 0)), "")

Copy down
 
Thank You, i have tried this but i get a different answer. I have attached the file please. Please note that the list will continue to be updated, therefore the unique list should continuously update itself. The order numbers are repeated because it is based on the number of containers though. Thank You.

Pasadu

Please next time, attach a sample file, It takes time to make a file to test, which we can use on other problems

Assuming your data is in A1:
in B2: =IFERROR(INDEX($A$2:$A$10, MATCH(0, INDEX(COUNTIF($B$1:B1, $A$2:$A$10), 0, 0), 0)), "")

Copy down
 

Attachments

  • Shipment.xlsx
    11.4 KB · Views: 10
B2: =IFERROR(INDEX($A$2:$A$1000, MATCH(0, INDEX(COUNTIF($B$1:B1, $A$2:$A$1000), 0, 0), 0)), "")
copy down
 
An alternative solution is to use Power Query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Removed Duplicates" = Table.Distinct(Source)
in
    #"Removed Duplicates"

or

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"SHIPPING ORDER NUMBER"}, {{"Data", each Table.RowCount(Table.Distinct(_)), Int64.Type}}),
    #"Removed Columns" = Table.RemoveColumns(#"Grouped Rows",{"Data"})
in
    #"Removed Columns"
 
Back
Top