3 Right Ways to Delete Blank Columns in Excel



In this video, I will show you 3 different methods you can use to quickly delete blank columns in Excel.

I am also going to cover one additional method that works well but needs to be used cautiously, as it can lead to issues

00:00 Intro
00:25 Delete Blank Columns using SORT method
03:12 Delete Blank Columns using Find & Replace method
05:55 Delete Blank Columns using VBA
10:07 Delete Blank Columns using Go To Special (NOT recommended)

————————————————————————————————

Below is the VBA code I used in the video:

‘Code Developed by Sumit Bansal from
Sub DeleteBlankColumns()
Dim EntireColumn As Range
On Error Resume Next
Application.ScreenUpdating = True
For i = Selection.Columns.Count To 1 Step -1
Set EntireColumn = Selection.Cells(1, i).EntireColumn
If Application.WorksheetFunction.CountA(EntireColumn) = 0 Then
EntireColumn.Delete
End If
Next
Application.ScreenUpdating = True
End Sub

————————————————————————————————

Video about Personal Macro Workbook –

☕ If you find my Excel videos useful and would like to support me, you can buy me a coffee –

✅ Free Excel Course (Basic to Advanced) –
✅ Free Dashboard Course –
✅ Free VBA course –
✅ Free Power Query Course –
✅ Best Excel Books:

Subscribe to get awesome Excel Tips every week:

#Excel #ExcelTips #ExcelTutorial

Watch more new videos about Excel Office | Synthesized by Mindovermetal English

Rate this post

Bài viết liên quan

Theo dõi
Thông báo của
guest
4 Comments
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận
Gbemisola Jimoh-Kuku

Your videos and mails are always soooo helpful. Thanks, Sumit!

👆 – FIND YOURSELF A HOT GIRL HERE 🔥😜q💑

huh

Thanks, this is helpful for sure.

It's me Sujoy

The most trusted channel for excel…