+ Reply to Thread
Results 1 to 6 of 6

Automatically repeat four times with a formula vertically

  1. #1
    Registered User
    Join Date
    04-22-2008
    Posts
    24

    Automatically repeat four times with a formula vertically

    I have tried to come up with a way so that the letters repeat precisely four times. Specifically, so that in each situation where Column C equals more than 0, Column A repeats itself four times in another column. What sort of formulas should I use?
    Last edited by Enda80; 02-02-2014 at 09:46 PM.

  2. #2
    Registered User
    Join Date
    04-22-2008
    Posts
    24

    Re: Automatically repeat four times with a formula vertically

    http://stackoverflow.com/questions/9...active#tab-top

    I found this formula. Adjusting for rows might work.

  3. #3
    Registered User
    Join Date
    04-22-2008
    Posts
    24

    Re: Automatically repeat four times with a formula vertically

    =INDEX($A$5:$A$100,INT((ROWS(A$1:A1)-1)/3)+1)

    http://www.excelforum.com/excel-gene...wn-column.html

  4. #4
    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,926

    Re: Automatically repeat four times with a formula vertically

    Your sample is not that clear, but if I undwerstand you correctly, try this. 1st, create a small table to hold your letters and corresponding numbers (G1:H4, you can expand this if needed)...

    G
    H
    1
    0
    H
    2
    1
    B
    3
    2
    C
    4
    3
    I
    Then use this, copied down...
    =VLOOKUP(MOD(ROW(),COUNT($G:$G)),$G$1:$H$4,2,0)
    It will adjust automatically to the amount of numbers you want inthe table
    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

  5. #5
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Automatically repeat four times with a formula vertically

    One venture ... based on what's in A1:A95
    you can use this in any startcell, eg in L1: =INDEX($A$1:$A$95,INT((ROWS($1:1)-1)/4)+1)
    Copy down as far as required to repeat each source cell 4 times

  6. #6
    Registered User
    Join Date
    04-22-2008
    Posts
    24

    Re: Automatically repeat four times with a formula vertically

    Thanks for the people who replied and for those who contributed to the cited thread. I feel I
    have the issue resolved.

+ 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 formula a finite number of times in a column
    By alsers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2013, 11:18 AM
  2. Replies: 1
    Last Post: 04-04-2013, 10:53 AM
  3. [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
  4. Replies: 17
    Last Post: 04-05-2009, 07:27 PM
  5. repeat something n times formula
    By cro4you.org in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2008, 11:14 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