Numbering Cells in Excel

Hello, I am using MS Excel and I need to create a column with consecutive numbering. That is in Cells A2-A102 I will have the numbers 1-100, in a way that the numbering doesn't get messed up when I sort and resort.

 


Would you like to answer or comment?

Sign up for a free account, or sign in (if you're already a member).
Share Send to a friend Watch Report
 
 

Posted Answers

Order by
 
1 thumb up

Easiest way to do it: write the value 1 in A2, the click the cell, and you'll see a black square in the right-bottom corner of the cell highlight. Click this little square and hold the mouse button, press ctrl (see the mouse cursor change) and drag down all the way to cell A102.


Posted 1 year ago ( permalink )
Rated as
Best Answer
0
3

Helpful?

line
line
line



 
4 thumbs up

I assume you mean you want to sort column and the numbers move when you sort?

You can create the numbers using the technique in the first answer (enter 1 and then ctrl-drag).

However to keep the numbers associated to the correct records when you sort you can then copy the range and paste special back with the values only.  Then when you sort the numbers will stay with the records you originally attached them to.


Posted 1 year ago ( permalink )
Rated as
#2 out of 5
0
2

Helpful?

line
line
line



 

Say I have:

1 Aaron Copeland

2 Betty Barnyard

3 Chris Apple

They are now sorted by first name. I want the numbering to remain correct even when I sort by last name (with all columns selected)

 


Posted 1 year ago ( permalink )
Rated as
#3 out of 5
0
0

Helpful?

line
line
line



 
38 thumbs up

The answer markpx provided is correct and will give you that functionality.

 

by pasting-special-values-only (right click and choose "paste special" then select "values") you replace the formula that says "The cell above me, plus one" to a value - that will no longer change when cells are re-arranged. 


Posted 1 year ago ( permalink )
ColdFusion was invited by Yedda to answer this question.

Rated as
#4 out of 5
0
0

Helpful?

line
line
line



 
82 thumbs up

There is never a good time to buy a new computer.

I agree with the first answer on this one, posted by middleman. 

I do this very often when creating a new sheet. I put the word "Reset" in cell A1 and number from A2 to about A10000. Then I hide the column. If I add rows, I just unhide it and re-number the cells.

This way if someone in my office ends up looking at the sheet and sorting the data, I can get back to where I left it. 


Posted 1 year ago ( permalink )
Rated as
#5 out of 5
0
0

Helpful?

line
line
line



Sign in to participate

Got an answer for webmanoffesto? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Tabs in MS Excel

Is there a way to display multiple tabs in MS Excel over two or more rows? I have many tabs and switching between them, while not ...
Submitted by drabsv 2 years ago
  • viewed 1118 times

Last answer posted 2 years ago by EscApe