+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Auto Generate Next Number

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    79

    Question Auto Generate Next Number

    Hello,

    Is it possible within a column to have the next number sequence auto generated? For example, in column A, I have an ID# that starts with WGT001. When I go to the next cell below that, can you have the next cell auto generate WGT002.

    See attached for example sequence.

    Thanks for all the help!


    -Dave
    Attached Files Attached Files
    Last edited by wisedave; 04-28-2011 at 08:45 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Auto Generate Next Number

    Can't you just drag the cell down?
    Use the small square bottom right.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Auto Generate Next Number

    This would do it automatically for you when you select the next free cell:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Registered User
    Join Date
    04-20-2011
    Location
    Hull, England
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Auto Generate Next Number

    Quote Originally Posted by Domski View Post
    This would do it automatically for you when you select the next free cell:

    Please Login or Register  to view this content.

    Dom
    Hey Dom,

    Sorry for the rookie question here but.....where do I put that code?

    @Marcol - That works....never knew I could do that....


    Cheers,

    Dave

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Auto Generate Next Number

    Right click on the sheet tab, select View Code and pop it onto the code page that is displayed.

    Dom

  6. #6
    Registered User
    Join Date
    05-11-2011
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Auto Generate Next Number

    Think I have the same problem, and follow the instructions but doesn't have result in my workbook. Is there other operations, like save after put the formula into code area? And if you know if this instruction is valid for my specific need:
    I need excel to generate increasing number in every one random empty cell. When I type digit "1" for the first entry I want it to calculate next progressive number for every other cell in random order which I choose and type "1"
    Thanks in advance
    Best regards
    Plams

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Auto Generate Next Number

    Hi,

    Please don't post questions in the threads of other forum users as per the forum rules.

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    Dom

+ 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