Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Row numbering selection auto-fill till the end [closed]

I have a table with thousands of lines. I want to number rows by adding 1 2 3 next to first rows, then to select these and drag till end to make a fill with increasing numbers.

How to autofill till last row without dragging with a mouse for several minutes?

like image 929
atman Avatar asked Sep 30 '13 03:09

atman


People also ask

How do you auto fill rows in Excel?

Simply do the following: Select the cell with the formula and the adjacent cells you want to fill. Click Home > Fill, and choose either Down, Right, Up, or Left. Keyboard shortcut: You can also press Ctrl+D to fill the formula down in a column, or Ctrl+R to fill the formula to the right in a row.

How do I auto populate data in Excel based on another cell?

Anyone who has used Excel for some time knows how to use the autofill feature to autofill an Excel cell based on another. You simply click and hold your mouse in the lower right corner of the cell, and drag it down to apply the formula in that cell to every cell beneath it (similar to copying formulas in Excel).


1 Answers

Do you know how to double-click the autofill handle? If you put 1,2 in the first two cells, then select both cells and double-click the little black box in the bottom right corner, it should "automagically" do what you are asking. It will fill for as many rows as there are filled cells adjacent to it. Quite a handy trick.

For example, see http://office.microsoft.com/en-us/excel-help/fill-data-automatically-in-worksheet-cells-HP001216366.aspx

Tips You can also fill the active cell with the formula of an adjacent cell by using the Fill command (on the Home tab in the Editing group) or by pressing CTRL+D to fill a cell below or CTRL+R to fill a cell to the right of the cell containing the formula. You can automatically fill a formula downward, for all adjacent cells that it applies to, by double-clicking the fill handle of the first cell that contains the formula. For example, cells A1:A15 and B1:B15 contain numbers, and you type the formula =A1+B1 in cell C1. To copy that formula into cells C2:C15, select cell C1 and double-click the fill handle.

like image 82
Floris Avatar answered Oct 07 '22 15:10

Floris