Removing Blanks from an Array

pennywise117

New Member
Joined
Feb 20, 2018
Messages
1
How do you remove blanks from an array? I want to summarize data in Columns to eventually transpose the data into rows, but can't figure out how to remove the blanks in a quick/non-manual way.

The data is configured similar to the following -- with blank cells being noted with XXX:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]john[/TD]
[TD]group1[/TD]
[TD]xxx[/TD]
[TD]group3[/TD]
[TD]group4[/TD]
[TD]group5[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]kelly[/TD]
[TD]group1[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]group4[/TD]
[TD]xxx[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]chris[/TD]
[TD]group1[/TD]
[TD]group2[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]group5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]teri[/TD]
[TD]group1[/TD]
[TD]xxx[/TD]
[TD]group3[/TD]
[TD]xxx[/TD]
[TD]group5[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]sam[/TD]
[TD]xxx[/TD]
[TD]group2[/TD]
[TD]xxx[/TD]
[TD]xxx[/TD]
[TD]group5[/TD]
[/TR]
</tbody>[/TABLE]

My total Range = A:BX
and Rows = 5:331

Ideally I want the data to look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]john[/TD]
[TD]group1[/TD]
[TD]group3[/TD]
[TD]group4[/TD]
[TD]group5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]kelly[/TD]
[TD]group1[/TD]
[TD]group4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]chris[/TD]
[TD]group1[/TD]
[TD]group2[/TD]
[TD]group5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]teri[/TD]
[TD]group1[/TD]
[TD]group3[/TD]
[TD]group5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]sam[/TD]
[TD]group2[/TD]
[TD]group5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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