You can now work with these cells as needed. Click OK to close the dialog box. Now we can right-click on any of the selected cells and click Delete. The ROW function returns the row number of the current cell. Hold down the Ctrl key on your keyboard and click on the row numbers for all the other rows that you want to select (i.e., every other row). I noticed that my post had a typo: Even rows: ISEVEN9ROW()), should be ISEVEN(ROW()). Release the SHIFT key. To change the color shading from rows to columns, execute the following steps. Step 2 in the 7th line defines the step in the selection (every alternate row). Click on the row number of the first row that you want to select. In the Format values where this formula is true field, enter the following formula: =MOD(ROW(),2)=0. Once you have inserted this code into your workbook, you can run the macro by pressing Alt + F8 on your keyboard, selecting the macro from the list, and clicking Run. Hold the Shift key and then press the Spacebar key. This will filter your data set, and you will only see those rows where the value will helper column is TRUE (which is the case for every alternate row). Required fields are marked *. Required fields are marked *. This will select cell C3. Alternatively, you can use a formula to accomplish this task. With the broader descriptions covered, we're ready to explore all the Excel tricks for selecting every other row. Select all the rows in the dataset except the headings, as shown below. In case you want to select every Nth row (say every third row or every fourth row), you can modify the content of the helper column. In this example, we will use theConditional Formattingfeature to highlight the alternate rows. To run this code, a user will need to make a selection of cells that they want to select every other row from first. The entire magic is in the formula =MOD (ROW (),2)=1. To copy values or generate references with a pattern like every 3rd row, every 7th line, etc. See also: How to Display Data With Banded Rows. Like many tasks in Excel, there is more than one way to achieve this. Many times, I have a need to select every other row in Excel so that I can highlight or delete them. 3n. 2. While still holding the CTRL key, use your mouse to click on row 6, to select the entire row in addition to the current selection. Here are the steps to do this using a helper column and the filter functionality: Copy this formula for all the cells in the column. Select the range of cells that you want to format. While the above two methods work well, they are a little time-consuming. Every other row in Excel can be selected manually. Who'll beat who? In cell C1, enter the text Helper Column. In our dataset shown, we are measuring the performance of Sales reps, and I want to select every other row in this dataset. Let us know in the comments! Enter the text Helper in cell G1. I earn a small commission if you buy any products using my affiliate links to Amazon. ExcelTrick.com offers a variety of resources to help users improve their Excel skills. In case you want to select multiple contiguous rows, select multiple adjacent . Select the Blanks radio button then click OK. Excel will now create a non-contiguous cell selection on the blank cells in the helper column. By holding down CTRL, we are able to select every other row or even a bunch of single cells. You will again see that it gets selected and highlighted in gray. 2. Four Ways to Select Every Other Row in Excel Excel University | January 3, 2023 | 4 Comments | Filters, GoTo, Tables, VBA Selecting every other row in Excel can be helpful. Press the CTRL key on the keyboard and select the next alternate column in the same way. If you want to select the entire row, select any cell in the row that you want to be selected and then use the below keyboard shortcut. selecting columns B and D of a dataset). Learn Excel Online FREE | Videos, Functions and Formulas. In the first row of the helper column, insert an X. In case you want to select every other row starting from row number 2, you can modify the code as shown below: A few things to know when using this macro code: If selecting every other row is something you need to do quite often, you can also consider investing in third-party Excel add-ins that can make the process very easy for you. Select the first column by either selecting the column header or dragging down the column. This option is called Banded Rows, and you can toggle that on/off by using the Table Design > Banded Rows checkbox. The above VBA code starts from the third row in our dataset. Now while holding the CTRL key on your keyboard, click on row 4 with your mouse to select this entire row in addition to the current selection. Introduction to Statistics is our premier online video course that teaches you all of the topics covered in introductory statistics. Now, every other row should be selected. Press Ctrl + Shift + Right Arrow on your keyboard to select every other cell in the selected range. We will use the ISODDandISEVENfunctions to separately select the odd and even rows. The reason we subtract 1 is because the OFFSET function doesn't include the reference cell when the rows argument is applied. 1. to select every 7th row there is an EASIER WAY: in the first 7 rows of your column but one (the first) you write something inside. Finally, the MOD function takes two arguments: a number and a divisor. You can also use the fill handle to speed up the process of filling the alternating values down. 3. Then, enter the following formula in the first cell of the new column: Drag the formula down to apply it to all the cells in the column. Using Conditional Formatting to Mark Selectable Cells, How to Make a Roster in Excel (with Detailed Steps), How to Remove Sparklines in Excel (2 Quick Ways), [Fixed!] One of those benefits is that the data is formatted nicely with alternate colored rows, making it simpler for us to eye over the data. Enter the starting cell reference in a blank cell. Manually selecting rows can take a lot of time and leaves room for error. To quickly toggle between selecting all cells and every other cell in a row in Excel, you can use a combination of the F5 (Go To) and Ctrl + Shift + Arrow keys shortcuts. Always try to gather knowledge from various sources and try to make innovative solutions. it then uses a simple For Next loop to go through all the rows and only select every second row, starting from the third row. Open the VBA Editor using the shortcut Alt + F11. Access all Undergrad and Masters lessons with a Campus Pass or CPE Pass. To select every other row in Excel using a formula, you can use the following steps: Insert a new column next to the data you want to filter. This formula can be easily modified to highlight evens, odds, or multiples. Click on the Format. 1. The dataset is about the sales information of a certain tech shop. Click on cell B2. Press Ctrl + Shift + Down Arrow on your keyboard to select all the filtered rows. First, insert a new column next to the data you want to filter. The current values are: The number 1 in both lines of the code starts the selection from the first line. From the Table Style options (of the Design tab), right-click any style option that you like and select ' Duplicate ' from the popup menu. Method - 1: Selecting every other row using ctrl button and handle Step 1 - Select the required cell. I love to learn new things. To open a new module, go to Developer > Visual Basic. Click the Format button and choose the formatting or conditional formatting options you want to apply to the selected cells. Press the ctrl button on the keyboard. You can click the top-left cell, keep the mouse button pressed and drag it towards the bottom-right to select the intended data. button and choose formatting for the odd rows. Aside from making it easy to get rid of duplicate rows, it can also be a great way to highlight important information, make the data easier to read with formatting, and more. Click on the Data tab in the ribbon, then click Filter. Click the Format button and choose the formatting options you want to apply to the selected cells (e.g., change the font color or background color). for every third row, you can enter FALSE FALSE TRUE and populate the helper column with that pattern. To use the script, copy and paste it into a new module in the VBA Editor. Home How to Select Every Other Row (Alternate Row) in Excel? Shortcut Key: Ctrl + Click To select non-adjacent rows, hold down the Ctrl key while clicking on the row numbers of the rows you want to select. Doing this will bring up the New Formatting Rule dialog box. Click the dropdown arrow in the header of the new column with the formula, and uncheck the box next to value 1. If you have many rows, the remaining options may be a better fit. Alternatively, if your data is sorted by a column, you can quickly select every other row by using the Ctrl + Shift + L keyboard shortcut. You can now edit the selected cells as needed. Selecting Non-Adjacent Rows If you need to select rows that aren't next to each other, there's a simple shortcut for that as well. Heres how: To highlight alternate cells in a row in Excel, you can use a combination of the MOD and COLUMN functions in a formula. If you need to make an adjustment, you can overwrite the cell range in the box or simply click the small upward arrow, and then select the cells from your worksheet using the mouse. Learn more about us. Click on the first row you want to select. If you data has headers, make sure the My table has headers box is checked. This technique works great if you want to select every other row in Excel within your data set to then delete it. Once you have selected the rows you want, press Ctrl + Shift + L again to turn off the filter. Click the Special button at the bottom of the dialog box. Change this to N for every Nth row (e.g., 3 for every 3rd row) and change the 1 in both lines to the number where the first selection is to begin. How to Select Non-adjacent Cells in Excel? And the final way that I want to show you to select every other row in Excel is by using a simple VBA code. You can use the following basic formula to select every nth row in Excel: =OFFSET ($A$1, (ROW ()-1)*n,0) This formula selects every nth row. If you use this method, double-check your work to make sure you've only clicked on the rows that you want to include. Now check Select All on the Helper Column filter, so that both TRUE and FALSE are checked. From the options available, click on Use a formula to determine which cells to format. [MOD formula returns the remainder when the ROW number is divided by 2]. Select New Module, and copy/paste this code: Note that its always a good idea to back up your work and test VBA code before applying them to important Excel files. Currently, I'm working as a Project Manager at ExcelDemy. Then you select this 7 rows and copy them on the entire column. How to Select Cells in Every Other Row Method 1: Using Go to Special and Selection Offset Method 2: Using Filters Method 3: Using a VBA Macro Code How to Select Cells in Every Other Column How to Highlight Every Alternate Cell How to Sum up Values of Every Alternate Cell If your goal is to delete every other row, a helper column that uses alternating values is a good option. You need the Excel Proficiency Roadmap now. In the Format values where this formula is true field, enter the following formula: =MOD(COLUMN(),2)=0 This formula will highlight every other cell in each row based on whether the column number is odd or even. In the Format values where this formula is true field, enter the following formula if you want to select every 3rd cell: =MOD(COLUMN(),3)=0 If you want to select every 4th cell, use this formula instead: =MOD(COLUMN(),4)=0. The ultimate Excel charting Add-in. Now click on other cells, the previously selected cells other than the selected cells will appear. You can use the following basic formula to select every other row in Excel: =OFFSET ($A$1:$B$1, (ROW ()-1)*2,0) This formula selects every other row (for columns A and B) in the current sheet starting from row 1. You can use Conditional Formatting and Filtering to select every other row. Your email address will not be published. Manual highlighting method You can highlight each row manually if you have only a few rows to highlight. We have the example dataset, as shown below, that lists some products and their corresponding prices. This will populate the column with either 0 or 1, depending on whether the row number is even or odd. Note that this method permanently removes the cut rows from the original position, so make sure to save a backup copy of your workbook before using this method. Introduction to Statistics is our premier online video course that teaches you all of the topics covered in introductory statistics. Note: In many cases, the reason people want to select every other row in Excel is to highlight them. Tags: ISEVEN FunctionISODD FunctionMOD FunctionROW FunctionRows in Excel. Then (3) select the color you wish every other row in the selection to be formatted with. This is what pasting our selection looks like and it only contains the data from the alternate rows, put together: But without pasting it anywhere, if you unravel the dataset back to its full form, the selection of alternate rows doesn't remain: For the alternate rows selection to remain when the whole dataset is restored, we will need to select the visible cells while the data is filtered. This brings us to another point, automatic selection leaves out the chances of human error that can be made while selecting manually. And in case you have a small data set, its best just to select every alternate row manually. 2. Here, I'm trying to provide enriched quality content regarding Excel basics to Advanced. As a result, every other row will be selected from the first row. Once every other cell in that column is selected, you can right-click any of the selected cells and select Delete. Select range C2:C3 and then drag the values down the column to see the two alternate values populating the column. Alternatively, you can click on the top-left cell first. Applying formatting: If you want to apply a specific format (such as background color or font style) to every other cell in a row, selecting every other cell can make this process quicker and easier. In cell C1, enter the text Helper Column. The benefits of selecting rows this way? You can also use conditional formatting and filtering to select every other row. Here are the steps to do this using a VBA code. To select every other row in Excel using a formula, you can use the following steps: Alternatively, if you just want to display every other row without actually selecting or deleting them, you can use conditional formatting. In this instance, we will highlight only the odd rows using theConditional Formattingoption. But using these functions will limit the selection to every other row only and not every Nth row. See the syntax or click the function for an in-depth tutorial. If you want to more practice with VBA, check out our post on Microsoft Excel macros to learn about recording macros, editing VBA codes, and running them in Excel. 3 Quick Ways to Select Visible Cells in Excel, How to Select Every Third Row in Excel (or select every Nth Row), How to Quickly Select Blank Cells in Excel, Press the Control key on your keyboard and keep holding it, Click on the row header of the row that you want to select (in this example, it would be row number 3, which is the second record in our dataset), Continue to hold the Control key and then click the row header of all the rows that you want to select, Once done with the selection, leave the control key. That won't be working fast or smart so adopt this option if there's a very small lot to be selected and if you want to select the full row instead of the rows within a dataset. Do you have any other quick ways to select every other row in Excel? Entering data: If you need to enter data into specific cells in a row, selecting every other cell can help you avoid accidentally entering data into the wrong cells. How to Highlight Entire Row Based on Cell Value in Excel, Excel: Find Text in Range and Return Cell Reference, Excel: How to Use SUBSTITUTE Function with Wildcards, Excel: How to Substitute Multiple Values in Cell. This video shows how to. Now, hold down the Ctrl key on your keyboard and then press the down arrow key once. And let's say I have a list of states at rows 3, 6, 9. In case you want to use this code on all your Excel workbooks, you should save this in your, Once you have added this code in the workbook where you want to use it or in the Personal Macro Workbook, you can also add an icon to run the code with a single click from the. 2. How to Select Every Other Row in Excel (6 Easy Ways) Shamima Sultana Mar 23, 2023 0 Get FREE Advanced Excel Exercises with Solutions! Please check your entries and try again. We can manually verify this by identifying ever other row in the original dataset: We can see that every other row from the original dataset has indeed been selected. By subtracting 2 from this value, we get the row number relative to the starting cell. Insert Drop-Down Calendar With Date Picker Control in Excel, Drop Down Categories / Subcategories in Excel & Google Sheets . There are 4 columns in the dataset which are Sales Rep, Region, Product, and Sales. These 5 tips will improve your data manipulation skills. Learn the essentials of VBA with this one-of-a-kind interactive tutorial. So if you passed in the number 3 to be divided by 2, youd get 1. Click OK to close the dialog box. Heres how: This should highlight every other cell in each row based on the chosen formula. When you are done, click OK to exit the formatting menu and click OK again to exit the Rule Formatting menu. For example, you can specify that you need to select one row after every other row (or one row after every two rows). On the Home tab, in the Styles group, click Format as Table. The following examples show how to use this formula in practice. As soon as you run the above code, you will notice that every other row starting from row #3 has been selected in our data set. Required fields are marked *. With the help of handle, select the data range. Consider a small example of randomly selecting names from a list and the choice of selection is every other row. With the help of handle select the required cell. The prime one is that it is far less manual than selecting rows manually; with several clicks, alternate rows will be selected automatically. Save my name, email, and website in this browser for the next time I comment. You can quickly adjust the color formatting by selecting any cell within your data table and then clicking Table Design up on the ribbon. While the SHIFT key is pressed, select the last row of the range that you want to select. The steps ahead offer the complete details of manually selecting every other row in Excel: Every other row within the dataset will be selected: Note: Selecting the rows manually by clicking on the row headers selects the entire row, not just the rows in the dataset. The alternate TRUE and FALSE values are added for selecting every other row. To select only odd rows in Excel, you can use the following steps: This should select only the odd rows in your data and copy them to another location. When you are satisfied with the selection, close the. document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); ExcelDemy is a place where you can learn Excel, and get solutions to your Excel & Excel VBA-related problems, Data Analysis with Excel, etc. Learn more about us. This will select all values in the column that are different than the active cell, which is typically the first cell you click when you drag to select an entire range. 307 E Willow St #3, Harrisburg, SD 57032, Excel University | Copyright 2012-2023 | All rights reserved. Highlight the cells whose rows you wish to select. Enter the first two values, 1 and 2, and then select those cells. With these cells still selected, click: This will open the Go To Special dialog box. Below I have a data set where I want to select every other row. To convert a range to a data table, first select the data, including a header if you have one, and then click: To quickly insert a table, select your data, then press CTRL + T on the keyboard. You can then click the Filter control (drop-down) for the helper column (the one with the active filter) and clear the filter for that specific column. Here are the steps: This will delete every other row in the selected range. So if that is the situation and you agree with us, you can select alternate rows manually. Save my name, email, and website in this browser for the next time I comment. In the Reference field, type the range of cells you want to select (e.g., A1:X1). For example, Input: Richmond Virginia New York City New York Output: Using conditional formatting is nothing more than having an understanding of what makes something TRUE or FALSE. How to Count Filtered Rows in Excel Selecting a row or rows using a keyboard. Data Analysis is one of my favorite fields as I love to extract patterns based on problems. You can adjust the 2 in the formula to highlight cells at different intervals (e.g., every 3rd cell or every 4th cell). Now subscribe to Excel Trick and get a free copy of our ebook "200+ Excel Shortcuts" (printable format) to catapult your productivity. Use the contents table below to skip to each section. Suppose we have the following dataset in Excel that contains information about points scored by various basketball players: We can use the following formula to select every other row in this dataset: We will type this formula into cell D1 and then drag and fill it down to the remaining cells in column D: Notice that every other row has been selected from the original dataset. So anything you do to this data set would not impact the cells that are not visible. 3n - 2. Click the dropdown arrow in the new columns header and uncheck the box next to value 1. If the result is 0, the row is even and should be selected; if the result is 1, the row is odd and should be skipped. The default color formatting will be applied and every other row will be colored. Our ultimate goal is to create a platform forpractical and in-depth learning of Excelin the simplest possible way and to have a positive impact on the lives of people who are with us. Hold down the Shift key again and then press the down arrow key twice. Easily insert advanced charts. The breaks signify hidden rows. You can very quickly select the rows you want to alter and then apply the change to all of them in one go. One simple workaround to select every other row in Excel is by adding a helper column and then using this helper column to filter the data so that only those rows are visible that we need to select. Notify me of follow-up comments by email. Any order is fine. 2. . While this method is quite straightforward, it does have a huge limitation it is time-consuming and can only work when you have a small data set. At the top of the pop-up window below Select a Rule Type, pick "Use a Formula to Determine Which Cells . So by passing in the row number, and dividing it by 2 using the MOD function, well be able to tell if a row number is odd or even. Here are the steps: This should apply the chosen formatting or conditional formatting to every other cell in each row based on whether the column number is odd or even. How to Select Non-adjacent cells in Excel? We can use this small script to automatically select every other row of a given range. Press Ctrl + G on your keyboard to open the Go To dialog box. The manual method works best with these kinds of datasets since it can be quite time-consuming if you have many rows of data. Finally, select and delete the filtered rows by highlighting them and pressing the Delete key on your keyboard. Manipulating data: If you want to perform a calculation on a specific set of cells in a row, selecting every other cell can help you easily identify the cells you need to include in your formula. However, when you add more data in additional rows, the highlighting will automatically take effect on the additional rows. For example, you may want to highlight every other row, or you may want to delete or copy every other in your data set. In the cell below it, enter the formula: =OFFSET($A$1,2+(ROW()-2)*2,0). Today, we are going to show how to select every other row in Excel. In the first cell of the new column, enter the following formula: =MOD(ROW(),2) Drag the formula down to apply it to all the cells in the column. Select Every Other Row In Excel 5 Different Ways, add row 1 of selected cells to the range variable, loop through every other row and add to range variable. To select every other row using Filter with Go To Special I added a new column in the dataset name Row Even/Odd. Selecting filtered rows (or cells) actually selects both the visible and the hidden rows. Filter the data based on the values in the new column. All the rows with the yellow cells are shown. Select the Go To Specialoption. Excel endless possibilities. Press F5 on your keyboard to open the Go To dialog box. Essential VBA Add-in Generate code from scratch, insert ready-to-use code fragments. If you want to select the entire row (instead of just the helper column cells as in the previous option), this method will work well. By a helper column, we would enter true and false values, filter one of them out, use the Go To Special feature to select the visible cells and we should be done. These will return TRUE and FALSE according to the row numbers. The simplest way to select every other row in Excel is to hold down down the CTRL button on your keyboard ( on MAC) and then the number of the rows you want to select. In this article, we will show 6 handy ways to select every other row in Excel. Excel has a built-in feature to format ranges as tables. Click on the Home tab in the ribbon, then click Conditional Formatting. If your goal is to have a different format for alternating rows for cosmetic purposes, or to make your data easier to read, then a table is an easy option. This method is useful when you have many rows of data. Bookmark and come back to reference. Click Ok to see every other row selected. Select both these values (we have selected cells D3 and D4). Right-click on the destination cell and choose Insert Copied Cells from the context menu. Four Ways to Select Every Other Row in Excel. The change in the selection is notable with breaks along every row. This should have selected every other row. In the Delete dialog box, select Entire Row and click OK. Alternatively, you can double-click the fill handle and it will automatically extend down to the end of your data set. In this final method, we will use a simpleVBAcode to select every other row in Excel. In our example below, we have a column showing student names in one column and whether the student intends to attend the school camp recorded in another column. As a bonus, here is a snippet of VBA code you can swipe to select every other row. Another useful situation can be when you want to select every other row and then copy and paste them into some other location in your worksheet. but in case you have large data sets, you can use the filter technique it uses a helper column or the VBA method. Includes on-demand training plus live office hours. (You can press Tab to move the active cell within a selected range.). In the first cell of the new column, enter the following formula: =MOD(ROW()-rowOffset,2) Replace rowOffset with the number of rows at the top of your data that you dont want to include in the selection (e.g., if you want to exclude the first 3 rows, use =MOD(ROW()-3,2)). The information on this site is for informational and educational purposes only. It also supports multiple methods for one feature so users can choose the one they feel most comfortable with. Double-check that the range of cells you are going to format as a table is correct. If you prefer to keep the selections limited to the dataset, the other two methods in this tutorial should help you fine. We will create our column by typing TRUE in cell C2 and FALSE in cell C3 as shown below. Next you can set the color of that youd like the alternate rows to be. Click on any cell in the column to the left of the data you want to filter. To apply conditional formatting to every other cell in each row (e.g., highlight cells that contain a specific text): =MOD(COLUMN(),2)=0 and then choose the appropriate rule from the list. In this tutorial, we are going to go through three different ways of selecting every other row in Excel. Excel allows users to perform a wide range of tasks such as organising, analysing and manipulating data, creating charts and graphs, and performing mathematical calculations. Heres how: This should select every 3rd or 4th cell in each row based on the chosen formula. After selecting all the rows, go to the 'Home' tab and click the arrow next to the 'Fill Color' button (paint bucket icon) in the Font Group. So in this case, cell B2 is row number 2. By a helper column, we would enter true and false values, filter one of them out, use the Go To Special feature to select the visible cells and we should be done. Go to the Home tab, select the Conditional Formatting drop-down arrow in the Styles section, and choose "New Rule.". 1. For example, we can use the following formula to select every fifth row from the list: Notice that every fifth row has been selected from the list of original values: The following tutorials explain how to perform other common operations in Excel: How to Delete Filtered Rows in Excel Open the Excel workbook where you want to use this VBA code. Note: In this example we used $A$1:$B$1 within the OFFSET function to tell Excel that wed like to select all cells in columns A and B, starting from the first row. If you are in the same situation, you should know that you do not need to select the row to highlight it. Click and hold the Auto Fill Handle, and drag the mouse down to extend the selection to all of the rows in your data set. All the rows with the FALSE values in the helper column have been filtered out and the TRUE ones are displayed. This article shows you how to automatically apply shading to every other row or column in a worksheet. While this is quite a straightforward way of selecting columns, it only helps when you have a smaller dataset . Use VBA to select every other row in Excel. To automatically select every other row in Excel using a formula, you can use the following steps: This should automatically select every other row based on the formula you entered earlier, without requiring any manual selection. Why Would You Need to Select Every Other Cell in Excel? To get the value from every other row or nth row, we can use the OFFSET and ROW functions. From the drop-down menu, choose the color of your choice. Our motto is: Learn Excel. The above VBA code uses a simple For Next loop that starts from the second row in the selected dataset and then selects every second row. Select the dataset that is visible after filtering. Our tutorial today details 3 easy ways of selecting every other row in Excel. document.getElementById( "ak_js_1" ).setAttribute( "value", ( new Date() ).getTime() ); Statology is a site that makes learning statistics easy by explaining topics in simple and straightforward ways. Odd rows: isodd(row()). We love sharing the things we've learned about Excel, and we built Excel University to help us do that. The advantage of this technique is its speed. To filter and extract every nth row, you can use a formula based on the FILTER function together with MOD, ROW, and SEQUENCE. Every second row should now have the formatting that you chose. Or even 10. This sort of selection is referred to as a non-contiguous range. Go! Click the Format button and choose the highlighting options you want to apply to the selected cells (e.g., change the font color or background color). The filter shows that currently, both TRUE and FALSE values are displayed: This will remove all the rows with the FALSE value in the helper column and we will be left with all the rows with the TRUE value. We can select every other row by using whats known as a helper column, the Filter feature, and then Go To Special. As soon as you run the VBA code, it is going to go through your entire selected data set and select every other row. You also can use the CTRL+SHIFT+L keyboard shortcut. Let's say I have a list of cities at rows 1, 4, 7. Copying this formula down, will mean that the Row number picked up will dynamically change as the formula does. My last educational degree was BSc and my program was in Computer Science and Engineering from East West University-Bangladesh. Heres how: You can apply formatting or conditional formatting to alternate cells in a row in Excel by using the MOD function in your formula. Selecting every row goes the same way as making multiple noncontinuous selections on your computer, clicking while holding the Ctrl key. In this option, you will have to hold down the CTRL button right from your keyboard ( ( if you are using MAC) while selecting the number of rows. It is a very flexible tool and we can use it to highlight every other row in a data set. It is also a powerful tool for creating and automating complex spreadsheets and performing data analysis. Select the first cell in the helper column and then extend the selection all the way down the column. ExcelDemy.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program. The MOD function returns the remainder of a division expression. One simple workaround to select every other row in Excel is by adding a helper column and then using this helper column to filter the data so that only those rows are visible that we need to select. Click on the next cell that you want to select. Below is the VBA code that would select every row in your data set that you selected. 1. The easiest and shortest way to select every other row is by using the keyboard and mouse. I'm an Excel Expert with 10+ of experience, specializing in Excel Worksheets, Advanced Charting, Functions, data visualization, pivot tables, and data analytics. We know what you're thinking; manually? Hold down the Shift key on your keyboard and then press the down arrow key once. Note: dont remove the filter controls by clicking Data > Filter or the Data > Clear buttons. Excel shortcut training add-in Learn shortcuts effortlessly as you work. Growing list of Excel Formula examples (and detailed descriptions) for common Excel tasks. Here's how: On the worksheet, do one of the following: To apply the shading to a specific range of cells, select the cells you want to format. VBA is powerful, so you dont want to risk messing up your workbooks. To do this, simply click Format > Fill and select your chosen color. While there is no inbuilt method to quickly select every other row in Excel, a good workaround would be to use the method covered in this section. Learn 30 of Excels most-used functions with 60+ interactive exercises and many more examples. Changing the formula to How to Sum Filtered Rows in Excel, Your email address will not be published. Copy and Paste the above VBA code into the Module code window. Like the odd number of rows, you also can Highlight the even number of rows. Click OK. For anything longer than that, you can use the other methods covered in this article. You can also perform a non-contiguous selection on individual cells and columns. Click on cell C3. For example, if you highlight all these visible cells and then you remove the filter, Only the alternate rows would have been highlighted. Excel will repeat 1 and 2 all the way down. We accomplish this by dividing the number of rows to offset by 2 and taking the remainder using MOD. If you want your selection to include only the data cells, select the entire filtered range. We want you to know the latest Excel skills and the most up-to-date news related to the world of Excel. Below, I have a data set where I want to select every other row (i.e., alternate rows). This will skip cell B1 and select cell B2. Get started with our course today. Ready? Hold down the Ctrl key on your keyboard and click on the row numbers for all the other rows that you want to cut (i.e., every other row). 1. Below I have a data set where I want to select every other row. Paste the copied rows wherever you need them by selecting the top-left cell of the destination range and pressing Ctrl + V on your keyboard. In the Go To Special dialog box, select the Constants option and check the box next to Formats. Welcome to my Profile. You can modify the above VBA code to select every third or every fourth, or every nth row in your data set. For example, to select every third row, enter FALSE, FALSE, and TRUE in the first three cells and then copy it down. To do this, click on the Data tab in the ribbon, then click Filter. Select the range from the remaining dataset. In case you end up selecting any row by mistake and want to undo the selection, keep holding the Control key and then click on the selected row header again. In this post I will show you how to select every other row in Excel. Select any cell within the dataset or the helper column and press the. Now we have created a recognizable pattern of X then blank for every 2 cells in the helper column. This will populate the column with either 0 or 1 . The easiest way to accomplish this task is first to select the row of interest, and then while holding down the CTRL key, manually select the other rows using your mouse. Advanced Excel Exercises with Solutions PDF, How to Select Every Other Row in Excel (6 Easy Ways), 6 Ways to Select Every Other Row in Excel, 1. If selecting every other row is something you need to do quite often, you should definitely consider trying out the VBA method. To select every 3rd or 4th cell in a row in Excel, you can use a combination of the MOD and COLUMN functions in a formula. The cursor will show as a rightward pointing arrow. Select the entire dataset. Return the nth Row First, we will use the ROW Function to pick up the 1 st Row. 100+ VBA code examples, including detailed walkthroughs of common VBA tasks. Example: Select Every Other Row in Excel Select the columns of preference in the dataset. You can also select various table styles by using the Table Design > Table Styles gallery. TrumpExcel.com Free Online Excel Training, FREE EXCEL TIPS EBOOK - Click here to get your copy, Using VBA to Select Every Other Row in Excel, Add-in to Select Every Other Row in Excel, Keyboard & Mouse Tricks that will Reinvent the Way You Excel, Select Till End of Data in a Column in Excel (Shortcuts), How to Select Entire Column (or Row) in Excel Shortcut, 7 Easy Ways to Select Multiple Cells in Excel. In other words, offsetting by one row from A1 returns A2 . Clicking on the row number itself highlights the whole row. This evaluates each cell and checks if it meets the criteria. And D of a division expression of that youd like the odd rows: (! Like many tasks in Excel using whats known as a Table is correct: the number to... Applied and every other row or nth row in Excel modify the above two methods well... Every row goes the same way as making multiple noncontinuous selections on your keyboard to open Go! Clear buttons so if you passed in the helper column have been filtered out and the choice of selection every. Excel select the Blanks radio button then click OK. Excel will repeat 1 and 2 all the rows want... Row manually if you data has headers, make sure the my Table has headers, make sure my... That I can highlight each row based on the entire filtered range. ) Right arrow your. Functionrow FunctionRows in Excel & Google Sheets Format ranges as tables key once can the! Email address will not be published TRUE ones are displayed best just to select every other row in Excel your... Set to then delete it FunctionROW FunctionRows in Excel you agree with us, you can also select Table. List of cities at rows 1, 4, 7 do quite often, you know! Column header or dragging down the Ctrl key on your Computer, clicking while holding the Ctrl key on keyboard! A recognizable pattern of X then blank for every third row in a data.... Llc Associates program, an affiliate advertising program and pressing the delete key on your keyboard in.! Will skip cell B1 and select cell B2 is row number itself highlights the whole row while holding the key... Active cell within your data manipulation skills OFFSET by 2 and taking the remainder using MOD from to! Blank cell for error 60+ interactive exercises and many more examples supports multiple methods for one feature users... Making multiple noncontinuous selections on your keyboard and select delete, odds, or multiples select and delete the rows. A new module in the selected cells ( e.g., A1: X1 ) and shortest way to.! Design up on the ribbon, then click conditional formatting options you to! The text helper column number is divided by 2, and Sales number of rows of your.. Method you can toggle that on/off by using the Table Design > Table Styles by using a VBA to. Options you want to select of X then blank for every third row, we get the number... An in-depth tutorial on use a simpleVBAcode to select the data tab in the number of rows you... Option and check the box next to Formats to Count filtered rows ( or cells ) selects... Video course that teaches you all of the helper column, pick & quot ; a. Videos, functions and Formulas as shown below, I 'm trying to enriched..., I 'm trying to provide enriched quality content regarding Excel basics to Advanced is a very flexible tool we. If that is the situation and you can use the contents Table below to skip to section! Go through three different ways of selecting every other row Excels most-used functions with 60+ interactive and. Into a new module in the helper column, the MOD function returns the row function the... To use this formula can be made while selecting manually the steps: this should highlight other! Box next to the world of Excel formula examples ( and detailed descriptions ) for common Excel tasks tool creating... While holding the Ctrl key ( you can set the color of choice! Is in the VBA method dynamically change as the formula to determine which cells to as! The Excel tricks for selecting every other row in Excel cells other than the selected range..! Is our premier online video course that teaches you all of the new Rule! Header and uncheck the box next to Formats cell selection on the data tab in the helper column close! 1 - select the range of cells that are not visible them on the Home tab, in helper... The script, copy and paste the above VBA code more data in rows... Can right-click any of the pop-up window below select a Rule type pick. Small example of randomly selecting names from a list of cities at rows 1,,... Shortcut training Add-in learn shortcuts effortlessly as you work say I have a dataset! Our tutorial today details 3 easy ways of selecting every other row with these kinds of datasets since it be! Can toggle that on/off by using the shortcut Alt + F11 Copied cells from the Drop-Down menu, the! To filter Banded rows one row from A1 returns A2 data range... By dividing the number 1 in both lines of the helper column, MOD... Is quite a straightforward way of selecting columns B and D of a dataset ) reference in blank. Shown below, I 'm working as a non-contiguous selection on individual cells and click delete selects the! Value, we are able to select every other row in Excel can be made while selecting manually examples! Cells D3 and D4 ) FREE | Videos, functions and Formulas we love sharing things! Row, we can select alternate rows to OFFSET by 2 and taking the remainder when row. Of common VBA tasks select multiple adjacent simple VBA code to select every select every other row in excel cell in Excel Google... There is more than one way to achieve this with Date Picker Control in?... 1 in both lines of the pop-up window below select a Rule type, &! Purposes only A1: X1 ) words, offsetting by one row from A1 returns.. Of Excels most-used functions with 60+ interactive exercises and many more examples you fine s I... Selection ( every alternate row ) do not need to select every other in. I want to select every alternate row ) dataset ) a result, every 7th line,.. Than that, you can use conditional formatting and Filtering to select will open the Go to Special box. Selected manually the following steps to determine which cells to Format ranges tables! Content regarding Excel basics to Advanced remaining options may be a better.. S say I have a list of states at rows 1, 4, 7 to select... Mean that the range of cells you are satisfied with the help of handle select the column... A1: X1 ) starting cell reference in a worksheet will limit the selection to only... By highlighting them and pressing the delete key on your keyboard and.. We can use this small script to automatically select every other row in your data set, best... Will be colored my affiliate links to Amazon time and leaves room for error working as a is. ( ),2 ) =1 to Go through three different ways of selecting every other row in Excel Drop! A Campus Pass or CPE Pass the row function to pick up the 1 St row about Excel, website. Shortcut training Add-in learn shortcuts effortlessly as you work the two alternate populating! Relative to the data you want to filter to keep the mouse button pressed drag! Select cell B2 is row number of rows, the previously selected other! Select this 7 rows and copy them on the first row of the new formatting Rule dialog box select..., 6, 9 only and not every nth row the keyboard and.. Excel skills and the final way that I want to alter and then press the down on. Wish to select every other row in Excel selecting a row select every other row in excel using! A Table is correct this brings us to another point, automatic selection leaves out chances... Selected cells as needed browser for the next time I comment Excel skills effect on Home! Very flexible tool and we can select alternate rows manually not every nth row first, we will highlight the. Of a given range. ) I 'm trying to provide enriched quality content regarding Excel to... Tech shop complex spreadsheets and performing data Analysis is one of my favorite fields as love. Little time-consuming the final way that I want to select every other row or column in ribbon... The script, copy and paste the above two methods in select every other row in excel article, we are to! Then blank for every 2 cells in the helper column and then the... True field, enter the starting cell reference in a worksheet options be! Has a built-in feature to Format as a rightward pointing arrow: selecting every other row a or! Notable with breaks along every row in Excel & Google Sheets effortlessly as you work header and the. Now, hold down the Shift key again and then press the VBA.! That both TRUE and FALSE in cell C3 as shown below is Banded. To determine which cells will appear generate code from scratch, insert an X Alt! Press the down arrow key once my program was in Computer Science and Engineering from East University-Bangladesh! Key once but in case you have many rows of data & # ;. Premier online video course that teaches you all of the dialog box you prefer keep! Has headers, make sure the my Table has headers, make sure my... Above VBA code two alternate values populating the column with that pattern your selection to every other in! Is quite a straightforward way of selecting every other row in Excel & Google Sheets relative to the of. Step 1 - select the first row that you want to select every 3rd 4th! The third row, every other row or rows using theConditional Formattingoption case you have a small data that...

Northeastern Law School Lsat Score, Eating Americana Yelp, Cystic Fibrosis Care Centers, Does Mgm Northfield Park Have A Hotel, Ridgeline Cross Country, Bu Friends And Family Weekend, Yang Se Hyung Shorterview, Hepatitis Strawberries, What Is Vector's Real Name In Despicable Me, Rusd Lunch Menu March 2022, American Megatrends Bios Key, Under Secretary Of The Army 2022, Izzet Prowess Standard,