+ Reply to Thread
Results 1 to 9 of 9

How do I repeat the small row next to the big rows?

  1. #1
    Registered User
    Join Date
    02-23-2017
    Location
    here
    MS-Off Ver
    2019
    Posts
    13

    How do I repeat the small row next to the big rows?

    I have some small rows (of two columns), followed by multiple rows of 7 columns each. I don't know the exact contents of each cell and I don't know how many large rows are following each small rows.

    What I want is to move the small rows next the ALL of the following large rows.

    I want this:

    title1, title2
    bla, wla, bla, tra, bla, vla, bla
    bla, wa, bla, bla, sla, bla, pla
    bla, wa, sla, na, wla, kla, pla
    title3, title4
    bla, wa, sla, na, wla, kla, pla
    bla, wa, bla, bla, sla, bla, pla
    bla, wla, bla, tra, bla, vla, bla
    bla, wla, bla, tra, bla, vla, bla
    bla, wa, bla, bla, sla, bla, pla
    title5, title6
    bla, wla, bla, tra, bla, vla, bla
    bla, wa, bla, bla, sla, bla, pla
    title7, title8
    bla, wa, bla, bla, sla, bla, pla
    ...
    ...

    To become this:

    title1, title2, bla, wla, bla, tra, bla, vla, bla
    title1, title2, bla, wa, bla, bla, sla, bla, pla
    title1, title2, bla, wa, sla, na, wla, kla, pla
    title3, title4, bla, wa, sla, na, wla, kla, pla
    title3, title4, bla, wa, bla, bla, sla, bla, pla
    title3, title4, bla, wla, bla, tra, bla, vla, bla
    title3, title4, bla, wla, bla, tra, bla, vla, bla
    title3, title4, bla, wa, bla, bla, sla, bla, pla
    title5, title6, bla, wla, bla, tra, bla, vla, bla
    title5, title6, bla, wa, bla, bla, sla, bla, pla
    title7, title8, bla, wa, bla, bla, sla, bla, pla
    ...
    ...

    Thanks all!

  2. #2
    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: How do I repeat the small row next to the big rows?

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    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: How do I repeat the small row next to the big rows?

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How do I repeat the small row next to the big rows?

    Here's one way to do it. Try this formula in H1, fill down and across until you get blanks.

    =IFERROR(IF($C1="","",IF(COLUMNS($H:H)<3,LOOKUP(2,1/ISNUMBER(SEARCH("title*",A$1:A1)),A$1:A1),INDEX($A1:$G1,,COLUMNS($H:H)-2))),"")

    It is done in the attached.
    Dave

  5. #5
    Registered User
    Join Date
    02-23-2017
    Location
    here
    MS-Off Ver
    2019
    Posts
    13

    Re: How do I repeat the small row next to the big rows?

    Quote Originally Posted by FlameRetired View Post
    Here's one way to do it. Try this formula in H1, fill down and across until you get blanks.

    =IFERROR(IF($C1="","",IF(COLUMNS($H:H)<3,LOOKUP(2,1/ISNUMBER(SEARCH("title*",A$1:A1)),A$1:A1),INDEX($A1:$G1,,COLUMNS($H:H)-2))),"")

    It is done in the attached.
    Thanks 1,000,000 times!

  6. #6
    Registered User
    Join Date
    02-23-2017
    Location
    here
    MS-Off Ver
    2019
    Posts
    13

    Re: How do I repeat the small row next to the big rows?

    Quote Originally Posted by FlameRetired View Post
    Here's one way to do it. Try this formula in H1, fill down and across until you get blanks.

    =IFERROR(IF($C1="","",IF(COLUMNS($H:H)<3,LOOKUP(2,1/ISNUMBER(SEARCH("title*",A$1:A1)),A$1:A1),INDEX($A1:$G1,,COLUMNS($H:H)-2))),"")

    It is done in the attached.
    @FlameRetired

    Could you please guide me? I would like to modify the formula so that the small rows have 3 columns and the big ones have 9 columns. How could I do that? I had trouble properly understanding the formula...

    Thanks again!

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

    Re: How do I repeat the small row next to the big rows?

    Modify Dave's formula so that it reads:
    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.

  8. #8
    Registered User
    Join Date
    02-23-2017
    Location
    here
    MS-Off Ver
    2019
    Posts
    13

    Re: How do I repeat the small row next to the big rows?

    Quote Originally Posted by JeteMc View Post
    Modify Dave's formula so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Thanks a lot!

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

    Re: How do I repeat the small row next to the big rows?

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

+ 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] Number of rows too small now
    By KausBorealis in forum Excel General
    Replies: 2
    Last Post: 06-14-2016, 01:16 AM
  2. Replies: 9
    Last Post: 02-04-2016, 08:23 AM
  3. Convert 1 row of data to 4 rows and have it repeat every 4 rows
    By Chuck321 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2014, 05:01 PM
  4. [SOLVED] Delete blank rows between data rows, shift rows up, then repeat
    By excelactuary in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:53 AM
  5. Replies: 2
    Last Post: 03-02-2013, 01:34 AM
  6. Need to Move data from Rows 8,10,11 and 13 to row 8 and repeat for rows below
    By pjsmcdonagh24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2013, 08:42 PM
  7. Replies: 2
    Last Post: 08-24-2005, 12:05 PM

Tags for this Thread

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