Remove duplicates from column A with unique should pick latest cost from cost column B

Occasional Visitor

I have number of rows in excel,  have one column of consist of product code (Column A) and one column consist of cost of that product (Column B), and also other columns consists of date of in , description etc. Now i want to make (column A) my product code be unique  with no duplicates,  but that unique code should pick latest cost from Cost column (column B), by referencing date column.


Please help me by replying or calling



skype : kazim.kazim41

2 Replies

@Mohammed_Kazim I think pivot table can do your job, but ensure that your dates are sorted in pivot table , then you can see for each product latest price


I this the sort of thing you have in mind (it requires Excel 365)?


= INDEX(Table1, 
  XMATCH(UNIQUE(Table1[Product Code]), Table1[Product Code],0,-1),