+ Reply to Thread
Results 1 to 5 of 5

Alphanumeric text increase by 1 every X rows

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Yorba Linda, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Alphanumeric text increase by 1 every X rows

    I'm looking for a formula I can copy down one column for the following data pattern:

    PNL000372
    PNL000372
    PNL000372
    PNL000373
    PNL000373
    PNL000373
    PNL000374
    PNL000374
    PNL000374
    etc.

    Where the number portion of this text increases by 1 every 3rd row. Also, need the option to change to every 4th, 5th row etc.

    So far I've figured out how to increase by 1 every 2nd row by using an IF formula, but cannot think of a way to do every 3rd+.

    Thank you!
    Last edited by MissLauren; 07-23-2012 at 04:26 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Alphanumeric text increase by 1 every X rows

    If A1 has your first value, then on A2 use

    =IF(COUNTIF($A$1:A1,A1)=3,LEFT(A1,3)&TEXT(RIGHT(A1,6)+1,"000000"),A1) and drag down. Replace the higlighted (in red) number to 4 or 5 or any other number to repeat number of instances as desired
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Alphanumeric text increase by 1 every X rows

    I have this one for you.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    07-23-2012
    Location
    Yorba Linda, CA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Alphanumeric text increase by 1 every X rows

    This is perfect, thank you so much!!

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Alphanumeric text increase by 1 every X rows

    I'm always curious which answer you mean.

    (To whom you are replying)?

+ 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