Running Numbers Formula

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
hello.
Hope You will be Fine.
My Question is that I Create a Table That Has Column as below


ID NAME CITY
AD-01 ABC UVW
AD-02 EFG XYZ
(????) <--Here i want the formula that change the only NUMBERS not TEXT automatically.
e.g. AD-03
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Are you trying to increment the AD-nn ID in the next row?

such as this in A4:

Code:
="AD-"&TEXT(1+RIGHT(A3,LEN(A3)-FIND("-",A3)),"00")

or

Code:
=LEFT(A3,3)&TEXT(1+RIGHT(A3,LEN(A3)-FIND("-",A3)),"00")

Or you need to provide more examples re what you want.
 
Last edited:
Upvote 0
Hi,

If I understand correctly, you don't need any formula for what you want.

With AD-01 in A2, Select A2, Left click and hold down on the cell Fill handle (little square in lower right corner of A2) and drag down Column, the Numbers with auto increment leaving the AD intact.
 
Upvote 0
Here is another (fairly simple) formula that can also be considered. Put this formula in the first cell (the one you want AD-01 to appear in) and copy it down as needed...

=TEXT(ROWS($1:1),"A\D-00")
 
Last edited:
Upvote 0
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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