Select all visible cells in excel

Watch Video – 3 Ways to Select Visible Cells in Excel

What do you do when you have to copy a range of cells in Excel and paste it somewhere else?

In most cases, the below three steps get the work done:

  1. Select the cells that you want to copy.
  2. Copy the cells (Control + C).
  3. Select the destination cell and paste these cells (Control + V).

But what if you have some hidden cells in the dataset?

Then – these above three steps are not enough.

Let me show you what happens when you try to copy cells that have hidden rows/columns in it.

Suppose you have a dataset as shown below:

Select Visible Cells in Excel - Dataset

Note that there are hidden rows in this dataset (look at the row numbers).

Now see what happens when I try to copy these cells and paste it somewhere else.

Copy and Paste Visible Cells in Excel - Demo

In the above example, I selected the visible cells, but when I paste these cells into another location, it copied the visible as well as the hidden cells.

The workaround to this is to make sure that Excel only selects the visible cells. Then I can copy and paste these visible cells only.

In this tutorial, I will show you three ways to select visible cells only in Excel.

Select Visible Cells using a Keyboard Shortcut

The easiest way to select visible cells in Excel is by using the following keyboard shortcut:

  • For windows: ALT + ; (hold the ALT key and then press the semicolon key)
  • For Mac: Cmd+Shift+Z

Here is a screencast where I select only the visible cells, copy the visible cells (notice the marching ants around selection), and paste these:

Select Visible Cells in Excel - using keyboard shortcut ALT semicolin

Select Visible Cells using Go To Special Dialog Box

While using the keyboard shortcut is the fastest way to select visible cells, if you don’t want to use the keyboard or don’t remember the shortcut, there is another way.

You can use the ‘Go To Special’ dialog box to select visible cells in a dataset.

Here are the steps:

  1. Select the data set in which you want to select the visible cells.
  2. Go to the Home tab.Home tab in the ribbon
  3. In the Editing group, click on Find and Select.Find and Select in the Ribbon
  4. Click on Go To Special.Go to special option in the drop down
  5. In the ‘Go To Special’ dialog box, select ‘Visible cells only’.Select visible cells only option
  6. Click OK.

This would select all the visible cells in the dataset.

Also read: Select Till End of Data in a Column in Excel (Shortcuts)

Select Visible Cells using a QAT Command

Another great way to select visible cells in Excel is to add a command to the Quick Access Toolbar (QAT).

Once added, you can simply click this command in the QAT, and it will select visible cells in the dataset.

Here are the steps to add ‘Select Visible Cells’ command to the QAT:

  1. Click on the Customize Quick Access Toolbar icon.Remove Hyperlinks from a Worksheet in Excel - Add to QAT
  2. Select ‘More Commands’.More Commands to add macro to QAT
  3. In the ‘Excel Options’ dialogue box, from the ‘Choose command from’ drop-down, select ‘All Commands’.Add select visible cells command to Quick Access Toolbar
  4. Scroll down the list and click on ‘Select Visible Cells’ option.select visible cells command in Excel options
  5. Click on the Add button.
  6. Click OK.

The above steps would add the ‘Select Visible Cells’ command to the QAT.

select visible cells command in QAT

Now you when you select a dataset and click on this command in the QAT, it will select visible cells only.

You May Also Like the Following Excel Tutorials:

  • How to Deselect Cells in Excel
  • How to Select Non-adjacent cells in Excel?
  • Number Rows in Excel
  • How to Hide a Worksheet in Excel (that can’t be unhidden).
  • How to Select Every Third Row in Excel (or select every Nth Row).
  • Highlight EVERY Other ROW in Excel (using Conditional Formatting).
  • How to Quickly Select Blank Cells in Excel.

Содержание

  • Выберите видимые ячейки с помощью сочетания клавиш
  • Выберите видимые ячейки с помощью диалогового окна «Перейти к специальному»
  • Выберите видимые ячейки с помощью команды QAT

Посмотреть видео — 3 способа выбора видимых ячеек в Excel

Что вы делаете, когда вам нужно скопировать диапазон ячеек в Excel и вставить его в другое место?

В большинстве случаев следующие три шага делают работу:

  1. Выделите ячейки, которые хотите скопировать.
  2. Скопируйте ячейки (Control + C).
  3. Выберите целевую ячейку и вставьте эти ячейки (Control + V).

Но что, если в наборе данных есть несколько скрытых ячеек?

Тогда — этих трех шагов недостаточно.

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

Предположим, у вас есть набор данных, как показано ниже:

Обратите внимание, что в этом наборе данных есть скрытые строки (посмотрите на номера строк).

Теперь посмотрим, что произойдет, когда я попытаюсь скопировать эти ячейки и вставить их в другое место.

В приведенном выше примере я выбрал видимые ячейки, но когда я вставляю эти ячейки в другое место, они копируют как видимые, так и скрытые ячейки.

