How to delete blank cells from a table?

bk307

New Member
Joined
Apr 9, 2015
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hello, I'm trying to find a way to delete all blank cells from a table in excel. Each cell is either blank or contains a 3 letter code (example below).

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
aaaadabddbdgger3r2
aaabddger
bbbbdd
aaarw3
acadrggeg

<tbody>
</tbody>


I would like to remove all of the blank cells to end up with the following:

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
aaaadabddbdgger3r2
aaabddgerger
bbbbddbdd
aaarw3rw3rw3
acadrggeg

<tbody>
</tbody>

My data set has around 90,000 rows and each row contains between 5 to 25 codes, with blank cells intermixed. I would also like to get all of the distinct codes in this data set.

Anyone have any insights?

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How many columns you have?

if not too many, you can do this. (For example you have 5 columns, column A - E)
1. On the first right blank column. Enter this formula to combine them: =A1&B1&C1&D1&E1. Drag it down.
2. Copy and paste as value. Remove formula.
3. Use text to column, fixed width. Separate them by 3 letters each.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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