VBA code - organize data

Jtwa

New Member
Joined
Oct 31, 2012
Messages
11
I'm looking for someone to help me with VBA code so I click a button and my sheet 1 becomes organized like the data in Sheet 2


I would want the data in Column A,B,C to be used and added to the end of column D.


Key Points, I would want
Groomsman converted to the letter "g"
Best Man converted to the letter "e"
Usher converted to the letter "u"
Bridesmaid to "b"
Maid of Honor to "m"
Matron of Honor to "t"


You'll notice that "Card Name" is empty in 1 row so the data is structured differently.



TitleQuantityCard NameNameAddress 1Address 2CityStateZip
Funny Card (Fred) I want this (Tru)1 2John Doe612 Greenhill GardensHERNE BAYCA90210
Funny Card (Kev) I want this (dwi) and (kim)1 2 5Groomsman Best Man UsherKevin Lowe6024 Ne Revere AveBENDOR97701
Birthday Card (Joe)1Best ManTerry Green122415 Windmill Cove DrUnit 2RIVERVIEWFL84532
Another Card (Ki) and (lem) and (bey)1 3 6Maid of Honor Bridesmaid Matron of HonorJerry Yellow33333 Windmill Cove DrUnit 2RIVERVIEWFL84532

<tbody>
</tbody>


NameAddress 1Address 2CityStateZip
John Doe (Fred1 Tru2)612 Greenhill GardensHERNE BAYCA90210
Kevin Lowe (Kev-g1 Dwi-e2 Kim-U5)6024 Ne Revere AveBENDOR97701
Terry Green (Joe-e1)122415 Windmill Cove DrUnit 2RIVERVIEWFL84532
Jerry Yellow (ki-m1 lem-b3 bey-t6)33333 Windmill Cove DrUnit 2RIVERVIEWFL84532

<tbody>
</tbody>
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
https://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html
please read these guidelines for posting. There are many contributors who would be willing to help if there were row and column headers provided in the post so the grid locations could be identified. It is extremely difficult to guess at where the data resides and write efficient code. The better the details in the post the better the code provided and the less back and forth in reply posting. How do we determine who the codes for the wedding party belong to?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,749
Members
448,989
Latest member
mariah3

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