Чтобы решить эту проблему, убедитесь, что Excel выбирает только видимые ячейки. Затем я могу скопировать и вставить только эти видимые ячейки.

В этом уроке я покажу вам три способа выбрать видимые ячейки только в Excel.

Выберите видимые ячейки с помощью сочетания клавиш

Самый простой способ выделить видимые ячейки в Excel — использовать следующую комбинацию клавиш:

  • Для окон: ALT +; (удерживая клавишу ALT, нажмите клавишу с точкой с запятой)
  • Для Mac: Cmd + Shift + Z

Вот скринкаст, где я выбираю только видимые ячейки, копирую видимые ячейки (обратите внимание на марширующих муравьев вокруг выделения) и вставляю их:

Выберите видимые ячейки с помощью диалогового окна «Перейти к специальному»

Хотя использование сочетания клавиш — самый быстрый способ выделить видимые ячейки, если вы не хотите использовать клавиатуру или не помните сочетание клавиш, есть другой способ.

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

Вот шаги:

  1. Выберите набор данных, в котором вы хотите выделить видимые ячейки.
  2. Перейдите на вкладку «Главная».
  3. В группе «Редактирование» нажмите «Найти и выбрать».
  4. Щелкните Перейти к специальному.
  5. В диалоговом окне «Перейти к специальному» выберите «Только видимые ячейки».
  6. Щелкните ОК.

Это выберет все видимые ячейки в наборе данных.

Выберите видимые ячейки с помощью команды QAT

Еще один отличный способ выделить видимые ячейки в Excel — добавить команду на панель быстрого доступа (QAT).

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

Вот шаги, чтобы добавить команду «Выбрать видимые ячейки» в QAT:

  1. Щелкните значок «Настроить панель быстрого доступа».
  2. Выберите «Дополнительные команды».
  3. В диалоговом окне «Параметры Excel» в раскрывающемся списке «Выбрать команду из» выберите «Все команды».
  4. Прокрутите список вниз и нажмите «Выбрать видимые ячейки».
  5. Щелкните по кнопке Добавить.
  6. Щелкните ОК.

Вышеупомянутые шаги добавят команду «Выбрать видимые ячейки» в QAT.

Теперь, когда вы выбираете набор данных и нажимаете эту команду в QAT, он выбирает только видимые ячейки.

Вы поможете развитию сайта, поделившись страницей с друзьями

Select Only the Visible Cells with Alt+;

  1. Select the range of cells in your worksheet.
  2. Press Alt+; (hold down the Alt key and then press the semicolon key).
  3. Select the range of cells in your worksheet.
  4. Click the Find & Select button on the Home tab, then click Go to Special…
  5. Select Visible cells only…
  6. Click OK.

Contents

  • 1 What is the shortcut to select visible cells in Excel?
  • 2 How do I select filtered rows in Excel?
  • 3 How do I copy and paste only visible cells?
  • 4 How do you select all highlighted cells in Excel?
  • 5 How do I select only visible cells?
  • 6 How do I exclude filtered cells in Excel?
  • 7 How do you paste into a filtered column skipping the hidden cells?
  • 8 How do I paste into a filtered column?
  • 9 How do I select visible cells in Excel for Mac?
  • 10 How do I select certain cells in Excel by color?
  • 11 How do I select highlighted cells only in sheets?
  • 12 How do you select all non highlighted cells in Excel?
  • 13 How do I only filter data in Excel?
  • 14 How do I show only filtered data in Excel?
  • 15 How do I delete a formula in visible cells only?
  • 16 How do I paste in Excel with hidden filtered cells and rows?
  • 17 Can you copy and paste filtered data in Excel?
  • 18 How do I copy and paste filtered data from another sheet in Excel?
  • 19 How do you add filtered cells in Excel?
  • 20 What is the shortcut to copy filtered data in Excel?

What is the shortcut to select visible cells in Excel?

Like a lot of useful actions in Excel, there is a keyboard shortcut for this. After highlighting the entire range, press ALT + ; and only the visible cells will be selected. Once the visible cells have been selected, you can now copy just those cells.

How do I select filtered rows in Excel?

Filter a range of data

  1. Select any cell within the range.
  2. Select Data > Filter.
  3. Select the column header arrow .
  4. Select Text Filters or Number Filters, and then select a comparison, like Between.
  5. Enter the filter criteria and select OK.

How do I copy and paste only visible cells?

Re: Paste TO visible cells only in a filtered cells only

  1. copy the formula or value to the clipboard.
  2. select the filtered column.
  3. hit F5 or Ctrl+G to open the Go To dialog.
  4. Click Special.
  5. click “Visible cells only” and OK.
  6. hit Ctrl+V to paste.

How do you select all highlighted cells in Excel?

