+ Reply to Thread
Results 1 to 4 of 4

Finding blank cells and pasting below each blank cell

  1. #1
    Registered User
    Join Date
    02-28-2011
    Location
    oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Finding blank cells and pasting below each blank cell

    Hi, I'm new to macros / excel pgm and would appreciate if someone could help me out with this issue:

    I have data in different sheets that need to be copied and pasted into one sheet to provide an overview. The data from, say Sheet 2, first gets copied and pasted (Ctrl A + Ctrl C + Ctrl V) starting from the first cell of Sheet 1. After this, Column B in Sheet 1 is searched for the first blank cell, and then data from Sheet 3 (Ctrl A, C, V) is copied into the cell in Sheet 1- col. A after the 1st blank cell in Sheet 1- col B. Similarly, data from Sheet 4 is copied into the cell in Sheet 1-col. A after the 2nd blank cell in Sheet 1-B. this process is repeated until all the data from all 5 (or n) sheets are copied into Sheet1.

    I hope i didn't confuse you guys too much with the question. Can someone please help me out with a macro for this? Thanks a ton!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Finding blank cells and pasting below each blank cell

    Show us. Post a workbook demonstrating your source sheets plus a manual mockup of what your desired results are. Desensitize the data as needed.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-28-2011
    Location
    oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Finding blank cells and pasting below each blank cell

    Hi,

    Thanks for your response. I've attached a sample excel sheet. So here's my situation:

    Sheets 2,3,4 have random data in different table sizes. These need to be pasted one below the other in Sheet 1, i.e. all data in Sheet 2, followed by all data in sheet 3 then sheet 4.

    So I do Ctrl A after selecting A1 in Sheet 2 and copy, paste the table in Sheet 1. I then notice cell A406 is blank, so I paste all data from Sheet 3 starting from A407 in sheet 1. the next blank cell is A752 => i then copy all data from sheet 4, paste it in A753.

    I need to repeat this until all my sheets are copied (sheets 2,3,4 in this example. in my case i could have 10 sheets or even more).

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Finding blank cells and pasting below each blank cell

    This is a simple approach:

    Please Login or Register  to view this content.

    Place that macro into a regular code module (Insert > Module).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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