+ Reply to Thread
Results 1 to 5 of 5

Autofill not recognizing pattern

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    5

    Autofill not recognizing pattern

    Hi

    I have a bunch of codes that need the last digit changing but auto fill is not recognizing the change.

    For example
    09WWB2LIDSR
    09WWB2LIDSS
    09WWB2LIDST
    09WWB2LIDSU
    09WWB2LIDSV
    09WWB2LIDSW
    09WWB2LIDSX
    09WWB2LIDSY
    09WWB2LIDSZ

    Only the last letter is changing but when I try and pull down from the first three it just repeats them...

    Help would be much appreciated!

  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,408

    Re: Autofill not recognizing pattern

    Autofill works by incrementing digits (numbers), not letters. You can put this in your first cell:

    ="09WWB2LIDS"&CHAR(81+ROWS($1:1))

    then copy down for another 8 rows. (Then maybe fix the values).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Autofill not recognizing pattern

    Hi Pete

    That's great

    Could you explain what this part of the code means (81+ROWS($1:1)

    Thanks

    Will

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

    Re: Autofill not recognizing pattern

    Well, it's part of CHAR(81+ROWS($1:1)), where the CHAR function returns a character whose code is given in brackets. The term ROWS($1:1) initially returns 1, but when the formula is copied down it becomes ROWS($1:2) which returns 2, then ROWS($1:3) which returns 3, and so on. This means that the character given by code 82 (R) is added on to the other string in the first cell, then when the formula is copied down it becomes CHAR(83) (S) which is added on, then CHAR(84) (T), and so on.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Autofill not recognizing pattern

    FORUM MODERATOR'S REQUEST:

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
    For the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. pattern recognizing in excel for a large data set
    By maulik1k in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 10-09-2013, 10:27 PM
  2. [SOLVED] Autofill not following pattern of the cells.
    By jgcramer in forum Excel General
    Replies: 3
    Last Post: 05-14-2013, 12:55 AM
  3. [SOLVED] Autofill reference pattern
    By kbka in forum Excel General
    Replies: 2
    Last Post: 06-06-2012, 04:58 AM
  4. Replies: 4
    Last Post: 06-09-2010, 11:54 PM
  5. autofill cells without a pattern?
    By ryu in forum Excel General
    Replies: 2
    Last Post: 04-11-2005, 09:06 AM

Tags for this Thread

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