Click the Find All button in the Find and Replace dialog box. And it will filter all cells which have the same color as the selected cell. And then press Ctrl + A to select all cells.

How do I select only visible cells?

Select Only the Visible Cells with Alt+;

  1. Select the range of cells in your worksheet.
  2. Press Alt+; (hold down the Alt key and then press the semicolon key).
  3. Select the range of cells in your worksheet.
  4. Click the Find & Select button on the Home tab, then click Go to Special…
  5. Select Visible cells only…
  6. Click OK.

How do I exclude filtered cells in Excel?

In a blank cell, C13 for example, enter this formula: =Subtotal(109,C2:C12) (109 indicates when you sum the numbers, the hidden values will be ignored; C2:C12 is the range you will sum ignoring filtered rows.), and press the Enter key.

How do you paste into a filtered column skipping the hidden cells?

Here’s what you need to do:

  1. Select the visible rows that you want to copy.
  2. Press ALT+; (ALT key and semicolon key together).
  3. Press CTRL+C or right-click->Copy to copy these selected rows.
  4. Select the first cell where you want to paste the copied cells.
  5. Press CTRL+V or right-click->Paste to paste the cells.

How do I paste into a filtered column?

If you want to pasting cells into a hidden or filtered cells, you need to select the visible blank cells firstly with Alt + ; shortcut, and then just press Ctrl + C keys to copy the selected cells, and then press Ctrl + V to paste your data into the selected visible cells.

How do I select visible cells in Excel for Mac?

The easiest way to select visible cells in Excel is by using the following keyboard shortcut:

  1. For windows: ALT + ; (hold the ALT key and then press the semicolon key)
  2. For Mac: Cmd+Shift+Z.

How do I select certain cells in Excel by color?

On the Data tab, click Filter. in the column that contains the content that you want to filter. Under Filter, in the By color pop-up menu, select Cell Color, Font Color, or Cell Icon, and then click the criteria.

How do I select highlighted cells only in sheets?

The Google Sheets filter by color method is very similar to the sort by color method. With the filters added to your dataset, click one to bring up the menu. Select “Filter by color” and then select to filter on the background cell color or the text color.

How do you select all non highlighted cells in Excel?

Select all cells in the range you use, and click Kutools > Select > Select Cells with Format. 4. Click Ok > Yes, all non-highlighted cells have been selected. Press Delete key to remove them.

How do I only filter data in Excel?

Therefore, the solution is to use the Subtotal function, which only calculates the visible cells in a range.

  1. Display workbook in Excel containing data to be filtered.
  2. Click anywhere in the data set.
  3. Apply filter on data.
  4. Click below the data to sum.
  5. Enter the Subtotal formula to sum the filtered data.

How do I show only filtered data in Excel?

How to display only rows with certain text in Excel?

  1. In Excel, the Filter function is used widely in our daily work.
  2. Select the ranges you use, and click Data > Filter to enable the Filter function.
  3. Then click at the filter icon on the column you want to filter on, and select Text Filters > Contains.

How do I delete a formula in visible cells only?

To do that:

  1. Click a cell in the array formula.
  2. On the Home tab, in the Editing group, click Find & Select, and then click Go To.
  3. Click Special.
  4. Click Current array.
  5. Press DELETE.

How do I paste in Excel with hidden filtered cells and rows?

Highlight the range you want to copy, press Ctrl G, click “Special…”, select “Visible Cells Only”, and then press Ctrl C to copy. Now all hidden cells will be left behind when you paste.

Can you copy and paste filtered data in Excel?

Press CTRL C to copy the selected visible cells to the Clipboard. Select a destination cell (can be on the same sheet, a different sheet, or on a new workbook). Paste the range by pressing CTRL V. Excel copies only the subtotaled rows.

How do I copy and paste filtered data from another sheet in Excel?

To do this, open your Excel spreadsheet and select the filtered data. Press Ctrl + C to copy the data. Next, select the worksheet where you’d like to paste the data. Press Ctrl + V to paste the data into the new worksheet.

How do you add filtered cells in Excel?

Just organize your data in table (Ctrl + T) or filter the data the way you want by clicking the Filter button. After that, select the cell immediately below the column you want to total, and click the AutoSum button on the ribbon. A SUBTOTAL formula will be inserted, summing only the visible cells in the column.

What is the shortcut to copy filtered data in Excel?

To copy data into the same rows in a filtered list:

  1. Select the cells that you want to copy.
  2. Press Ctrl and select the cells where you want to paste (in the same rows)
  3. To select only the visible cells in the selection, press Alt + ; (the semi-colon)
  4. To copy to the right, press Ctrl + R.

Locate hidden cells

