+ Reply to Thread
Results 1 to 4 of 4

Help with incresing by increments and copying value.

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with incresing by increments and copying value.

    So I have an excel 2003 sheet that I use at work to make labels for folders. It looks like this:

    2012P3245
    2012P3245
    2012P3245
    2012P3245
    2012P3246
    2012P3246
    2012P3246
    2012P3246
    2012P3247
    2012P3247
    2012P3247
    2012P3247

    So I would like to just be able to drag a set of formulas to increase this automatically without having to copy and paste.

    For example if they were like numbers:

    A5 =A4 + 1
    A6 =A4 + 1
    A7 =A4 + 1
    A8 =A4 + 1

    or

    A5 =A4 + 1
    A6 =Value of A5
    A7 =Value of A5
    A8 =Value of A5

    If I drag the cell down it will increase the way I want 2012P3247 increases to 2012P3248

    However, I can't drag to the end because there need to be duplicates of the value in between each new value (as shown above). +1 doesn't produce anything, so is there a formula that duplicates the act of dragging? Then I would need that to work for a cell it wasn't touching or a way to copy just the value of a cell.

    Thank you for any help, I've been searching forever and couldn't find anything
    Last edited by umbra; 06-22-2012 at 10:28 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with incresing by increments and copying value.

    in a1 to a4
    2012P20123245
    in a5
    ="2012P"&RIGHT(A1,8)+1
    drag a5 down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with incresing by increments and copying value.

    mind you if you had leading 0 after the P like 2012P00000001 youll need
    ="2012P"&TEXT(RIGHT(A1,8)+1,"00000000")

  4. #4
    Registered User
    Join Date
    06-22-2012
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with incresing by increments and copying value.

    It worked! You are the best! I knew there was a way, I just couldn't figure it out. The consecutive zeros won't be a problem until next year.

    Thank you very much!

+ 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