how to remove blank columns and replace it with the value of the next non-blank cell in the row

mrfrost

New Member
Joined
Feb 25, 2005
Messages
9
Hi,
I need to format a data set for a mail merge. In essence I am looking for help on how to remove blank columns and replace it with the value of the next non-blank cell in the row (without the use of Macros).

Blank values are allowed in the Widget columns are allowed
Each email address will have no more than 20 Widgets associated with it

Example Data set:
Email | Widget 1 | Widget 2 | Widget 3 ... up to Widget 200
xyz@gmail.com | a | | | | | | b
pqr@gmail.com | | | | c | d | e | | | | | | | | f

Required Outcome:
xyz@ | a | b
pqr@ | c | d | e | f


Thanks,
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
In essence I am looking for help on how to remove blank columns and replace it with the value of the next non-blank cell in the row (without the use of Macros).
Try this with a copy of your worksheet
1. Select any single cell on the worksheet
2. F5 -> Special... -> Blanks -> OK
3. Right click anywhere on the grey cells - Delete .. -> Shift cells left -> OK
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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