Need help to make a excel formula for number series.

Raviijangra

New Member
Joined
Jan 18, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I want to create a list of numbers like 1 2 3 4 5 6 7 8 9 in one column eg A1 to A9. Problem is that like i delete A2 data then the sequence have to be like 1 in A1, 0 in A2 , 2 in A3 so on.
Can anyone make a formula so that i can drag it and when I delete one cell the the same value shifted to next cell.

For example
A1 1
A2 2
A3 3
If i delete A2 sequence have to be like
A1 1
A2 0
A3 2
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the MrExcel board!

i delete A2 data then the sequence have to be like 1 in A1, 0 in A2 , 2 in A3 so on.
If you delete A2 then there will be nothing in A2 so it cannot hold a zero.
 
Upvote 0
Enter 1 in A2, then
Excel Formula:
=MAX(A$1:A1)+1
into A2 and fill down as needed.

Noting that in line with @Peter_SSs's post above, when you delete a cell it will be blank / empty.
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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
Back
Top