+ Reply to Thread
Results 1 to 4 of 4

Repeat number X amount of times

  1. #1
    Registered User
    Join Date
    05-26-2016
    Location
    Netherlands
    MS-Off Ver
    2007
    Posts
    13

    Repeat number X amount of times

    It looks easy, but I can't get my head around it. With a formula, I want to repeat a number X amount of times before going to the next consecutive number. Like this:

    2
    2
    2
    3
    3
    3
    4
    4
    4
    5
    5
    5
    6
    6
    6


    The starting number (in this case 2) is set in A1, the number of repeats (in this case 3) is set in A2.

    Any idea?

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Repeat number X amount of times

    Try in any cell and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Repeat number X amount of times

    how about this =INT((ROWS(A$1:A1)-1)/3)+2 and dragged down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    05-26-2016
    Location
    Netherlands
    MS-Off Ver
    2007
    Posts
    13

    Re: Repeat number X amount of times

    Thanks! Worked great guys.

+ 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. Repeat a string X number of times
    By brandonboucher in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2015, 10:30 AM
  2. [SOLVED] Repeat number X times
    By mbrandt5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2015, 05:56 PM
  3. repeat number 5 times and increment
    By SnowForecast in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 11:42 AM
  4. Macro to repeat rows a certain amount of times (loop)
    By jadore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2014, 10:46 PM
  5. [SOLVED] To repeat row values, a specified number of times
    By ramananhrm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2014, 11:30 AM
  6. [SOLVED] How to repeat the same number for 'N" number of times in excel sheet
    By tulasiram in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 03:06 AM
  7. [SOLVED] VBA: repeat a formula a number of times
    By dinahajjar in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2013, 11:03 AM

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