+ Reply to Thread
Results 1 to 4 of 4

Make excel fill in consecutive order in non consecutive cells

  1. #1
    Registered User
    Join Date
    04-24-2021
    Location
    Israel
    MS-Off Ver
    365
    Posts
    5

    Question Make excel fill in consecutive order in non consecutive cells

    Hi everyone,
    I'm trying to create a table that repeats itself but the first row is changing based on a reference to another cell.
    The problem is that there are other rows in between those first rows, so using the fill function doesn't take the consecutive cell, but the relative one.
    I want to get a result like the bold part in the example file (and avoid DELAY : 8001, 8002 as well)

    How can I do that?

    Thank you
    Attached Files Attached Files
    Last edited by Sigarya; 07-16-2022 at 01:40 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Make excel fill in consecutive order in non consecutive cells

    For the first row of each group of rows, use

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Values as displayed
    A
    1
    DELAY : 352000
    2
    Mouse : 1843 : 824 : Click : 0 : 0 : 0
    3
    Mouse : 0 : 0 : Click : 0 : 0 : 0
    4
    Keyboard : Down : KeyPress
    5
    DELAY : 8000
    6
    Mouse : 1283 : 72 : Click : 0 : 0 : 0
    7
    DELAY : 181000
    8
    Mouse : 1843 : 824 : Click : 0 : 0 : 0
    9
    Mouse : 0 : 0 : Click : 0 : 0 : 0
    10
    Keyboard : Down : KeyPress
    11
    DELAY : 8000
    12
    Mouse : 1283 : 72 : Click : 0 : 0 : 0

    Underlying formulas
    A
    1
    ="DELAY : "&INDEX(TIMES!$F:$F,(ROW()-1)/6+2)
    2
    Mouse : 1843 : 824 : Click : 0 : 0 : 0
    3
    Mouse : 0 : 0 : Click : 0 : 0 : 0
    4
    Keyboard : Down : KeyPress
    5
    DELAY : 8000
    6
    Mouse : 1283 : 72 : Click : 0 : 0 : 0
    7
    ="DELAY : "&INDEX(TIMES!$F:$F,(ROW()-1)/6+2)
    8
    Mouse : 1843 : 824 : Click : 0 : 0 : 0
    9
    Mouse : 0 : 0 : Click : 0 : 0 : 0
    10
    Keyboard : Down : KeyPress
    11
    DELAY : 8000
    12
    Mouse : 1283 : 72 : Click : 0 : 0 : 0
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-24-2021
    Location
    Israel
    MS-Off Ver
    365
    Posts
    5

    Re: Make excel fill in consecutive order in non consecutive cells

    Thank you!
    Is there a way I can fill all the rows automatically just based on the first 6?

    EDIT: I still get the value of F8 instead of F2
    Last edited by Sigarya; 07-16-2022 at 03:02 PM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,585

    Re: Make excel fill in consecutive order in non consecutive cells

    Try pasting the following into cell B1 on the macro sheet and then dragging the fill handle down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Asigning consecutive textbox values to multiple consecutive cells...
    By Hovoruha Octavian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2019, 06:31 PM
  2. How to fill a column of cells with consecutive numbers ?
    By M-Ray in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 09:59 AM
  3. Replies: 1
    Last Post: 05-29-2013, 10:35 AM
  4. Replies: 6
    Last Post: 03-23-2012, 06:03 PM
  5. Excel 2007 : How to make graph from non-consecutive cells
    By KnowItAll123 in forum Excel General
    Replies: 0
    Last Post: 12-01-2011, 04:19 PM
  6. Excel macro to "fill in" consecutive numbers in non-consecutive list?
    By Tomkat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2009, 01:13 PM
  7. Replies: 1
    Last Post: 06-24-2005, 07:05 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