+ Reply to Thread
Results 1 to 4 of 4

Skip blanks and copy data from other worksheets

  1. #1
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    Post Skip blanks and copy data from other worksheets

    Hi All,

    I have 4 worksheets named "Main","Kevin","chris" and "Alan"
    Only some cells in the B column are updated in the "Kevin","Chris" and "Alan" worksheets and some are blank. Please find attached the sample file for ur refernce.

    Could anyone help me by providing a macro to copy the data from B column from the 3 worksheets and paste it in the B column of "Main" excluding the blank cells . If any cell in the column B is blank in the other sheet, the "Main" worksheet also should be blank...

    Thanks in advance for spending ur time in it..
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Skip blanks and copy data from other worksheets

    Hi,

    Copy this code to a module. It should populate the values to the "Main" worksheet.
    This is based on each worksheet being formated the same.
    Please Login or Register  to view this content.
    Last edited by Charles; 10-20-2010 at 02:41 PM. Reason: added info
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Registered User
    Join Date
    06-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Skip blanks and copy data from other worksheets

    Hi Charles,

    Thats Really good and it is working..I juz gave an example with the small table and the only 1 column to be worked..In fact, i need the code for the large table..I mean the column "G","H" want to be populated in the main from the rest of the book..I thank u for providing me such a valuble piece..am new to the forum..so is there anyway of marking "GOOD" or "EXCELLENT" some kinda stuff to add reputation to the contributors for providing me answer

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Skip blanks and copy data from other worksheets

    Hi,

    If you can attach an copy of the updated workbook so we can see it the code may be modified to suit your needs. Also thanks for the compliment.

+ 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