+ Reply to Thread
Results 1 to 6 of 6

how to create a custom auto fill sequence

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    how to create a custom auto fill sequence

    Hi,

    I understand that excel can auto fill by recognizing patterns like 1,2,3,4 or 2,4,6,8. My question is can excel recognize complex patterns?

    I would like B1 to B10 = to A1 and then B11 to B20 = A2 and then B21 to B30 = A3. From there I am trying to drag the fill handle down column B hoping that it will auto fill the rest. But when i do try to auto fill B31 begins by equaling to A31 and B32 to A32 etc. Is there a way to create a formula or edit the auto fill option so that it will follow my pattern?

    Thanks in advance for any tips.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: how to create a custom auto fill sequence

    hi lix333, welcome to the forum. try this formula in B1:
    =INDIRECT("A"&FLOOR(ROW(A10)/10,1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: how to create a custom auto fill sequence

    Quote Originally Posted by benishiryo View Post
    hi lix333, welcome to the forum. try this formula in B1:
    =INDIRECT("A"&FLOOR(ROW(A10)/10,1))
    Wow!

    1. Thank you for responding so fast.
    2. Thanks for the formula. I think this is exactly what i have been looking for!

    Many many thanks. This just saved me days of work.

  4. #4
    Registered User
    Join Date
    10-01-2012
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: how to create a custom auto fill sequence

    Quote Originally Posted by benishiryo View Post
    hi lix333, welcome to the forum. try this formula in B1:
    =INDIRECT("A"&FLOOR(ROW(A10)/10,1))


    Well, I thought I was done but my spreadsheet became a bit more complex.

    Is there a way to also go horizontally to the next column? so B1 to B10 = A1 and then C1 to C10 = A2 and then d1 to d10 = A3 then highlight A1 to A3 and drag to custom auto fill downward so that b11 to b20 = A4 and then C11 to C20 = A5 and then D11 to D20 = A6 so on and so on.


    If this is possible then thanks in advance!

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: how to create a custom auto fill sequence

    you're welcome. for your new requirements, try this in B1:
    =OFFSET($A$1,COLUMN(A1)-1+FLOOR((ROW(A1)-1)/10,1)*3,0)

  6. #6
    Registered User
    Join Date
    10-01-2012
    Location
    los angeles
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: how to create a custom auto fill sequence

    Quote Originally Posted by benishiryo View Post
    you're welcome. for your new requirements, try this in B1:
    =OFFSET($A$1,COLUMN(A1)-1+FLOOR((ROW(A1)-1)/10,1)*3,0)
    Hey thanks for this! I actually found an alternative formula for my column.

    If anyone is still reading this thread. Is it possible to that the excel file becomes so thick with coding that it wont work properly or just becomes really slow and sluggish? Is there a general rule of how much code you can use per file?

+ 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