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

Copper Contributor

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

+91-8801222475

+971-501689744

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

@Mohammed_Kazim 

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

image.png

= INDEX(Table1, 
  XMATCH(UNIQUE(Table1[Product Code]), Table1[Product Code],0,-1),
  {1,2,5,4})