Re-arranging and Sorting Data using a VBA Macro

clarkmarka

New Member
Joined
May 22, 2024
Messages
6
Office Version
  1. 2019
Platform
  1. MacOS
Hello Mr. Excel Forum,
I am constantly working with data that is presented in 4 columns. Please see below.
1716382259476.png

For my non profit, we create reports that are arranged such that the Memorial Name appears first, followed by the Constituents that contributed in honor of that person. However, the catch is that both fields (Memorial - Parent) and (Constituent - Child) are arranged in ABC order by Last Name. It should look like this.
1716382666054.png

I am hoping to have a macro that I can apply to data after downloading in this 4 column format that presents in this way, sorting each level of data by last name.
Any advice would be really appreciated. I've tried a number of macros I've found on this and other forums but nothing has worked.

Mark
 
You're welcome, glad to help & thanks for the feedback.:)
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,224,813
Messages
6,181,109
Members
453,021
Latest member
Justyna P

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