+ Reply to Thread
Results 1 to 6 of 6

Alphanumeric autofill formula

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Arlington, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Alphanumeric autofill formula

    Is there a way to autofill a six digit alphanumeric (C01A01)
    I want the last 2 digits to go form 01-07 then change the last letter
    next column same thing but first two numbers 02 and so on

    C01A01 C02A01 C03A01
    C01A02 C02A02 C03A02
    C01A03 C02A03 C03A03
    C01A04 C02A04 C03A04
    C01A05 C02A05 C03A05
    C01A06 C02A06 C03A06
    C01A07 C02A07 C03A07
    C01B01 C02B01 C03B01
    C01B02 C02B02 C03B02
    C01B03 C02B03 C03B03
    C01B04 C02B04 C03B04
    C01B05 C02B05 C03B05
    C01B06 C02B06 C03B06
    C01B07 C02B07 C03B07

    is there a way for this to be autofilled

    thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Alphanumeric autofill formula

    Assuming starting in A1, enter formula:

    ="C0"&COLUMN()&SUBSTITUTE(ADDRESS(1,MOD(INT((ROW()-ROW($A$1))/7),7)+1,4),1,"")&TEXT(MOD(ROW()-ROW($A$1),7)+1,"00")

    copied down and across.

    if starting elsewhere enter A1 between the COLUMN() and ROW() references.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    Arlington, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Alphanumeric autofill formula

    sweet
    it works

    thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Alphanumeric autofill formula

    No problem

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    Arlington, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Alphanumeric autofill formula

    Ok I need a tweak to this formula

    Need to change the last two numbers from 01-07 to 01-05
    and change the second letter from A-G to A-I

    Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Alphanumeric autofill formula

    Sorry for the late help... try:

    ="C0"&COLUMN()&SUBSTITUTE(ADDRESS(1,MOD(INT((ROW()-ROW($A$1))/5),9)+1,4),1,"")&TEXT(MOD(ROW()-ROW($A$1),5)+1,"00")

+ 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