Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am using Excel 2007.
I have a spreadsheet that has been exported from an in-house software database. It has 57 columns and more than 1,000 rows. A lot of the columns are totally blank. Other than finding them manually is there an easier way to delete them? -- Thank you. Jayne |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub colkiller()
Set r = ActiveSheet.UsedRange nLastColumn = r.Columns.Count + r.Column - 1 For i = nLastColumn To 1 Step -1 Set rcol = Cells(1, i).EntireColumn If Application.WorksheetFunction.CountA(rcol) = 0 Then rcol.Delete Shift:=xlToLeft End If Next End Sub -- Gary''s Student - gsnu200803 "Acanesfan" wrote: I am using Excel 2007. I have a spreadsheet that has been exported from an in-house software database. It has 57 columns and more than 1,000 rows. A lot of the columns are totally blank. Other than finding them manually is there an easier way to delete them? -- Thank you. Jayne |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hi, !
I am using Excel 2007. I have a spreadsheet that has been exported from an in-house software database. It has 57 columns and more than 1,000 rows. A lot of the columns are totally blank. Other than finding them manually is there an easier way to delete them? 1) select the entire row (say) of your titles 2) {F5} (button) special... blank cells accept 3) right-click delete... entire column hth, hector. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to delete at once empty columns in a table? | Excel Discussion (Misc queries) | |||
Delete rows that are empty across columns | Excel Worksheet Functions | |||
How do I delete multiple empty columns in Excel at one time? | Excel Discussion (Misc queries) | |||
Delete rows with empty cells in columns B&C | Excel Discussion (Misc queries) | |||
how do i delete the extra empty rows and columns that i dont need. | Excel Discussion (Misc queries) |