• 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 itesm based on date

Hello ... You can Use This Function
Code:
=IFERROR(INDEX($A$2:$A$290,AGGREGATE(15,6,ROW($A$1:$A$313)/(MATCH($A$2:$A$290&$B$2:$B$290,$A$2:$A$290&$B$2:$B$290,0)=ROW($A$1:$A$313)),ROWS($1:1))),"")
 

Attachments

  • EXAMPLE 6.xlsx
    11.9 KB · Views: 5
You can use the remove duplicates function in Power Query. Here is the Mcode as a result of that action

Code:
let

    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],

    #"Changed Type" = Table.TransformColumnTypes(Source,{{"BATCH", Int64.Type}, {"Txn Date", type date}}),

    #"Removed Duplicates" = Table.Distinct(#"Changed Type")

in

    #"Removed Duplicates"
 

Attachments

  • EXAMPLE 5.xlsx
    25.7 KB · Views: 1
Another ways is to use advanced filter. But seems not as solid as removing duplicates after having copied the range.
EDIT:
Need to define the criteria range correctly (I kind of forgot about it).
sorry, wrong picture attached
75902
 
Last edited:
Back
Top