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

Data filtering from Ennumber of data's

sampath

Member
Hello,

I have huge data's in sheet 1. Need to filter from huge data and delete the duplicate data's.

Kindly provide the macro for that.

Herewith I have enclosed the sample here.

Regards,
Sampath.S
 

Attachments

  • Data Filtering.xlsx
    8.9 KB · Views: 0
Code:
Sub RemoveDuplicateData()

Dim MyRange As String

Worksheets("Input").Select
Columns("A:A").Select
MyRange = Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row).Address
ActiveSheet.Range(MyRange).RemoveDuplicates Columns:=1, Header:=xlYes

End Sub
 
Hello Chirayu,

Thanks for your given coding,

I have one more requirement for the same excel, I have enclosed this sample excel with this mail.

Here, I need to filtering optioned based on company coding and quantity. Output will be shown in output sheet.

Kindly provide the macro code for the same.

Regards,
Sampath.S
 

Attachments

  • Data Filtering.xlsx
    9.6 KB · Views: 0
Last edited:
Hello,

There is no coding in given attached file.
could you provide the coding for that output.

Regards,
Sampath.S
 
Modified the code I gave before to work on output sheet. It will copy entire list from input to output then remove duplicates. The formulas are already there in file I last attached so you can just drag them to new range.

Code:
Sub RemoveDuplicateData()

Dim MyRange As String

Worksheets("Input").Select
Columns("A:A").Select
Selection.Copy
Worksheets("Output").Select
Columns("A:A").Select
ActiveSheet.Paste
Columns("A:A").Select
MyRange = Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row).Address
ActiveSheet.Range(MyRange).RemoveDuplicates Columns:=1, Header:=xlYes

End Sub
 
Back
Top