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

RE: Numbering Cells in Excel



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 8 months ago ( permalink )
Rated as
Best Answer
0
3

Helpful?

line
line
line



 
4 thumbs up

RE: Numbering Cells in Excel



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 8 months ago ( permalink )
Rated as
#2 out of 5
0
2

Helpful?

line
line
line



 

RE: Numbering Cells in Excel



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 8 months ago ( permalink )
Rated as
#3 out of 5
0
0

Helpful?

line
line
line



 
38 thumbs up

RE: Numbering Cells in Excel



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 8 months ago ( permalink )
ColdFusion was invited by Yedda to answer this question.

Rated as
#4 out of 5
0
0

Helpful?

line
line
line



 
79 thumbs up

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

RE: Numbering Cells in Excel



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 7 months 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 920 times

Last answer posted 2 years ago by EscApe


A keyboard shortcut for MS Excel - editing data in a cell without clicking twice on it

I am looking for a keyboard shortcut for MS Excel to let me edit the content of a cell (in place of the double mouse click on the ...
Submitted by drabsv 1 year ago
  • viewed 715 times

Last answer posted 1 year ago by drabsv