Change cell content to different column.

Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hi, is there a way to change the location of cell contents to another column?
In the example below I have the ">>" symbols in alternate columns in Table 1
I need all of them in column "B" like Table 2.
If possible with formulas :)
Thanks in advance


Table 1 - actual
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]James[/TD]
[TD]George[/TD]
[TD]John[/TD]
[TD]>>Thomas[/TD]
[/TR]
[TR]
[TD]Name2[/TD]
[TD]Walt[/TD]
[TD]>>Mark[/TD]
[TD]Thomas[/TD]
[TD]Scott[/TD]
[/TR]
[TR]
[TD]Name3[/TD]
[TD]Gerald[/TD]
[TD]Chester[/TD]
[TD]Calvin[/TD]
[TD]>>George[/TD]
[/TR]
[TR]
[TD]Name4[/TD]
[TD]>>Zach[/TD]
[TD]Willian[/TD]
[TD]Quincy[/TD]
[TD]Eduard[/TD]
[/TR]
</tbody>[/TABLE]










Table 2 - desired
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]>>Thomas[/TD]
[TD]James[/TD]
[TD]George[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]Name2[/TD]
[TD]>>Mark[/TD]
[TD]Walt[/TD]
[TD]Thomas[/TD]
[TD]Scott[/TD]
[/TR]
[TR]
[TD]Name3[/TD]
[TD]>>George[/TD]
[TD]Gerald[/TD]
[TD]Chester[/TD]
[TD]Calvin[/TD]
[/TR]
[TR]
[TD]Name4[/TD]
[TD]>>Zach[/TD]
[TD]Willian[/TD]
[TD]Quincy[/TD]
[TD]Eduard[/TD]
[/TR]
</tbody>[/TABLE]
 

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.
Sub Shifter()
For Each thing In Selection
If Left(thing, 2) = ">>" And thing.Column <> 2 Then
thing.Cut
Cells(thing.Row, 2).Insert
End If
Next
End Sub
 
Upvote 0
Hi BobUmlas, I will try to figure out how to install this in my excel let you know if is working as I need, thanks
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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