+ Reply to Thread
Results 1 to 3 of 3

Macro to Consolidate Data from Multiple Worksheets

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Salt Lake City
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to Consolidate Data from Multiple Worksheets

    I have about 500 worksheets in one workbook with information about various companies. I want to copy and paste the contents of cell A1 from every worksheet to a column in one summary worksheet. I also want to be able to copy and paste the contents of a cell from every worksheet to a column if it contains certain text. For example, if there is a cell in Sheet 1 that contains the text "City:" paste the entire contents of that cell to the summary sheet column B.

    Help!! Thanks!!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Macro to Consolidate Data from Multiple Worksheets

    Check out the example using this code.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-11-2012
    Location
    Salt Lake City
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to Consolidate Data from Multiple Worksheets

    Thank you so much for your help! The only problem is I want the macro to return the value of any cell in an entire worksheet if it contains the text "City". I want the destination to be a column in my "Total" worksheet. So I end up with a column, with how ever many rows there would need to be to return every occurrence of the word city in any of my worksheets.

    Do you also know how to return the contents of a particular cell from every worksheet to a column in the "Total" worksheet? For example, I have 500 worksheets and all of them contain company name in cell A1. I want cell A1 from every worksheet to be linked or copy and pasted to a column in my "Total" worksheet. So I end up with a column of company name information. For example column A of "Total" worksheet has AT&T in column A row 2, Amazon is in column A row 3, and so on.

    Thank you!!

+ 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