+ Reply to Thread
Results 1 to 12 of 12

Fill Down sequence of numbers

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Fill Down sequence of numbers

    I am trying to create a macro to fill down with a sequence of numbers in cell D2. In cell D2 the value is 1, and I would like it to fill down with 2,3,4,5,6 and so on. I'm using the following macro to fill down currently:

    Please Login or Register  to view this content.
    Last edited by aharvestofhealth; 03-17-2010 at 01:51 PM.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Fill Down sequence of numbers

    Not too good with VBA, but what is it you're looking to do with this that can't be done with a simple formula in Excel?

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Fill Down sequence of numbers

    If you have a simple excel formula that would work, then I'm ok with that too. I have a single row of data from B2 through X2, and I need to copy it down using my macro above. Unfortunately the value in D2 gets copied the same all the way down, instead of in sequence.
    Last edited by aharvestofhealth; 03-17-2010 at 11:39 AM.

  4. #4
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Fill Down sequence of numbers

    Anybody have any thoughts?

  5. #5
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Fill Down sequence of numbers

    Please post a sample of what you are trying to accomplish.

  6. #6
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: Fill Down sequence of numbers

    Is this what you wanted?

    Please Login or Register  to view this content.

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Fill Down sequence of numbers

    Or possibly

    Please Login or Register  to view this content.
    I have commented out .FillDown and left it as an option
    You might need a combination of both to get your result depending on yout data types.

  8. #8
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Fill Down sequence of numbers

    Yes! That is exactly what I want! However, it also auto fills column E (which has a value of 0) with a sequence as well, and I don't want that to be in sequence, but rather to keep that as '0' all the way down. How do I do both?


    Attached is a sample spreadsheet.
    Attached Files Attached Files

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Fill Down sequence of numbers

    Yes I did not explain that very well, I was about to edit my post#7.

    I'll look at your file and post again, if nobody beats me to it

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Fill Down sequence of numbers

    Don't know what you want series filled and what just to fill down from your sample sheet

    However if you split your column ranges to your own requirements, something on these lines

    Text will not fill in series Numbers and Dates will

    Please Login or Register  to view this content.
    Hope this helps

  11. #11
    Forum Contributor
    Join Date
    04-21-2009
    Location
    USA
    MS-Off Ver
    2007
    Posts
    101

    Re: Fill Down sequence of numbers

    That did it! Thanks Marcol!

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Fill Down sequence of numbers

    Glad to be of help.

    If that takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

+ 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