Remove Dulicates for Account Name

Simmy97

New Member
Joined
Sep 8, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am very new to Excel and still learning the ropes.

I have the following table where I have Account Name and Assigned Staff. The reason there are duplicate rows is because I am pulling in data based on trade dates.

My goal is to remove all the duplicate rows and be left with unique cells. For example I want 'Test 1' and 'Staff 1' to appear once and then have all the trades going across the date columns.

One staff member can be assigned to many companies but one company is only supervised by one staff.

I know how to remove the duplicates from the Account Name but im struggling with Assigned Staff.

Is there a formula I can use to make this work?

Thanks for the any and all help!

Commission Tracker.xlsx
CDEFG
14Company Tracker:Assigned StaffJanuaryFeburaryMarch
15Company Name
16Test 1Staff A
17Test 2Staff B
18Test 2Staff B
19Test 3Staff A
20Test 3Staff A
Sheet1
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Simmy Let's get the ball rollin. Now this usually generates more questions than answers, but we have to start some place. So I hope I got most of your requirements. I don't know of a formula that does what this VBA program does. One question I have is "and then have all the trades going across the date columns." What does this mean? What are the trades? Anyway let the discussion begin.

VBA Code:
Sub Prog1()

Dim LastRow As Integer
Dim i As Integer

LastRow = Cells(Rows.Count, "A").End(xlUp).Row

For i = LastRow To 3 Step -1
    If Cells(i, 1) = Cells(i - 1, 1) Then
        Rows(i).Delete
    End If
Next i

End Sub

Company Tracker:Assigned StaffJanuaryFeburaryMarch
Company Name
Test 1Staff A
Test 2Staff B
Test 3Staff A
Test 4Staff C


Company Tracker:Assigned StaffJanuaryFeburaryMarch
Company Name
Test 1Staff A
Test 1Staff A
Test 2Staff B
Test 3Staff A
Test 3Staff A
Test 3Staff A
Test 4Staff C
Test 4Staff C
Test 4Staff C
Test 4Staff C
Test 4Staff C
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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