Dynamically delete duplicate rows - leave no gaps

dslhs

Board Regular
Joined
Apr 4, 2022
Messages
50
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I have a table (A2 = Names, B2 = Courses). There are multiple duplicate rows - where the information in both the A column and B column are exactly the same. I would like to re-create the table, but without any duplicate rows. There will be duplicates in the A column, and in the B column, but I don't want there to be A&B. I'd also like the new linked table to have no row gaps.

I know I can Go to the Data tab > Data Tools group, and click the Remove Duplicates, but I'd like this to be dynamic as the table is linked to external data.

I don't have the 'Unique' function, as I'm in 2019.

Many thanks,
 
Brilliant! Thank you so much for your help.

I have one more question. Is there a way of using power query Mcode to delete the last row in the table? Again it would be dynamic, but looking to always delete the last row.

Many many thanks,
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
On the PQE ribbon, click on Remove rows and select the number of rows from the bottom you wish to delete.
 
Upvote 0

Forum statistics

Threads
1,224,833
Messages
6,181,242
Members
453,026
Latest member
cknader

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