+ Reply to Thread
Results 1 to 7 of 7

Extract and summarize from 100 worksheets into one

  1. #1
    Registered User
    Join Date
    03-11-2008
    Posts
    27

    Extract and summarize from 100 worksheets into one

    Hi All,

    Please see attached Excel sample file. I would like to extract information with the event “Date” happens in June(6/1/08-6/30/08) in Column B on each worksheet. And I would like these data to be summarized from all different worksheets into one. Is there any code I can use so that I can drag these information out into a single worksheet at one time instead of keep looking in each worksheet (about 100) doing copy and paste?

    Please be advised.

    I appreciate for all your time and help!

    Amy
    Attached Files Attached Files

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

    Using the code from this posting by Dave Hawley as well as some of my own code (including some smarts), the following macro should do the trick:

    Please Login or Register  to view this content.
    HTH

    Robert

  3. #3
    Registered User
    Join Date
    03-11-2008
    Posts
    27

    Re: Extract and summarize from 100 worksheets...

    Dear Robert,

    That seems to be a miracle to me! I tested the code on the original file i attached and it works beautifully, and of course, smartly!

    My last question is, what if there are other columns in between Column D & E, which I noticed your put:
    .Columns("D:E").NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"

    In cases where I have other columns containing Currency, test and date and even some null values where are pending for data entry...etc., do I need to list each different column format separetely based on yours? If so, would you please give me a hint how could I accomplish such code?

    I attached a new file which I added some new columns.

    Thanks for all your time a help again!

    Amy
    Attached Files Attached Files

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

    Thanks for the feedback and I'm glad it worked (almost).

    I've amended the following to meet the new layout - if you need to do this in the future, the area to adjust is within the
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    block. You can use the recorder the help with the code.

    HTH

    Robert

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-11-2008
    Posts
    27

    Re:

    Hi Robert,

    This is awesome! I tested it and this is exactly I want! I can't express how much I should appreciate for your code coz it's gonna save tons of my OT work for the following week.

    Thanks again and have a wonderful weekend!

    Amy

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

    Thanks for the feedback and you're very welcome - I'll send you the bill

    I hope you have a good weekend too.

    Kind regards,

    Robert

  7. #7
    Registered User
    Join Date
    03-11-2008
    Posts
    27
    Sure, any time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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