+ Reply to Thread
Results 1 to 4 of 4

Autofil Solutions?

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    california
    MS-Off Ver
    excel 2007
    Posts
    9

    Autofil Solutions?

    I giant bill of ladings worksheet in excel that has a list of the item numbers and they are acending and it looks something like this :

    0 0 0 0 2 9 1 0 0
    0 0 0 0 2 9 1 0 1
    0 0 0 0 2 9 1 0 2
    0 0 0 0 2 9 1 0 3
    0 0 0 0 2 9 1 0 4
    0 0 0 0 2 9 1 0 5
    0 0 0 0 2 9 1 0 6
    0 0 0 0 2 9 1 0 7
    0 0 0 0 2 9 1 0 8
    0 0 0 0 2 9 1 0 9
    0 0 0 0 2 9 1 1 0
    0 0 0 0 2 9 1 1 1
    0 0 0 0 2 9 1 1 2
    0 0 0 0 2 9 1 1 3
    0 0 0 0 2 9 1 1 4

    I need this to fill an entire sheet of data upwards of 100+ rows.
    My problem is that I feel like you can set a constraint on the Last two columns(to autofil) and have the last column acending by 0-9 and everytime that goes through that entire sequence then the 2nd to last column changes to the next 0-9. I was thinking a for loop in VBA, but I wasn't sure about the functionality of Excel in Autofil regaurds.

    Any insight would help lots. Thanks!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Autofil Solutions?

    you can fill in the first row manualy, then in I2 use this

    =IF(I1=9,0,I1+1)

    and in H2, filling back to A2 use this
    =IF(SUM(I2:$I2)=0,IF(H1=9,0,H1+1),H1)

    then fill down

    see attachement
    Attached Files Attached Files
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    california
    MS-Off Ver
    excel 2007
    Posts
    9

    Re: Autofil Solutions?

    Thank You So much! Brilliant use of if and sum.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Autofil Solutions?

    glad to help, could you please mark as solved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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