ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

4 Ways to Select Every Other Row in Excel | Alternate Rows | Copy, Paste, Separate, Highlight

Автор: Jopa Excel

Загружено: 2024-05-24

Просмотров: 2630

Описание: In this Excel video tutorial, we gonna see 4 easy Ways to Select Every Other Row in Excel or to Select Alternate Rows in Excel. You can use a date set, a blank sheet, a table etc.

In the first method, we will manually select the range corresponding to the row in our table using the CTRL shortcut key to be able to select several rows at the same time, at once.

In the second method, we will click on the left on the numbers referring to each of the rows, because this way we can select the entire row in the Excel sheet. We can use the control button to select multiple rows at once.

However, these two processes can take a long time as they are done manually, so to save time and automate tasks in Excel we can use a helper column or use a VBA code, Visual Basic for Applications.

The third method is to use a help column with the alternating sequence that we need, for example, select every other row, so we can use the sequence A, B, A, B etc., but if you want to select one row every three, you can use the sequence A, B, C, A, B, C, etc. Now, with the sequence created you can filter your table and then select only the criteria you need, the row option you need.

The fourth and final method is using a VBA code to automate tasks. You don't need to worry, as we don't need to learn how to create a code in Excel with VBA, you can simply copy and paste the code below, but we have to be mindful as some details may change, as explained in the video, such as, the row where you want to start and also the name of your worksheet.


⭐ CODE:

Sub SelectEveryOtherRow()
Dim ws As Worksheet
Dim rng As Range
Dim cell As Range
Dim lastRow As Long
Dim selectedRange As Range
Dim i As Long

' Set your worksheet and range
Set ws = ThisWorkbook.Sheets("Sheet1") ' Change Sheet1 to your sheet name
lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row ' Change "A" to the column you want to check for the last row
Set rng = ws.Range("A1:A" & lastRow) ' Change "A1" to your starting cell and "A" to your column

' Loop through each row
For i = 1 To lastRow Step 2
If selectedRange Is Nothing Then
Set selectedRange = rng.Cells(i, 1)
Else
Set selectedRange = Union(selectedRange, rng.Cells(i, 1))
End If
Next i

' Select the range
If Not selectedRange Is Nothing Then selectedRange.EntireRow.Select
End Sub

⭐

#JopaExcel #Dashboard #Excel

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
4 Ways to Select Every Other Row in Excel | Alternate Rows | Copy, Paste, Separate, Highlight

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Сводные таблицы Excel с нуля до профи за полчаса + Дэшборды! | 1-ое Видео курса

Сводные таблицы Excel с нуля до профи за полчаса + Дэшборды! | 1-ое Видео курса "Сводные Таблицы"

Deep Focus Radio - Музыка для кодирования и производительности

Deep Focus Radio - Музыка для кодирования и производительности

How to make an Invoice Design in Excel | You can Print or save as PDF

How to make an Invoice Design in Excel | You can Print or save as PDF

How to use Microsoft Power Query

How to use Microsoft Power Query

Deep Summer Mix 2025 ☀️🍹 24/7 Live Radio • Deep House Chill Out Music Mix by We Are Diamond

Deep Summer Mix 2025 ☀️🍹 24/7 Live Radio • Deep House Chill Out Music Mix by We Are Diamond

1940's Jazz Bar - Vintage Classics

1940's Jazz Bar - Vintage Classics

Функция ВПР в Excel ➤ Как пользоваться функцией ВПР (VLOOKUP) в Excel

Функция ВПР в Excel ➤ Как пользоваться функцией ВПР (VLOOKUP) в Excel

“Патриоты” не летят, а гражданство США — отбирают: Вашингтон начинает чистку /№971/ Юрий Швец

“Патриоты” не летят, а гражданство США — отбирают: Вашингтон начинает чистку /№971/ Юрий Швец

Эти ОШИБКИ совершает КАЖДЫЙ новичок в Excel. Избавься от них НАВСЕГДА!

Эти ОШИБКИ совершает КАЖДЫЙ новичок в Excel. Избавься от них НАВСЕГДА!

8 инструментов в Excel, которыми каждый должен уметь пользоваться

8 инструментов в Excel, которыми каждый должен уметь пользоваться

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]