Looking for the best way to transpose data from a single row into multiple rows

mminten

New Member
Joined
May 29, 2020
Messages
12
Office Version
  1. 2013
Platform
  1. Windows
I have done VBA stuff in the past but it has been a few years. I attempted to do this with a pivot table but couldn't get it to do it right. Lets start with the raw data:
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAV
1#Date SubmittedEnter Group CodeHow many people do you want to register?my_emma_1Please select from the following: Guest 1: First NameGuest 1: Last NameGuest 1: Emailguest_1_addressguest_1_cityguest_1_stateguest_1_zipmy_emma_1Guest 2: First NameGuest 2: Last NameGuest 2: EmailAddress Same As Guest 1guest_2_addressguest_2_cityguest_2_stateguest_2_zipmy_emma_2Guest 3: First NameGuest 3: Last NameGuest 3: Emailguest_3_addressguest_3_cityguest_3_stateguest_3_zipmy_emma_3Guest 4: First NameGuest 4: Last NameGuest 4: Emailguest_4_addressguest_4_cityguest_4_stateguest_4_zipmy_emma_4Guest 5: First NameGuest 5: Last NameGuest 5: Emailguest_5_addressguest_5_cityguest_5_stateguest_5_zipmy_emma_5SECURITY QUESTION: What is 2 plus 2?
2641########3489042CheckednoJoeBlowemail@email.com123 Main StSpringfieldCA95843CheckedJaneBlowCheckedUncheckedUncheckedUncheckedUnchecked
3644########3480241CheckednoJohnSmithfake@email.com1 First StRENONV89521-4404UncheckedUncheckedselect-stateUncheckedUncheckedUncheckedUnchecked
4645########2147045CheckedyesJackLopezfakelopez@emai.com1 Virginia StreetRenoNV89501CheckedDiannaLopezfakelopez2@emai.comCheckedCheckedAnetteLopezfakelopez3@emai.com100 Second StRenoNV89501CheckedDeeLopezfakelopez4@emai.com100 Third StreetRenoNV89501CheckedBreanaLopezfakelopez5@emai.com100 Forth StreetRenoNV89501Checked
raw

Now we want to break out this data to look like this:
Book1
ABCDEFGHIJ
1Group NoBand NoFnameLnameEmailAddressCityStateZipJudging
23489042JoeBlowemail@email.com123 Main StSpringfieldCA95843no
3348904JaneBlowemail@email.com123 Main StSpringfieldCA95843no
43480241JohnSmithfake@email.com1 First StRENONV89521-4404no
52147045JackLopezfakelopez@emai.com1 Virginia StreetRenoNV89501yes
6214704DiannaLopezfakelopez2@emai.com1 Virginia StreetRenoNV89501yes
7214704AnetteLopezfakelopez3@emai.com100 Second StRenoNV89501yes
8214704DeeLopezfakelopez4@emai.com100 Third StreetRenoNV89501yes
9214704BreanaLopezfakelopez5@emai.com100 Forth StreetRenoNV89501yes
wanted

This is a key to which col goes where:
Book1
AB
1Enter Group CodeGroup No
2How many people do you want to register?Band No
3Guest 1: First NameFname
4Guest 1: Last NameLname
5Guest 1: EmailEmail
6guest_1_addressAddress
7guest_1_cityCity
8guest_1_stateState
9guest_1_zipZip
10Please select from the following: Judging
key


Basically what I need to do is look at the How many people do you want to register field and break it out into multiple rows adding each guest's information to the same Group No and Judging. If they don't have a physical address or email we want the data from the original entry to show (although that may be optional).
Is my best bet a Macro enabled spreadsheet and programming complicated VBA or is there a simpler way to do this?
 
No. I didn't explain myself well. Just copy my example from the post #8 and that's it.
The macro is designed to identify the carcacter "#" and replace it with the number 1, 2, 3, etc. That is already done by the macro in automatic, you do not have to put that number.




I mean you can add another column, for example the "Date Submitted" column, and the macro, automatically adds it to the result.
Absolutely Perfect! Thank you!!!! You are a lifesaver and thank you for your patience.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,140
Messages
6,123,269
Members
449,093
Latest member
Vincent Khandagale

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