Consolidation of Worksheet into a final worksheet

I would like to create a a worksheet tab or consolidation tab where data from Raw data tab always gets appended without duplicates based on a particular column, lets say column 47
Rahul RoyData Scientist Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

als315Commented:
Can you upload sample and show expected result?
0
ShumsDistinguished Expert - 2017Commented:
Hi,

Assuming data in Raw Sheet starts from A2 until Col 47, below VBA will copy data from Raw Sheet to Consolidation Sheet and removes duplicate from Col 47:
Sub Update_Consolidation()
Dim RwWs As Worksheet, ConsWs As Worksheet
Dim RwLR As Long, ConsLR1 As Long, ConsLR2 As Long
Dim DelRng As Range
Set RwWs = Worksheets("Raw")
Set ConsWs = Worksheets("Consolidation")
RwLR = RwWs.Range("A" & Rows.Count).End(xlUp).Row
ConsLR1 = ConsWs.Range("A" & Rows.Count).End(xlUp).Row
RwWs.Range("A2:AU" & RwLR).Copy
ConsWs.Range("A" & ConsLR1 + 1).PasteSpecial xlPasteValues
ConsLR2 = ConsWs.Range("A" & Rows.Count).End(xlUp).Row
With ConsWs
    Set DelRng = Range("AU2:AU" & ConsLR2)
    DelRng.EntireRow.RemoveDuplicates Columns:=Array(47)
End With
ConsWs.Activate
ConsWs.Range("A1").Select
End Sub

Open in new window


Let me know if you need any changes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rahul RoyData Scientist Author Commented:
Thanks this is working fine for me :)
0
Rahul RoyData Scientist Author Commented:
Thanks for helping by :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.