+ Reply to Thread
Results 1 to 14 of 14

Filling number series in a pattern

  1. #1
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Filling number series in a pattern

    Hi,

    Is there any way of getting the fill handle to continue with a number series as below (every two rows the same)? or some other way? Am on a Mac, using Excel 2016.

    000170
    000170
    000171
    000171
    000172
    000172
    000173
    000173

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Re: Filling number series in a pattern

    You can just highlight those lines, select the little box in the bottom right corner of the last cell and drag as far down as you want.

  3. #3
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Filling number series in a pattern

    Thanks, Maybe I'm missing something, something I need to click?

    It just repeats the same pattern. The numbers don't increase. In the list from above, the next pair should be

    000174
    000174

    Thanks.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Filling number series in a pattern

    I think that only works between 2 cells to establish a pattern. The cells 170 and 170 have no pattern hence the zero increment

    Assuming this starts on row 1

    in A1
    =170+INT((ROW()-1)/2)
    and copy down

    Now select the entire range and Paste Values, overwriting the formula with the actual calculated values
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Filling number series in a pattern

    Thanks, That's nice, but am starting on row 435, and it shows 390 (I put 173 in the formula) as the result.

    If I paste the formula you wrote into A1 on a new page, it works ok, but only shows as 170, rather than 000170.
    Last edited by NoBob; 01-22-2016 at 01:01 PM.

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Filling number series in a pattern

    Try this

    =TEXT(170+INT((ROWS(INDIRECT("1:"&ROW(A1:A100)))-1)/2),"000000")

    This shouldnt matter where you put it, note the 170 starting position in the formula, change it if necessary

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Filling number series in a pattern

    a little shorter version may be amended as
    =TEXT(170+INT((ROW(A1)-1)/2),"000000")
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Filling number series in a pattern

    Another way:

    Row\Col
    A
    B
    2
    000170 A2: Input
    3
    000170 A3: =A2
    4
    000171 A4: =TEXT(A2+1, "000000")
    5
    000171
    6
    000172
    7
    000172
    8
    000173
    9
    000173
    10
    000174
    11
    000174
    12
    000175
    13
    000175
    14
    000176
    15
    000176
    16
    000177


    Enter A2 as '000170 (note the leading apostrophe).

    Enter the formulas shown in A3 and A4. Select both cells and drag down.

    Change A2 as desired.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Filling number series in a pattern

    Thanks Special-K and hemesh, they work great.

    Can't get yours to work though shg. In A3 I just get a blue dot and a zero.

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Filling number series in a pattern

    @NoBob ! You are welcome!

    All solutions works as same for your information, Please check once again.

    Regards

  11. #11
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Filling number series in a pattern

    Hi, yeah, I was putting '000170 in A1 instead of A2

    But now =TEXT(170+INT((ROWS(INDIRECT("1:"&ROW(A1:A100)))-1)/2),"000000") and =TEXT(170+INT((ROW(A1)-1)/2),"000000") have stopped working. I'm up to row 1017, and am substituting 605 for 170, i.e. =TEXT(605+INT((ROWS(INDIRECT("1:"&ROW(A1:A100)))-1)/2),"000000")

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Filling number series in a pattern

    Here is another way....

    1. in the 1st cell (say A1), enter 170
    2. in the 2nd cell (say A2), enter 170
    3. A3=A1+1
    4. Custom format all those to 000000
    5. Copy A3 down as far as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  13. #13
    Registered User
    Join Date
    01-17-2016
    Location
    Singapore
    MS-Off Ver
    Mac 2011
    Posts
    16

    Re: Filling number series in a pattern

    Thank you!

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Filling number series in a pattern

    Happy to help, thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Filling a formula pattern across columns using data from one row
    By Wrenthebird in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2015, 08:16 PM
  2. [SOLVED] Get the pattern of a series of numbers from 2 cells
    By quench in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-05-2014, 11:10 PM
  3. Replies: 2
    Last Post: 12-22-2011, 08:41 PM
  4. Filling down a series.
    By pickslides in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2009, 07:31 AM
  5. custom data series pattern fills?
    By pjiman1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-31-2008, 07:33 AM
  6. Filling a column with a repeating pattern of numbers
    By lam154 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-23-2008, 05:05 PM
  7. [SOLVED] Filling in a Date Series using the Fill | Series menu command
    By Bob C in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2005, 08:06 PM

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