+ Reply to Thread
Results 1 to 9 of 9

Fill down will a series 1 2 2 3 3 3 etc

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    sdf
    MS-Off Ver
    Excel 2003
    Posts
    3

    Fill down will a series 1 2 2 3 3 3 etc

    Hi,

    i am trying to fill down with the below series so i get a column that looks like the following:

    1
    2
    2
    3
    3
    3
    4
    4
    4
    4
    5
    5
    5
    5
    5

    is there an easy way of doing this as i need to get it down to 400! so to manually type would take forever.

    Any help would be much appreciated.

    AJ.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill down will a series 1 2 2 3 3 3 etc

    If you're running 2003 you won't have a sufficient number of rows available to actually list the list... I believe you would need 80200 rows to list 1-400 with each digit repeated according to it's own value (ie 1row + 2row + 3row + 4row ... + 400row)

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    sdf
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Fill down will a series 1 2 2 3 3 3 etc

    i am using 2007 so should have enough rows but just trying to figure out how to do it! its got me stumped.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill down will a series 1 2 2 3 3 3 etc

    [removed - hideously inefficient - see subsequent post]
    Last edited by DonkeyOte; 03-20-2009 at 06:56 AM.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill down will a series 1 2 2 3 3 3 etc

    In terms of formulae this would be a little quicker to calc I think...

    A1 = 1
    A2: =A1+(OFFSET(A2,A1*-1,)=A1)
    copied down to A80200

    Once calculated copy paste values A1:A80200 to dispose of formulae... OFFSET is Volatile so you don't want to keep them in your file.

  6. #6
    Registered User
    Join Date
    03-20-2009
    Location
    sdf
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Fill down will a series 1 2 2 3 3 3 etc

    Your a life saver thanks, i might just do it to 200 rather than 400 as your right ... i tried it wilth 400 and excel ceased operation!!!

    Once again thanks
    AJ.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Fill down will a series 1 2 2 3 3 3 etc

    =FLOOR(0.5+SQRT(0.25-2*(1-ROW())),1) from row 1
    this is non volatile
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Fill down will a series 1 2 2 3 3 3 etc

    You could avoid OFFSET and use this formula in A2 copied down

    =A1+(ROWS(A$1:A2)>(1+A1)/2*A1)

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Fill down will a series 1 2 2 3 3 3 etc

    Hi Martin, some would/have argued that ROW is Volatile -- I asked a couple of MS Excel MVP's about this as I've heard that documentation suggest it is Volatile but reality would imply it is not so, ie does not appear to "act" as though it's Volatile... one of those odd ones....I try to use ROWS eg ROWS($A$1:$A1) instead wherever possible.

+ 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