+ Reply to Thread
Results 1 to 10 of 10

Finding the blank row between 2 data blocks...should be simple...

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Finding the blank row between 2 data blocks...should be simple...

    Bit embarrased to ask this here but somehow I have trouble pinpointing the first blank/empty row between to large data blocks.

    Like this code gives me the really lastrow on the sheet
    Please Login or Register  to view this content.
    but I also would need to know the first blank row between block of data 1 and the last row returned by above code in order to copy both blocks separately.

    I cannot seem to find a working piece of code online somehow.
    Code with find or match and then " " just won't cut it.
    Anybody the simple answer here?

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Finding the blank row between 2 data blocks...should be simple...

    Hi rpinxt,

    Assuming the data starts in cell E2 (change to suit) try this:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Finding the blank row between 2 data blocks...should be simple...

    Thanks Robert!
    I knew it could not be difficult but was messing up the code myself.
    Also the starting point (like you mentioned) was somewhat important for this.

  4. #4
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Finding the blank row between 2 data blocks...should be simple...

    if you do not start from the top (your first block in not in the top) you can do it in two steps:
    Please Login or Register  to view this content.
    Click on the star if you think I helped you

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Finding the blank row between 2 data blocks...should be simple...

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Finding the blank row between 2 data blocks...should be simple...

    Hi adyteo and John,
    Thanks for your answer they would work to.

  7. #7
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Finding the blank row between 2 data blocks...should be simple...

    Maybe this too..

    It will give you the row number between each block of data regardless of how many blocks you have..

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Finding the blank row between 2 data blocks...should be simple...

    Thanks apo looks also like very interesting code.

  9. #9
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Finding the blank row between 2 data blocks...should be simple...

    Hi rpinxt,

    Looks like you've a number of great options to choose from!!

    If you could mark the thread as solved it would be appreciated.

    Thanks,

    Robert

  10. #10
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: Finding the blank row between 2 data blocks...should be simple...

    Hi Robert,
    Yes great options.
    And infact I already marked as solved after the first solution of you so the thread seems pretty marked solved to me

+ 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. Macro auto-fill: Blocks of consecutive decimal numbers with blank row in between them
    By markbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 07:04 AM
  2. Splitting up blocks of data seperated by blank row
    By bikmo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-07-2014, 06:23 AM
  3. Using macros to identify blocks of data and summarise those blocks
    By gophbeav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 04:35 AM
  4. Finding the Standard Deviation in a Simple Frequency Data Table
    By michaelneedshelp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2009, 03:25 AM
  5. finding blank cell and moving specific data into it
    By BeJay in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2006, 02:10 PM

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