Make a new list ignoring blank cells.

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,362
Office Version
  1. 2010
Hello,

I have an original list of numbers with blank cells in the range B2:K2.
I would like a new list in the range B3:K3 ignoring blank cells.
Please help with any formula or VBA

*ABCDEFGHIJKL
1
2Orignal List With Blank13467910
3New List No Blank13467910
4
5

Thank you all.

I am using Excel 2000

Regards,
Moti
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try the macro recorder
- copy row 2 to row 3
- select row 3
- go to SpecialCells>Blanks
- delete>shift cells left
 
Upvote 0
.. or more directly
VBA Code:
Sub NoBlanks()
  Range("B2:K2").SpecialCells(xlConstants).Copy Destination:=Range("B3")
End Sub
 
Upvote 0
Solution
Try the macro recorder
- copy row 2 to row 3
- select row 3
- go to SpecialCells>Blanks
- delete>shift cells left
footoo, thank you for guiding macro recording I tried nearly got it worked but comparing what @Peter made mine recorded is very poor.

Good Luck

Kind Regards,
Moti
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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