+ Reply to Thread
Results 1 to 7 of 7

Copy rows from another sheet ignoring blank rows

  1. #1
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Copy rows from another sheet ignoring blank rows

    Hi

    I'm trying to fill out a fixture list, copied from data on another sheet but I want to do it without the blank rows. The space between the rows is a uniform 2 spaces except when the date changes and then there is a 3 row space so I'm struggling to get the data where I want it. I've attached a sample to highlight where I want the data.

    Any help much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Copy rows from another sheet ignoring blank rows

    Try

    in B3

    =IFERROR(INDEX(Data!A$1:A$1000,SMALL(IF(Data!$A$1:$A$1000<>"",ROW(Data!$A$1:$A$1000)-ROW($A$1)+1,""),ROWS($1:1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    THEN copy across and down

    format Column C as time (hh:mm)

  3. #3
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Copy rows from another sheet ignoring blank rows

    Cheers John, a great help as usual

    Many Thanks

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Copy rows from another sheet ignoring blank rows

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Copy rows from another sheet ignoring blank rows

    It appears I have no clue what I'm doing.

    I've attached a new example with the actual sheet names I use and the web query data I need to manipulate in to the fixtures list.

    I've colour coded what I need where from 'England 1' to 'Data' and as per, any help appreciated.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,369

    Re: Copy rows from another sheet ignoring blank rows

    In AQ3
    =IFERROR(INDEX('England 1'!CE$1:CE$1000,SMALL(IF('England 1'!$CF$1:$CF$1000<>"",ROW('England 1'!$A$1:$CF$1000)-ROW($CF$1)+1,""),ROWS($1:1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Then copy across and down

  7. #7
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: Copy rows from another sheet ignoring blank rows

    That's done the trick. Thanks for your patience.

+ 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] Ignoring Blank Rows When Creating an Email with VBA
    By aglawrence in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2018, 05:37 PM
  2. Replies: 11
    Last Post: 07-30-2015, 12:35 PM
  3. Copy rows in one sheet to the first available blank rows in another sheet
    By mahat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2015, 05:44 PM
  4. [SOLVED] Copy one row and paste in all blank rows on a sheet.
    By sportman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2015, 01:56 PM
  5. [SOLVED] insert blank rows every nth row and copy down data to fill blank rows
    By surpass in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-06-2014, 02:55 PM
  6. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  7. [SOLVED] Copy to new sheet without blank rows
    By Gallinski in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 01: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