Excel can delete columns

Insert or delete rows and columns

Insert and delete rows and columns to organize your worksheet better.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Note: Microsoft Excel has the following column and row limits: 16,384 columns wide by 1,048,576 rows tall.

Insert or delete a column

  1. Select any cell within the column, then go to Home > Insert > Insert Sheet Columns or Delete Sheet Columns.

  2. Alternatively, right-click the top of the column, and then select Insert or Delete

Insert or delete a row

  1. Select any cell within the row, then go to Home > Insert > Insert Sheet Rows or Delete Sheet Rows.

  2. Alternatively, right-click the row number, and then select Insert or Delete.

Formatting options

When you select a row or column that has formatting applied, that formatting will be transferred to a new row or column that you insert. If you don’t want the formatting to be applied, you can select the Insert Options button after you insert, and choose from one of the options as follows:

Image of the Insert Options button that's displayed after inserting rows or columns.

If the Insert Options button isn’t visible, then go to File > Options > Advanced > in the Cut, copy and paste group, check the Show Insert Options buttons option.

Insert rows

To insert a single row: Right-click the whole row above which you want to insert the new row, and then select Insert Rows.

To insert multiple rows: Select the same number of rows above which you want to add new ones. Right-click the selection, and then select Insert Rows.

Insert columns

To insert a single column: Right-click the whole column to the right of where you want to add the new column, and then select Insert Columns.

To insert multiple columns: Select the same number of columns to the right of where you want to add new ones. Right-click the selection, and then select Insert Columns.

Delete cells, rows, or columns

If you don’t need any of the existing cells, rows or columns, here’s how to delete them:

  1. Select the cells, rows, or columns that you want to delete.

  2. Right-click, and then select the appropriate delete option, for example, Delete Cells & Shift UpDelete Cells & Shift Left, Delete Rows, or Delete Columns

When you delete rows or columns, other rows or columns automatically shift up or to the left.

Tip: If you change your mind right after you deleted a cell, row, or column, just press Ctrl+Z to restore it.

Insert cells

To insert a single cell:

  1. Right-click the cell above which you want to insert a new cell.

  2. Select Insert, and then select Cells & Shift Down.

To insert multiple cells:

  1. Select the same number of cells above which you want to add the new ones.

  2. Right-click the selection, and then select Insert > Cells & Shift Down.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Basic tasks in Excel

Overview of formulas in Excel

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Value 1 Value 2 Value 3 Value 4 Value 5 Value 6
123     3       43      567     53      3
111     123     2       3       9       0
8       8       3       2       3       98

So I have 5 columns where user can write values. All the rest of columns have to be invisible, or deleted. I don’t want to blank, hide or block them, or remove values from them. I want them to not exist.

Brian Tompsett - 汤莱恩's user avatar

asked Mar 3, 2014 at 9:57

user2786496's user avatar

13

First unlock the first 5 columns:

enter image description here

Then, hide the other columns:

enter image description here

Then go to Review > Protect Sheet, then uncheck Select Locked Cells (columns cannot be unhidden if they cannot be selected in the first place):

enter image description here

Use some password and save. Only users with the password will be able to unhide the columns.

answered Mar 3, 2014 at 10:37

Jerry's user avatar

JerryJerry

70.1k13 gold badges99 silver badges143 bronze badges

only for the first 5 columns to remain A:E. In that case you could select entire column F and then press

CTRL+RIGHT ARROW

to select all columns to right from column E and then

hide them

This is what you want

answered Mar 3, 2014 at 10:27

Nabin's user avatar

NabinNabin

11k8 gold badges64 silver badges98 bronze badges

you can right cick the columns in the top. Lets say «a» right click and then *Hide. i hope this helps ;)!

answered Mar 3, 2014 at 10:02

user3261123's user avatar

4

See all How-To Articles

This tutorial demonstrates how to delete multiple rows or columns in Excel and Google Sheets.

deletemultiple intro

By selecting multiple rows or columns in Excel, you can quickly delete any number of rows or columns using the right mouse button or the Excel Ribbon. This can also be done with VBA.

Delete Adjacent Rows

To delete multiple rows in your worksheet, select the rows you wish to delete by clicking on the row header and dragging down to the header of the last row you wish to delete.

deletemultiple select rows

Right-click on the row header and select Delete.

