How to hide columns in excel

Hide or show rows or columns

Hide or unhide columns in your spreadsheet to show just the data that you need to see or print.

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

Hide columns

  1. Select one or more columns, and then press Ctrl to select additional columns that aren’t adjacent.

  2. Right-click the selected columns, and then select Hide.

Note: The double line between two columns is an indicator that you’ve hidden a column.

Unhide columns

  1. Select the adjacent columns for the hidden columns.

  2. Right-click the selected columns, and then select Unhide.

    Or double-click the double line between the two columns where hidden columns exist.

Need more help?

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

See Also

Unhide the first column or row in a worksheet

Need more help?


Download Article


Download Article

Want to hide certain columns in your spreadsheet? Hiding columns in Excel is a great way to get a better look at your data, especially when printing. We’ll show you how to hide columns in a Microsoft Excel spreadsheet, as well as how to show columns that you’ve hidden.

Steps

  1. Image titled Hide Columns in Excel Step 1

    1

    Double-click your spreadsheet to open it in Excel.

    • If Excel is already open, you can open your spreadsheet by pressing Ctrl + O (Windows) or Cmd + O (macOS) and then selecting the file.
  2. Image titled Hide Columns in Excel Step 2

    2

    Click the letter above the column you want to hide. This selects the entire column.

    • For example, to select the first column (column A), click the A at the top of the column.
    • If you want to hide multiple columns at once, just click and drag your cursor over the column letters you want to hide.
    • You can also select multiple non-adjacent columns by holding down Ctrl as you click each column letter.

    Advertisement

  3. Image titled Hide Columns in Excel Step 3

    3

    Right-click the selected column(s). This brings up a menu.

    • If you don’t have multiple mouse buttons, hold down the Ctrl key as you click the column(s) instead.
  4. Image titled Hide Columns in Excel Step 4

    4

    Click Hide on the menu. Any selected columns are now hidden.[1]

  5. Image titled Hide Columns in Excel Step 5

    5

    Unhide columns (optional). If you want to show columns that are hidden, just click any column adjacent to those hidden to select it, and then choose Unhide.

  6. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

Thanks for submitting a tip for review!

References

About This Article

Article SummaryX

1. Open your spreadsheet.
2. Select the column(s) you want to hide.

3. Right-click the selected column(s).
4. Click Hide.

Did this summary help you?

Thanks to all authors for creating a page that has been read 42,783 times.

Is this article up to date?

Содержание

  • Алгоритмы скрытия
    • Способ 1: сдвиг ячеек
    • Способ 2: использование контекстного меню
    • Способ 3: использование инструментов на ленте
  • Вопросы и ответы

Скрытие столбцов в программе Microsoft Excel

При работе с таблицами Excel иногда нужно скрыть определенные области листа. Довольно часто это делается в том случае, если в них, например, находятся формулы. Давайте узнаем, как можно спрятать столбцы в этой программе.

Алгоритмы скрытия

Существует несколько вариантов выполнить данную процедуру. Давайте выясним, в чем их суть.

Способ 1: сдвиг ячеек

Наиболее интуитивно понятным вариантом, с помощью которого можно добиться нужного результата, является сдвиг ячеек. Для того, чтобы произвести данную процедуру, наводим курсор на горизонтальную панель координат в месте, где находится граница. Появляется характерная направленная в обе стороны стрелка. Кликаем левой кнопкой мыши и перетягиваем границы одного столбца к границам другого, насколько это можно сделать.

Сдвиг столбцов в Microsoft Excel

После этого, один элемент будет фактически скрыт за другим.

Столбец сдвинут в Microsoft Excel

Способ 2: использование контекстного меню

Намного удобнее для данных целей использовать контекстное меню. Во-первых, это проще, чем двигать границы, во-вторых, таким образом, удаётся достигнуть полного скрытия ячеек, в отличие от предыдущего варианта.

  1. Кликаем правой кнопкой мыши по горизонтальной панели координат в области той латинской буквы, которой обозначен столбец подлежащий скрытию.
  2. В появившемся контекстном меню жмем на кнопку «Скрыть».

