Empty cells

asudevils5150

New Member
Joined
Feb 19, 2002
Messages
49
How do I move cells with text over to Column B and columns following. For instance, I have data in Cells B1:d7. Then the next set of data are in e8:g20. How do I move all the data starting at e8 to b8:d20. Also, the next set is h21:j30, so I want to move h21:j30 to B21:d30. Thank you all again for your help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If I understand your question correctly, select B8:D20, right click in the selected area, choose "delete" and select "shift cells left".

Then, select B21:G30 and follow the same steps.
 
Upvote 0
You are correct, but my problem is that i have this "staggering" for about 20000 rows. So imagine cells from column a-d, then e-g, then s-t, then the fifth row would be back to say c-f. Don't ask me how the data got like this, but i would like to shove all the data so that the first column for the data would be in Column A. Thanks for your help.
 
Upvote 0
Try:

Code:
For i = 1 To Range("B1").SpecialCells(xlCellTypeLastCell).Row
If Range("B" & i) = "" Then
Range("B" & i & ":" & Range("B" & i).End(xlToRight).Offset(0, -1).Address).Delete Shift:=xlToLeft
End If
Next i
 
Upvote 0

Forum statistics

Threads
1,214,634
Messages
6,120,659
Members
448,975
Latest member
sweeberry

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