Multiple columns into 1 column

Hickmanyada

New Member
Joined
Apr 20, 2015
Messages
4
I have a sheet with multiple columns they are of varying rows:

ABCDEFG
1Header
2Reading NumberDateChannel 1Channel 2Channel 3Channel 4Channel 5
3109/08/20151
4209/08/20153
53
09/08/20150
6410/08/20151
7510/08/20153
8610/08/20152
9711/08/20151

<tbody>
</tbody>

I want to collect all the values from column C - wherever the values stop. I want to put them into column C under the last value.
Columns C-wherever will not have more than one value so if there was a way to move them over into column C no data would be lost. On the example above it would just be moving D7 and D8 to C7 and C8, then E9 to C9. But obviously my data set runs into the hundreds. Columns A and B are always present.

What would the script be for this?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If all you care about is having some value in column C, I would insert a column before C and put a formula in C3 something like:

Code:
=max(&d3:$h3)

and drag it down the whole column. That will give you the maximum value for the D to H columns for each row. No VB required.
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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