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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,217,386
Messages
6,136,284
Members
450,002
Latest member
bybynhoc

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