Create a list, removing duplicates, based off another list

paun_shotts

New Member
Joined
Nov 4, 2021
Messages
38
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I have a list of products on order with a supplier, the list is updated as new orders are placed with the supplier, this list will always have duplicate values as we order the same products on a weekly basis.
I want to create a summary list, and I want this list to have no duplicates in it. I want this list of unique values, created off the other list where all the duplicate values are. And would like the summary list to update automatically if a new product is ordered and added to the main list of products on order, so the new product will then show on the summary list as well.

At the moment, If I order a new product, not ordered before, I am adding that product code manually to the summary list.
Is this possible? Please help me.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
look up the "Unique" formula. That sounds like it could be your solution.
 
Upvote 0
If you want VBA automation.

"TOP" ='Where you need unique values to be pasted
.Columns("A") = 'Column where unique values will be pasted / clear before new data will be added
Sheets("DATA").Range("M24:M2000") = Range where you have dublicate values.

VBA Code:
Sub RemDubSt()
 With Sheets("TOP") 
    .Columns("A").ClearContents
   Sheets("DATA").Range("M24:M2000").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheets("TOP").Columns("A"), Unique:=True
  End With
End Sub
 
Upvote 0
Solution
look up the "Unique" formula. That sounds like it could be your solution.
The Unique function is not much use to somebody who is using Excel 2013. ;)

@paun_shotts
Is this the sort of thing you are after?

22 08 17.xlsm
ABC
1ProductUnique List
2Prod 1Prod 1
3Prod 4Prod 4
4Prod 3Prod 3
5Prod 24Prod 24
6Prod 15Prod 15
7Prod 6Prod 6
8Prod 4Prod 5
9Prod 5 
10Prod 3 
11Prod 4 
12Prod 5 
13Prod 6 
14Prod 4 
15Prod 4 
16Prod 5 
17Prod 6 
18Prod 4 
19Prod 5
20
Unique list
Cell Formulas
RangeFormula
C2:C18C2=IFERROR(INDEX($A$2:$A$1000,MATCH(0,INDEX(COUNTIF($C$1:C1,$A$2:$A$1000)+(A$2:A$1000=""),0),0)),"")
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,034
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top