Скрытие столбца в Microsoft Excel

После этого, указанный столбец будет полностью скрыт. Для того, чтобы удостоверится в этом, взгляните на то, как обозначены столбцы. Как видим, в последовательном порядке не хватает одной буквы.

Столбец скрыт в Microsoft Excel

Преимущества данного способа перед предыдущим заключается и в том, что с помощью него можно прятать несколько последовательно расположенных столбцов одновременно. Для этого их нужно выделить, а в вызванном контекстном меню кликнуть по пункту «Скрыть». Если вы хотите произвести данную процедуру с элементами, которые не находятся рядом друг с другом, а разбросаны по листу, то выделение обязательно нужно проводить с зажатой кнопкой Ctrl на клавиатуре.

Скрытие столбцов в Microsoft Excel

Способ 3: использование инструментов на ленте

Кроме того, выполнить эту процедуру можно при помощи одной из кнопок на ленте в блоке инструментов «Ячейки».

  1. Выделяем ячейки, расположенные в столбцах, которые нужно спрятать. Находясь во вкладке «Главная» кликаем по кнопке «Формат», которая размещена на ленте в блоке инструментов «Ячейки». В появившемся меню в группе настроек «Видимость» кликаем по пункту «Скрыть или отобразить». Активируется ещё один список, в котором нужно выбрать пункт «Скрыть столбцы».
  2. Скрытие через ленту в Microsoft Excel

    Lumpics.ru

  3. После этих действий, столбцы будут спрятаны.

Как и в предыдущем случае, таким образом можно прятать сразу несколько элементов, выделив их, как было описано выше.

Урок: Как отобразить скрытые столбцы в Excel

Как видим, существуют сразу несколько способов скрыть столбцы в программе Эксель. Наиболее интуитивным способом является сдвиг ячеек. Но, рекомендуется все-таки пользоваться одним из двух следующих вариантов (контекстное меню или кнопка на ленте), так как они гарантируют то, что ячейки будут полностью спрятаны. К тому же, скрытые таким образом элементы потом будет легче обратно отобразить при надобности.

Еще статьи по данной теме:

Помогла ли Вам статья?

Hiding Excel Column(s)

Hiding a column in excel implies making it invisible so that it is removed from display. A hidden column is not deleted from the worksheet. This means that it does exist and has been only temporarily held from view. In Excel, one can hide both contiguous and non-contiguous columns. However, to use a hidden column again, it needs to be unhidden at first.

For example, a column containing calculations may be hidden. This helps avoid confusion amongst users of a shared worksheet.

A column is hidden when its data needs to be concealed from other Excel users, it is unused and not required for a while, its presence is making comparisons between the remaining columns difficult, and so on. The purpose of hiding an excel column is to allow viewing the relevant areas of a worksheet at a given time.

Table of contents
  • Hiding Excel Column(s)
    • How to Hide Columns in Excel? (Top 4 Methods)
      • Example #1–Hide Columns Using the “Hide” Option of the Context Menu
      • Example #2–Hide Excel Columns Using the “Ctrl+Zero (0)” Shortcut
      • Example #3–Hide Excel Columns by Setting the Column Width as Zero
      • Example #4–Hide Columns Using VBA Code
    • Frequently Asked Questions
    • Recommended Articles

How to Hide Columns in Excel? (Top 4 Methods)

The techniques of hiding columns in Excel are listed as follows:

  1. “Hide” option of the context menu
  2. “Ctrl+zero (0)” shortcut
  3. Column width as zero
  4. VBA code

Let us discuss these methods one by one with the help of examples.

Note: All the following examples demonstrate the process of hiding adjacent (contiguous) columns. For hiding multiple non-adjacent columns, refer to the second question under the heading “frequently asked questions.” This is given at the end of this article.

Example #1–Hide Columns Using the “Hide” Option of the Context Menu

The following table displays the IDs, names, gender, age, and department of some employees of an organization. Consider one column of the table as one column of an Excel worksheet. So, the dataset begins from column A (emp ID) and ends with column G (department).