deletemultiple delete rows

OR

In the Ribbon, select Home > Cells > Delete > Delete Sheet Rows.

deletemultiple ribbon delete rows

Delete Non-Adjacent Rows

To delete multiple non-adjacent rows, select the first row you wish to delete by clicking on the row header, and then, holding down the CTRL key, click on each additional row you wish to delete.

deletemultiple select non adjacent

Right-click on the row header and select Delete.

deletemultiple non adjacent delete

OR

In the Ribbon, select Home > Cells > Delete > Delete Sheet Rows.

deletemultiple non adjacent delete rows

Delete Adjacent Columns

To delete multiple adjacent columns, select the columns you wish to delete by clicking on the column header and dragging across to the header of the last column you wish to delete.

deletemultiple select adjacent columns

Right-click on the column header and select Delete.

deletemultiple right click delete columns

OR

In the Ribbon, select Home > Cells > Delete > Delete Sheet Columns.

deletemultiple ribbon delete columns

Delete Non-Adjacent Columns

To delete multiple non-adjacent columns, select the columns you wish to delete by clicking on the first column header and then, holding down the CTRL key, click on each additional column header of the columns you wish to delete.

deletemultiple select non adjacent columns

Right-click on the column header and select Delete.

deletemultiple delete non adjacent columns

OR

In the Ribbon, select Home > Cells > Delete > Delete Sheet Columns.

deletemultiple ribbon delete non adjacent columns

Delete Multiple Rows and Columns in Google Sheets

Deleting multiple rows and columns in Google Sheets works much the same as it does in Excel.

You can select adjacent rows or columns by clicking on the row or column header and dragging down or across to the row or column header of the last row or column you wish to delete.

You can select non-adjacent rows or columns by clicking on the first row or column header, and then, holding down the CTRL key, click on any further row or column headers required.

As with Excel, click on the row/column header with the right mouse button and select the Delete option from the quick menu (e.g., Delete rows 2 – 8).

deletemultiple gs rows right click

OR

In the Menu, select Edit > Delete, and then select the options (e.g., Rows 2 – 8) as shown below.

deletemultiple gs rows menu

Bottom line: Learn some of my favorite keyboard shortcuts when working with rows and columns in Excel.

Skill level: Easy

Keyboard Shortcuts for Rows and Columns in Excel

Whether you are creating a simple list of names or building a complex financial model, you probably make a lot of changes to the rows and columns in the spreadsheet.  Tasks like adding/deleting rows, adjusting column widths, and creating outline groups are very common when working with the grid.

This post contains some of my favorite shortcuts that will save you time every day.

I’ve also listed the equivalent shortcuts for the Mac version of Excel where available.

#1 –  Select Entire Row or Column

Shift+Space is the keyboard shortcut to select an entire row.

Ctrl+Space is the keyboard shortcut to select an entire column.

Mac Shortcuts: Same as above

Select Entire Row or Column in Excel Keyboard Shortcuts

The keyboard shortcuts by themselves don’t do much.  However, they are the starting point for performing a lot of other actions where you first need to select the entire row or column.  This includes tasks like deleting rows, grouping columns, etc.

These shortcuts also work for selecting the entire row or column inside an Excel Table.

Keyboard Shortcut to Select Rows or Columns in Excel Table

When you press the Shift+Space shortcut the first time it will select the entire row within the Table.  Press Shift+Space a second time and it will select the entire row in the worksheet.

The same works for columns.  Ctrl+Space will select the column of data in the Table.  Pressing the keyboard shortcut a second time will include the column header of the Table in the selection.  Pressing Ctrl+Space a third time will select the entire column in the worksheet.

You can select multiple rows or columns by holding Shift and pressing the Arrow Keys multiple times.

Select Multiple Columns with Shift Plus Arrow Keys

#2 – Insert or Delete Rows or Columns

There are a few ways to quickly delete rows and columns in Excel.

If you have the rows or columns selected, then the following keyboard shortcuts will quickly add or delete all selected rows or columns.

Ctrl++ (plus character) is the keyboard shortcut to insert rows or columns.  If you are using a laptop keyboard you can press Ctrl+Shift+= (equal sign).

Mac Shortcut: Cmd++ or Cmd+Shift+

Insert Entire Row in Excel

Ctrl+- (minus character) is the keyboard shortcut to delete rows or columns.