Follow these steps:

  1. Select the worksheet containing the hidden rows and columns that you need to locate, then access the Special feature with one of the following ways:

    • Press F5 > Special.

    • Press Ctrl+G > Special.

    • Or on the Home tab, in the Editing group, click Find & Select>Go To Special.

  2. Under Select, click Visible cells only, and then click OK.

    Go To Special dialog

All visible cells are selected and the borders of rows and columns that are adjacent to hidden rows and columns will appear with a white border.

Note: Click anywhere on the worksheet to cancel the selection of the visible cells. If the hidden cells that you need to reveal are outside the visible worksheet area, use the scroll bars to move through the document until the hidden rows and columns that contain those cells are visible.

This feature is not available in Excel for the web.

Do you want to select only the visible cells in a range from Excel?

Excel allows you to hide, filter, and group rows of data. But what happens when you only want to select the visible cells when these features are used?

For certain types of visible cells, selecting a range will select all of the range including the hidden cells. This might not be what you intend.

For example, a common requirement is to copy and paste only the visible values from a range. This can be done in a few ways.

This post will explore the various methods of selecting only the visible cells.

Select Visible Cells with a Keyboard Shortcut

Here is a small dataset of cars. You can see a few of the rows have been hidden. You can see this from the row headings, certain numbers are missing from the sequence.

When you select the visible range of data to copy and paste, this will include all the hidden cells. You will first need to select only the visible cells.

You can select cells manually, but it will be tedious. A better option is to use one of Excel’s built-in methods for selecting the cells.

The easiest way to select visible cells is with a keyboard shortcut. Here’s how.

  1. Select the full range of cells as you normally would do.
  2. Press the Alt + ; keyboard shortcut.

Notice the active range green border will disappear and the cells will appear as a disjointed set of light grey cells to indicate only the visible cells are selected.

When you press Ctrl + C to copy the visible cells, this becomes even more obvious as the green dashed border appears around each set of visible cells.

Select Visible Cells with the Go To Special Menu

Another way to select only the visible cells in your sheet is with the Go To menu.

The Go To menu allows you to select only cells whose content or properties meet certain criteria such as cells that are blank, contain formulas, or have notes attached. This includes the ability to select only visible cells.

  1. Select the full range of cells that contain the visible cells you want to select.
  2. Go to the Home tab.
  3. Click on the Find & Select command in the Editing section.
  4. Select the Go To Special option from the menu.

  1. Select the Visible cells only option from the Go To Special menu.
  2. Press the OK button.

This will select only the visible cells from your original selection.

You can also access the Got To menu with a keyboard shortcut. Press Ctrl + G to open the Go To menu and then click on the Special button to open the Go To Special menu.

Select Visible Cells with the Quick Access Toolbar

Selecting only the visible cells to copy and paste might be an action you frequently use.

If this is the case, you might want to add this command to the quick access toolbar. This way, it will always be easily available with a single click.

This isn’t a command that you can find in the ribbon, but it is available to add to the toolbar.

Here’s how you can add this command to the quick access toolbar.

  1. Right-click anywhere on the quick access toolbar.
  2. Select the Customize Quick Access Toolbar option from the menu. This will open the Excel Options menu on the Customize Toolbar section where you will be able to add new commands.

Now you will be able to add the command to your toolbar.

  1. Select the Commands Not in the Ribbon option.
  2. Scroll down the list and click on the Select Visible Cells option.
  3. Click on the Add button to add the command to your toolbar.
  4. Press the OK button.

Now you should see the command in your toolbar. You can now use this to select visible cells.

  1. Select the range of cells.
  2. Click on the Select Visible Cells command in the toolbar.

Now the visible cells are selected!

Select Visible Cells with VBA

Automation with VBA might be a big part of your work process.

Selecting visible cells with VBA is also possible and will only require a single line of code.

Selection.SpecialCells(xlCellTypeVisible).Select

The above line of VBA code will select only the visible cells from the currently selected range.

Select Visible Cells with Office Scripts

If you are working with automating using Office Scripts, then you can also easily select visible cells with a line of code.

function main(workbook: ExcelScript.Workbook) {
  let rng = workbook.getSelectedRange();
  rng.getSpecialCells(ExcelScript.SpecialCellType.visible);
}

The above Office Script code will get the selected range from your sheet and then select the visible cells using the getSpecialCells method.

Conclusions

Selecting only the visible cells from a range is an important first step if you want to copy and paste values from a range that contain hidden rows or columns.

You can quickly reduce your selected range to only the visible cells with a shortcut, the Go To menu, or the quick acess toolbar.

Selecting visible cells can also be incorporated into your automation with either VBA or Office Scripts.

Did you know you could easily select the visible cells in a range? Let me know in the comments below!

About the Author

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Понравилась статья? Поделить с друзьями:
  • Select case with if vba excel
  • Select all values in a column excel
  • Select case vba excel примеры
  • Select all titles in word
  • Select case is not vba excel