+ Reply to Thread
Results 1 to 4 of 4

How do I drag the sequence of letters/numbers?

  1. #1
    Registered User
    Join Date
    06-19-2007
    Posts
    1

    How do I drag the sequence of letters/numbers?

    Hi Everyone,

    I'm working on a project where I have to set up new bin locations in a warehouse. I have an excel sheet and I want to use the drag function (where you highlight a cell or cells and grab the corner to drag it down) to complete a series of number/letters.

    Here is the format I want to follow:

    3MAA
    3MAB
    3MAC
    3MAD

    If I highlight these cells and then drag down it should go "3MAE, 3MAF" ect... But, it will not do this.

    Any help is GREATLY appreciated as it will save me hours of typing!

    Thanks,
    Chris

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You are right that doesn't work, it would if there was a number on the end. i.e ABC1

    But what you could do is list your alphabet in cells A1:A26, then in B1 put

    =3MA&A1 and drag that down to B26
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    or maybe
    ="3MAD"&CHAR(ROW(A65))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    If you want to increment the 3rd character as well,

    Put a list of numbers from 1 up in column A

    in B1 =CHAR(64+ROUNDUP(A1/26,0))
    in C1 =CHAR(64+(-(ROUNDUP(A1/26,0)-1)*26)+A1)
    in D1 ="3M"&B1&C1

    When copied down, column D will contain your references from 3MAA to 3MZZ

    Dave

+ 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