Contents
While working in Excel, it is not uncommon to need row numbering in a separate column. This can be done by entering the serial numbers manually, in other words, by typing them on the keyboard. However, when working with a large amount of information, entering numbers manually is not a very pleasant and fast procedure, in which, moreover, errors and typos can be made. Fortunately, Excel allows you to automate this process, and below we will look at exactly how this can be done in various ways.
Content
Method 1: Numbering After Filling in the First Lines
This method is perhaps the easiest. When implementing it, you only need to fill in the first two rows of the column, after which you can stretch the numbering to the remaining rows. However, it is only useful when working with small tables.
- First, create a new column for line numbering. In the first cell (not counting the header) we write the number 1, then go to the second, in which we enter the number 2.
- Now you need to select these two cells, after which we hover the mouse cursor over the lower right corner of the selected area. As soon as the pointer changes its appearance to a cross, hold down the left mouse button and drag it to the last line of the column.
- We release the left mouse button, and the serial numbers of the lines will immediately appear in the lines that we covered when stretching.
Method 2: STRING operator
This method for automatic line numbering involves the use of the function “LINE”.
- We get up in the first cell of the column, which we want to assign the serial number 1. Then we write the following formula in it:
=СТРОКА(A1)
. - As soon as we click Enter, a serial number will appear in the selected cell. It remains, similarly to the first method, to stretch the formula to the bottom lines. But now you need to move the mouse cursor to the lower right corner of the cell with the formula.
- Everything is ready, we have automatically numbered all the rows of the table, which was required.
Instead of manually entering the formula, you can use the Function Wizard.
- We also select the first cell of the column where we want to insert the number. Then we click the button “Insert function” (to the left of the formula bar).
- The Function Wizard window opens. Click on the current category of functions and select from the list that opens “References and Arrays”.
- Now, from the list of proposed operators, select the function “LINE”, then press OK.
- A window will appear on the screen with the function arguments to fill in. Click on the input field for the parameter “Line” and specify the address of the first cell in the column to which we want to assign a number. The address can be entered manually or simply click on the desired cell. Next click OK.
- The row number is inserted in the selected cell. How to stretch the numbering to the rest of the lines, we discussed above.
Method 3: applying progression
The downside of the first and second methods is that you have to stretch the numbers to other lines, which is not very convenient for large vertical table sizes. Therefore, let’s look at another way that eliminates the need to perform such an action.
- We indicate in the first cell of the column its serial number, equal to the number 1.
- Switch to tab “Home”, press the button “Fill” (section “Editing”) and in the list that opens, click on the option “Progression…”.
- A window will appear in front of us with the progression parameters that need to be configured, after which we press OK.
- select the arrangement “by columns”;
- specify the type “arithmetic”;
- in the step value we write the number “1”;
- in the “Limit value” field, indicate the number of table rows that need to be numbered.
- Automatic line numbering is done, and we got the desired result.
This method can be implemented in a different way.
- We repeat the first step, i.e. Write the number 1 in the first cell of the column.
- We select the range that includes all the cells in which we want to insert numbers.
- Opening the window again “Progressions”. The parameters are automatically set according to the range we selected, so we just have to click OK.
- And again, thanks to these simple actions, we get the numbering of lines in the selected range.
The convenience of this method is that you do not need to count and write the number of lines in which you want to insert numbers. And the disadvantage is that, as in the first and second methods, you will have to select a range of cells in advance, which is not so convenient when working with large tables.
Conclusion
Line numbering can make it much easier to work in Excel when working with large amounts of data. It can be done in many ways, ranging from manual filling to a fully automated process that will eliminate any possible errors and typos.