Auto Number

amna77

Active Member
Joined
May 9, 2002
Messages
251
Hi, In my column A, I have nubers, like 1 through 300. So my 300 rows are filled with data. Now if I cut the row number 50, then I want numbers to be in right order, I don't want 49, 51. Instead of that I want 49,50,51, etc. you know what I mean?
Any one help me with that.
Thanks in advance
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
set up the numbering using formulas rather than hard coded values:

=row()

or, if the data starts in row2 ('cos of column headings in the first row):

=row()-1

Paddy
 

apurk45

Board Regular
Joined
Oct 23, 2002
Messages
217
Hi

One time I used this:
In first Row (in my case cell A7) I had:

=IF(B7="","",1)

in the Row below I had:

=IF(B8="","",MAX(A$7:A7)+1)

Then:

=IF(B9="","",MAX(A$7:A8)+1)
and so on
 

Forum statistics

Threads
1,143,915
Messages
5,721,520
Members
422,369
Latest member
redinator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top