In my first column, I want to autonumber it from 1, 2, 3, 4, ..., x. How do I do that?
migrated from stackoverflow.com Apr 13 '10 at 2:13This question came from our site for professional and enthusiast programmers. 


Normally, you just fill A1 in with 1, fill A2 with the formula =A1+1, and then drag the black box on the bottom right of cell A2 down as far as you want to go. Alternately, you can always just use =ROW() to have to output the row number of the cell. 


For most sequences, you can do this:



=1+R[1]C As you can check on the Microsoft Office Online Help, Excel doesn't have any tool for doing that, but you can fill it with the ROW function... 


use the fill down option under one of the menus 


As you can check on the Microsoft Office Online Help, Excel doesn't have any tool for doing that, but you can fill it with the ROW function... Quoting:



In the first row type
and drag all the way down in the sheet. 


The simplest solution is to use the tables feature of excel  it provides you a column with implicit (calculated) formula which is expanded to all new rows in such table. E.g. if you'd like to create autonumber in this format:
Insert this formula in the column of the table where autonumber should be placed:
(replace table name with yours  here "Table1", and change reference to name of the autonumber column name  here "AutoNum") If you'd like to create text autoID in this format:
Insert this formula in the column of the table where autoID should be placed:
(the format of number within autoID is defined by the string in the TEXT formula ) 


Suppose you table starts at A5 (the header), then put in A6 this formula: This way it increments the number as you increase your table (by tabbing) and works when you delete a row. 


Select the cell where you want to start and enter your starting value (here 


The Most Wonderful way to do this just fill the number in your column and in the next column do this column above+1 and then use the fill series button on the home right corner of the excel sheet and it will autofill the whole column. For eg: What i Did was I Put the number in A1 column as 100 and In A2 column I did apply the formula that is =A1+1 and then press enter so value comes here as 101 and then select A2 Cell then use the fill Option where you get the option fill down the series. and Hence I got all the numbers in increasing order. After you have got the numbering then copy the whole A column where you have got the value then again then Use right click option to use Paste special as values. So formula will be gone and you will get your int values In there. 

