+ Reply to Thread
Results 1 to 4 of 4

Any way to auto generate a consecutive number when another field filled?

  1. #1
    Registered User
    Join Date
    09-21-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2013
    Posts
    25

    Cool Any way to auto generate a consecutive number when another field filled?

    Is there any way that an auto consecutive number can be added to first column when a user fills in the title on the next line?

    I've attached an example so when the next line filled in sheet would auto fill first column with ABC-004 then next line ABC-005 etc.
    Attached Files Attached Files
    rate the advice you get click on the star

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Any way to auto generate a consecutive number when another field filled?

    You could use this formula in A2:

    =IF(B2="","","ABC-"&TEXT(ROW()-1,"000"))

    and copy down beyond your data.

    Hope this helps.

    Pete

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Any way to auto generate a consecutive number when another field filled?

    hi Geogeo, 1 way is to paste this formula on your existing Cell A2:A4 1st:
    ="ABC-"&TEXT(ROWS($C$2:C2),"000")

    then convert this into a Table by pressing CTRL + T. after that, whenever people type on the next cell in column B, the formula in A still exist

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    09-21-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Any way to auto generate a consecutive number when another field filled?

    Thank for the quick replies
    Last edited by Geogeo; 07-20-2012 at 05:28 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1