Mac Shortcut: Cmd+-

Delete Selected Column in Excel

So for the above shortcuts to work you will first need to select the entire row or column, which can be done with the Shift+Space or Ctrl+Space shortcuts explained in #1.

If you do not have the entire row or column selected then you will be presented with the Insert or Delete Menus after pressing Ctrl++ or Ctrl+-.

Insert or Delete Menu Appears When Entire Row or Column is Not Selected

You can then press the up or down arrow keys to make your selection from the menu and hit Enter.  For me it is easier to first select the entire row or column, then press Ctrl++ or Ctrl+-.

So, the entire keyboard shortcut to delete a column would be Ctrl+Space, Ctrl+-.  You could also use the keyboard shortcut Alt+H+D+C to delete columns and Alt+H+D+R to delete rows.  There are lots of ways to do a simple task… 🙂

#3 – AutoFit Column Width

There are also a lot of different ways to AutoFit column widths.  AutoFit means that the width of the column will be adjusted to fit the contents of the cell.

You can use the mouse and double-click when you hover the cursor between columns when you see the resize column cursor.

Double-Click Resize Column Cursor to Autofit Column

The problem with this is that you might just want to resize the column for the date in cell A4, instead of the big long title in cell A1.  To accomplish this you can use the AutoFit Column Width button.  It is located on the Home tab of the Ribbon in the Format menu.

AutoFit Column Width Button in Excel

The AutoFit Column Width button bases the width of the column on the cells you have selected.  In the image above I have cell A4 selected.  So the column width will be adjusted to fit the contents of A4, as shown in the results below.

AutoFit Column Width Button Resizes Column Based on Selected Cell Contents

Alt,H,O,I is the keyboard shortcut for the AutoFit Column Width button.  This is one I use a lot to get my reports looking shiny. 🙂

Alt,H,O,A is the keyboard shortcut to AutoFit Row Height.  It doesn’t work exactly the same as column width, and will only adjust the row height to the tallest cell in the entire row.

Mac Shortcuts: None that I know of.  The Mac version does not use the Alt key sequence which I believe is a limitation of the Mac OS.

#3.5 – Manually Adjust Row or Column Width

The column width or row height windows can be opened with keyboard shortcuts as well.

Alt,O,R,E is the keyboard shortcut to open the Row Height window.

Alt,O,C,W is the keyboard shortcut to open the Column Width window.

Excel Keyboard Shortcuts for Row Height and Column Width

The row height or column width will be applied to the rows or columns of all the cells that are currently selected.

These are old shortcuts from Excel 2003, but they still work in the modern versions of Excel.

Mac Shortcuts: None that I know of.  The Mac version does not use the Alt key sequence which I believe is a limitation of the Mac OS.

#4 – Hide or Unhide Rows or Columns

There are several dedicated keyboard shortcuts to hide and unhide rows and columns.

  • Ctrl+9 to Hide Rows
  • Ctrl+0 (zero) to Hide Columns
  • Ctrl+Shift+( to Unhide Rows
  • Ctrl+Shift+) to Unhide Columns – If this doesn’t work for you try Alt,O,C,U (old Excel 2003 shortcut that still works).  You can also modify a Windows setting to prevent the conflict with this shortcut.  See the comment from Pablo Baez on Oct 5, 2015 below for further instructions.  Thanks Pablo! 🙂

Mac Shortcuts: Same as above

The buttons are also located on the Format menu on the Home tab of the Ribbon.  You can hover over any of the items in the menu and the keyboard shortcut will display in the screentip (see screenshot below).

Keyboard Shortcuts to Hide and Unhide Rows and Columns in Excel

The trick with getting these shortcuts to work is to have the proper cells selected first.