The first name (column B) and last name (column C) have been concatenated (joined) to form the full name (column D). Since columns B and C are not required (for some time), we want to hide them using the “hide” option of the context menu.

Emp ID First Name Last Name Full Name Gender Age Department
00001 Sneha Kumari Sneha Kumari Female 25 Sales
00002 Sonam Gupta Sonam Gupta Female 28 Sales
00003 Vijay Kumar Vijay Kumar Male 35 Support
00004 Vaibhav Bansal Vaibhav Bansal Male 45 Product Development
00005 Manoj Bhardwaj Manoj Bhardwaj Male 38 Operations
00006 Diwakar Gaur Diwakar Gaur Male 39 Sales
00007 Shaket Bihari Shaket Bihari Male 46 Support
00008 Sumit Das Sumit Das Male 25 Operations

The steps to hide excel columns is listed as follows:

  1. With the help of the mouse, click the label of column B appearing on top. This selects column B entirely. Next, press the keys “Shift+right arrow” to select the entire column C.

    The selection is shown in the succeeding image. Notice that in column A, the numbers have been formatted as text. This has been done to place zeros before each number in cells A2 to A9.

    Note 1: For “Shift+right arrow” to work, hold the “Shift” key, and at the same time, press the right arrow. When the shortcut “Shift+right arrow” is pressed after selecting a column, the selection is extended to an adjacent column on the right.

    When the shortcut “Shift+right arrow” is pressed after selecting a cell, the selection is extended to an adjacent cell on the right.

    Note 2: When the numbers of column A were formatted as text, green triangles (shown in the first image of example #2) had appeared on the upper-left corner of each cell. From the “trace error” button, we clicked “ignore error” (for each cell) to remove such green triangles.

    column A were formatted as text

  2. Right-click the selection and choose “hide” from the context menu. The same is shown in the following image.

    Right-click the selection and choose “hide

  3. The final dataset, with columns B and C hidden, is shown in the following image. Notice that there are double vertical lines (shown in a red box) between the column labels A and D. These lines indicate that columns B and C have been hidden.

    Another indication of hidden excel columns is the change in the sequence of the column labels. After label A, labels B and C are skipped, and straightaway label D is displayed.
    straightaway label D is displayed

Example #2–Hide Excel Columns Using the “Ctrl+Zero (0)” Shortcut

The following image shows a dataset similar to that of example #1. Notice that the number of columns has been reduced this time. Columns A to D are displayed, which consist of the employee ID, first name, last name, and full name respectively.

Ignore the green triangles in column A of the subsequent images. These are displayed because the “ignore error” option from the “trace error” button has not been clicked, unlike in step 1 of the preceding example (example #1).

We want to hide columns B and C by using the shortcut “Ctrl+zero (0)” in Excel.

The steps to hide the stated columns using the given technique are listed as follows:

Step 1: Select columns B and C, which need to be hidden. For this, click the label of column B with the mouse and drag it across to column C. When the mouse pointer is placed on the label of column B, it changes to an arrow pointing downwards.

Note: Alternatively, select any cell of column B and press the keys “Ctrl+space” together. Column B is selected entirely. Next, press the keys “Shift+right arrow” to select column C.

Step 2: Once the columns to be hidden (columns B and C) are selected, press the keys “Ctrl+zero (0)” together.

The steps 1 and 2 are shown in the following image. Hence, columns B and C (selected in step 1) are hidden. Notice that, in the final output, the double vertical lines separate the labels of columns A and D.

Hide Column Shortcut - (Cntrl + 0)

Example #3–Hide Excel Columns by Setting the Column Width as Zero

Working on the dataset of example #2, we want to hide columns B and C by setting the column widthA user can set the width of a column in an excel worksheet between 0 and 255, where one character width equals one unit. The column width for a new excel sheet is 8.43 characters, which is equal to 64 pixels.read more as zero.

The steps to hide the mentioned columns using the given technique are listed as follows:

Step 1: Select the columns to be hidden. So, select columns B and C entirely.

Step 2: Right-click the selection and choose “column width” from the context menu. Set column width as zero and click “Ok.”

Both steps 1 and 2 are shown in the following image. The final dataset, with columns B and C hidden, is also displayed in this image. Double vertical lines appear between the labels of columns A and D.

Note: When a column’s width is entered as zero, the column is hidden from the worksheet.

Hide Column using Column Width

Example #4–Hide Columns Using VBA Code

Working on the dataset of example #1, we want to hide columns B and C with the help of a VBA codeVBA code refers to a set of instructions written by the user in the Visual Basic Applications programming language on a Visual Basic Editor (VBE) to perform a specific task.read more. Consider the dataset to be in “sheet1” of Excel.

The steps to hide columns using a VBA code are listed as follows:

Step 1: From the Developer tab, click “visual basic.” This is shown in the following image.

Note: If the Developer tabEnabling the developer tab in excel can help the user perform various functions for VBA, Macros and Add-ins like importing and exporting XML, designing forms, etc. This tab is disabled by default on excel; thus, the user needs to enable it first from the options menu.read more is not displayed on the ribbon, it must be enabled from the File tab. For the detailed steps, click the given hyperlink.

Unhide Column step 3

Step 2: A new window titled “Microsoft visual basic for applications” opens. Double-click “sheet1.” Next, from the Insert tab, click “procedure.” Specify the name of the procedure and paste the following code:

Worksheets(“Sheet1”).Columns(“B:C”).Hidden = True

This is shown in the following image.

Step 3: Save the file with the .xlsm extension as it supports macros. This extension is used for a macro-enabled workbook, which has been created in Excel 2007 or the newer Excel versions.

Step 4: From the Run tab, click “run sub/user form.” The output is shown in the following image. Notice the double line (shown in a red box) between the column labels A and D. This indicates that the columns in between (i.e., columns B and C) are hidden.

Unhide Column step 8

Frequently Asked Questions

1. What does it mean to hide columns and how is it done in Excel?

To hide a column means removing one or more excel columns from the display. Such hidden columns do exist in the worksheet even though they become invisible. Columns are usually hidden when they are neither being used nor meant to be deleted.

The steps to hide a column in Excel are listed as follows:

a. Select the column to be hidden.
b. Right-click the selection and choose “hide” from the context menu.

The column selected in step “a” is hidden.

Note: For more techniques of hiding a column, refer to the examples of this article.

2. How to hide multiple columns in Excel?

The steps to hide multiple columns in Excel are listed as follows:

a. Select all the columns that need to be hidden.
• For selecting multiple contiguous columns, drag across the column labels with the mouse. Alternatively, select the first column and press the keys “Shift+right arrow” to select columns on the right.
• For selecting multiple non-contiguous columns, click the first column label. Thereafter, hold the “Ctrl” key and click the other column labels.
b. From the Home tab, click the “format” drop-down in the “cells” group.
c. Under “visibility,” select “hide & unhide.” Next, choose “hide columns.”

The columns selected in step “a” are hidden.

3. How to hide and lock columns in Excel?

The steps to hide and lock columns in Excel are listed as follows:

a. Select the entire worksheet by pressing either the keys “Ctrl+A” or the “select all” button. The “select all” button is located at the top-left corner of the Excel worksheet.
b. Right-click the selection and choose “format cells” from the context menu. The “format cells” dialog box opens. Uncheck the “locked” option in the “protection” tab. Click “Ok.”
c. Select the columns to be hidden and locked. Open the “format cells” dialog box again and click the “protection” tab. Check the “locked” option and click “Ok.”
d. Hide the columns selected in the preceding step (step c). For this, keep the columns to be hidden selected and click the “format” drop-down from the Home tab. Next, click “hide columns” from the “hide & unhide” option.
e. From the Review tab, click “protect sheet.” The “protect sheet” dialog box opens. Keep the following checkboxes selected:
• “Protect worksheet and contents of locked cell”
• “Select locked cells”
• “Select unlocked cells”
f. Enter a password and confirm it. Click “Ok” to proceed. The “protect sheet” dialog box closes.

The columns selected in step “c” are hidden. Since the worksheet is protected, these hidden columns cannot be unhidden by the usual ways to unhide a column. The advantage of locking hidden columns is that their content is concealed from the other users of the worksheet.

Note: To unhide the hidden columns, unprotect the sheet in the first place. To unprotect the sheet, click “unprotect sheet” from the Review tab. Next, enter the password and click “Ok.”

Thereafter, unhide the columns by selecting, right-clicking, and choosing “unhide” from the context menu. Alternatively, select the columns and choose “unhide columns” from the “hide & unhide” option of the “format” drop-down (in the Home tab).

Recommended Articles

This has been a guide to hiding columns in excel. Here we discuss the top 4 methods to hide columns in Excel, including the “hide” option of the context menu, shortcut (Ctrl+0), column width (as zero), and VBA code. You can learn more about Excel from the following articles –

  • VBA Hide Columns
  • Excel Hide Shortcut
  • How to Unhide Columns in Excel?
  • How to Freeze or Lock Multiple Columns in Excel?
  • FLOOR Function in Excel

Hide and Unhide Rows and Columns in Microsoft Excel (with Shortcuts)

by Avantix Learning Team | Updated January 29, 2022

Applies to: Microsoft® Excel® 2013, 2016, 2019 and 365 (Windows)

You can hide or unhide columns or rows in Excel using the context menu, using a keyboard shortcut or by using the Format command on the Home tab in the Ribbon. You can quickly unhide all columns or rows as well.

Some users may want to hide all of the unused columns to the right and unused rows below the data to clean up the workspace and display only relevant information to team members or clients.

You will not be able to hide or unhide rows or columns if the worksheet has been protected with a password (and you don’t have the password to unprotect it), if content has been disabled or if the file is read only.

Recommended article: How to Lock and Protect Excel Worksheets and Workbooks

Selecting columns or rows in Excel

It’s important to be able to quickly select columns or rows in Excel if you want to hide them.

To select one or more columns in Excel:

  • To select one column, click its heading or select a cell in the column and press Ctrl + spacebar.
  • To select multiple contiguous columns, drag across the column headings using a mouse or select the first column and then Shift-click the last column.
  • To select non-contiguous columns, click the heading of the first column and then Ctrl-click the headings or the other columns you want to select.

To select one or more rows in Excel:

  • To select one row, click its heading or select a cell in the row and press Shift + Spacebar.
  • To select multiple contiguous rows, drag across the row headings using a mouse or select the first row and then Shift-click the last row.
  • To select non-contiguous rows, click the heading of the first row and then Ctrl-click the headings of the other rows you want to select.

To select all rows and columns in Excel:

  • Press Ctrl + A (press A twice if necessary).
  • Click in the intersection box to the left of the A and above the 1 on the worksheet.

Hiding columns

To hide a column or columns by right-clicking:

  1. Select the column or columns you want to hide.
  2. Right-click and select Hide from the drop-down menu.

To hide a column or columns using a keyboard shortcut:

  1. Select the column or columns you want to hide.
  2. Press Ctrl + 0 (zero).

To hide a column or columns using the Ribbon:

  1. Select the column or columns you want to hide.
  2. Click the Home tab in the Ribbon.
  3. In the Cells group, click Format. A drop-down menu appears.
  4. Click Visibility, select Hide & Unhide and then Hide Columns.

To hide all columns to the right of the last line of data:

  1. Select the column to the right of the last column of data.
  2. Press Ctrl + Shift + right arrow.
  3. Press Ctrl + 0 (zero). You can also use the Ribbon method or the right-click method to hide columns.

Unhiding columns

To unhide a column or columns by right-clicking:

  1. Select the column headings to the left and right of the hidden column(s). To unhide all columns, click the box to the left of the A and above the 1 on the worksheet or press Ctrl + A (twice if necessary).
  2. Right-click and select Unhide from the drop-down menu.

To unhide a column or columns using a keyboard shortcut:

  1. Select the column headings to the left and right of the hidden column(s) by dragging. To unhide all columns, click the box to the left of the A and above the 1 on the worksheet or press Ctrl + A (twice if necessary).
  2. Press Ctrl + Shift + 0 (zero). If this doesn’t work, use one of the other methods.

To unhide a column or columns using the Ribbon:

  1. Select the column headings to the left and right of the hidden column(s). To select all columns, click the box to the left of the A and above the 1 on the worksheet or press Ctrl + A (twice if necessary).
  2. Click the Home tab in the Ribbon.
  3. In the Cells group, click Format. A drop-down menu appears.
  4. Click Visibility, select Hide & Unhide and then Unhide Columns.

To unhide a column or columns by double-clicking:

  1. Select the column headings to the left and right of the hidden columns(s).
  2. Hover the mouse over the hidden column headings.
  3. When the mouse pointer turns into a split two-headed arrow, double-click.

Hiding rows

To hide a row or rows by right-clicking:

  1. Select the row or rows you want to hide.
  2. Right-click and select Hide from the drop-down menu.

To hide a row or rows using a keyboard shortcut:

  1. Select the row or rows you want to hide.
  2. Press Ctrl + 9.

To hide a row or rows using the Ribbon:

  1. Select the row or rows you want to hide.
  2. Click the Home tab in the Ribbon.
  3. In the Cells group, click Format. A drop-down menu appears.
  4. Click Visibility, select Hide & Unhide and then Hide Rows.

To hide all rows below the last line of data:

  1. Select the row below the last line of data.
  2. Press Ctrl + Shift + down arrow.
  3. Press Ctrl + 9. You can also use the Ribbon method or the right-click method to hide the rows.

Unhiding rows

To unhide a row or rows by right-clicking:

  1. Select the row headings above and below the hidden row(s). To unhide all rows, click the box to the left of the A and above the 1 on the worksheet.
  2. Right-click and select Unhide from the drop-down menu.

To unhide rows using a keyboard shortcut:

  1. Select the row headings above and below the hidden row(s). To unhide all rows, click the box to the left of the A and above the 1 on the worksheet or press Ctrl + A (twice if necessary).
  2. Press Ctrl + Shift + 9.

To unhide a row or rows using the Ribbon:

  1. Select the row headings above and below the hidden row(s). To select all rows, click the box to the left of the A and above the 1 on the worksheet.
  2. Click the Home tab in the Ribbon or press Ctrl + A (twice if necessary).
  3. In the Cells group, click Format. A drop-down menu appears.
  4. Click Visibility, select Hide & Unhide and then Unhide Rows.

To unhide a row or rows by double-clicking:

  1. Select the row headings above and below the hidden row(s). To unhide all rows, click the box to the left of the A and above the 1 on the worksheet.
  2. Hover the mouse over the hidden row headings.
  3. When the mouse pointer turns into a split two-headed arrow, double-click.

The method you use to hide or unhide columns or rows is based on personal preference.

Subscribe to get more articles like this one

Did you find this article helpful? If you would like to receive new articles, join our email list.

More resources

How to Convert Text to Numbers in Excel (5 Ways)

How to Use Flash Fill in Excel (4 Ways with Shortcuts)

10 Ways to Save Time Selecting in Excel using the Name Box

How to Delete Blank Rows in Excel (5 Easy Ways with Shortcuts)

How to Highlight Errors, Blanks and Duplicates in Excel Worksheets (Using Formulas)

Related courses

Microsoft Excel: Intermediate / Advanced

Microsoft Excel: Data Analysis with Functions, Dashboards and What-If Analysis Tools

Microsoft Excel: Introduction to Visual Basic for Applications (VBA)

VIEW MORE COURSES >

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you’d like to arrange custom instructor-led virtual classroom or onsite training on a date that’s convenient for you.

Copyright 2023 Avantix® Learning

Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.

Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca

Понравилась статья? Поделить с друзьями:
  • How to hide cells in excel
  • How to hide a column on excel
  • How to have two pages on one in word
  • How to have to columns in word
  • How to have the last word