Row Merger in a Worksheet that are equal in all except 2 columns

Masoud00

New Member
Joined
Apr 29, 2021
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
Inquiry Background:

I have an excel worksheet generated by company reporting software that gives me claims data for analytics. Each row is a claim with corresponding information in designated columns. Sometimes a claim gets duplicated for multiple rows as prescribers linked to the claim have differing designations that our system generates. I am seeking a VBA code that merges rows in a worksheet that has equal data in all columns but differ in columns K and L. Upon completing the merger i would like column K and L differing values to be separated by a space. This would allow for the consolidation of claims that should have been on one row but have been split up to multiple rows due to the differences in column K and L. VBA code should act on the entire worksheet spanning from Column A:Q. See below for data visual.

1672772343971.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,692
Messages
6,126,228
Members
449,303
Latest member
grantrob

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