Merge Data From Multiple Columns - Sharepoint Survery Results - VBA

jfs2j

New Member
Joined
Mar 10, 2016
Messages
2
Hello,

I am using SharePoint to collect data through its survey feature. However, I want to make the output data more manageable. As such, I want to take the multiple columns and consolidate them into a few.

Currently, it looks like this:

Name 1 Address 1 Age 1 Name 2 Address 2 Age 2 Name 3 Address 3 Age 3
John My Home 50 Mary Your Home 40 James Our Home 70


I want it to look like this:

Name Address Age
John My Home 50
Mary Your Home 40
James Our Home 70


The survey is continuously updates, so, ideally a macro/vba that extract the data from one sheet and produces it this way would be better.

Also, a word of caution is that sometimes the cells in either column may be empty. So I want to make sure the formula just doesn't stop because it sees a blank cell, but rather copy from top to bottom from one column to the other.

Last but not least, there is other data in the cells, with other steps I would probably add to the macro, but this is the bulk of the steps I couldn't figure.

Thanks in advance for your help !
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Forgot to add a uniform date entry

So, Currently, it looks like this:

Name 1Address 1Age 1Name 2Address 2Age 2Name 3Address 3Age 3Date
JohnMy Home50MaryYour Home40JamesOur Home7001/31/1991

<tbody>
</tbody>



and, I want it to look like this:


NameAddressAgeDate
JohnMy Home5001/31/1991
MaryYour Home4001/31/1991
JamesOur Home7001/31/1991

<tbody>
</tbody>



Thank you !
 
Upvote 0

Forum statistics

Threads
1,214,996
Messages
6,122,636
Members
449,092
Latest member
bsb1122

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