To hide rows or columns you just need to select cells in the rows or columns you want to hide, then press the Ctrl+9 or Ctrl+Shift+( shortcut.

To unhide rows or columns you first need to select the cells that surround the rows or columns you want to unhide.  In the screenshot below I want to unhide rows 3 & 4.  I first select cell B2:B5, cells that surround or cover the hidden rows, then press Ctrl+Shift+( to unhide the rows.

Select Cells That Surround Hidden Rows or Columns Before Unhiding

The same technique works to unhide columns.

#5 – Group or Ungroup Rows or Columns

Row and Column groupings are a great way to quickly hide and unhide columns and rows.

Shift+Alt+Right Arrow is the shortcut to group rows or columns.

Mac Shortcut: Cmd+Shift+K

Shift+Alt+Left Arrow is the shortcut to ungroup.

Mac Shortcut: Cmd+Shift+J

Again, the trick here is to select the entire rows or columns you want to group/ungroup first.  Otherwise you will be presented with the Group or Ungroup menu.

Keyboard Shortcut to Ungroup Rows or Columns in Excel

Alt,A,U,C is the keyboard shortcut to remove all the row and columns groups on the sheet.  This is the same as pressing the Clear Outline button on the Ungroup menu of the Data tab on the Ribbon.

*Bonus funny: At some point when using the group/ungroup shortcuts, you will accidentally press Ctrl+Alt+Right Arrow.  This is a Windows shortcut that orientates the entire screen to the right.  I call it “neck ache view”.  To get it back to normal press Ctrl+Alt+Up Arrow.

If your co-worker or boss accidentally leaves their computer unlocked and you want to play a joke on them, press Ctrl+Alt+Down Arrow.  This will turn their screen upside down.  Don’t forget to record a video of their WTF reaction… 🙂

What Are Your Favorites?

There are a ton of keyboard shortcuts for working with rows and columns.  The above are some of my favorites that I use everyday.  What are some of your favorites?  Please leave a comment below.  Thanks! 🙂

Would you like to know how you could easily delete one or more columns in Excel? We can take a look at it together in this tutorial!

See the video tutorial and transcription below:

See this video on YouTube: 
https://www.youtube.com/watch?v=RYwLnhpooiA

If you’re asking how to remove columns in Excel, you’re in the right place! To find the answer, we’ll use the data table you can see right in front of you now.

How to Delete Columns in Excel - data table

First, you need to click on the selected column heading represented by a letter located on the top of the spreadsheet. That’s how you mark the column you want to remove. In our case, this is gonna be column B.

Now right-click and choose the option ‘Delete’.

How to Delete Columns in Excel - delete option

And that’s all you need to do! You may have spotted that the order of the columns got adjusted to the change we’ve made. February’s not in column C anymore, but it’s moved to column B.

How to Delete Columns in Excel - deleted column

And here are two tips to make your life with Excel easier:

How to Remove Multiple Columns That Are Next to Each Other at Once in Excel

If you need to remove multiple columns that are next to each other at once, select the first column of the batch – click on the left button of the mouse, then hold and drag through all the columns you want to delete.

How to Delete Columns in Excel - delete multiple columns

You don’t need to waste your time counting the number of columns you’re highlighting – Excel will do that for you! Just look at the little box on the right where you’ll see the selected column count.

How to Delete Columns in Excel - caunt deleted columns

Once you’ve marked all the columns you want to remove, repeat the steps you already know – right-click into the highlighted area and select ‘Delete’. Good job!

How to Delete Columns in Excel - remove multiple columns

But watch out!

How to Remove Multiple Columns That Are Not Consecutive

If the columns you need to delete are not consecutive, you’ll have to try a slightly different way to remove them.

Select the columns by clicking on the first one, then find and press on the keyboard the ‘Ctrl’ key. While holding it, select any column you need by simply clicking on it. Let’s pick columns C, E and G, now.

How to Delete Columns in Excel - remove columns

Use the right-click, choose ‘Delete’, and we’re done!

How to Delete Columns in Excel - delete more columns at onceHow to Delete Columns in Excel - lost columnsHow to Delete Columns in Excel - lost columns

There’s one thing to keep in mind, though.

How to Prevent Loss of Data in Excel

In this tutorial, you saw how to delete columns from a spreadsheet.  Before you remove any columns, make sure you won’t need the data they contain, since all the information becomes lost after deletion.

If you still need the information contained in the columns you intend to remove, it’s always better to hide them.

Don’t miss out a great opportunity to learn:

  • How to Hide Columns in Excel
  • How to Unhide Columns in Excel
  • How to Insert Column in Excel
  • How to Sum a Column in Excel

See you in the next tutorial!

Like this post? Please share to your friends:
  • Excel calculate from sheet to sheet
  • Excel calculate cell range
  • Excel calculate all worksheets
  • Excel calcium с витамином д
  • Excel calcium для собак состав