+ Reply to Thread
Results 1 to 4 of 4

Code for searching multiple worksheets and based on criteria copy and paste that data

  1. #1
    Registered User
    Join Date
    11-04-2012
    Location
    Dundee,Scotland
    MS-Off Ver
    Excel 2010
    Posts
    35

    Code for searching multiple worksheets and based on criteria copy and paste that data

    Hi

    I have tried searching online for code that solves the below, but to no avail.

    I have a workbook that contains 52 tabs (weeks) and 4 other tabs that contain data that populate some of the cells in the weekly tabs.

    I want to search the 52 weeks using criteria to search for text, (ignoring the 4 other tabs)then copy that row and paste it into a Summary tab.

    Thanks

    George

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Code for searching multiple worksheets and based on criteria copy and paste that data

    Rather than simply creating what's essentially a work around which wouldn't be necessary if you had a proper single sheet database, are you up to creating that database first. Analysing anything thereafter would be trivial. A simple macro could combine all 52 sheets into one large database which would allow you to get rid of the 52 sheets.

    When you need to see details for a particular week/month/quarter/other criteria such as the one you describe here you would use an advanced data filter based on the database to output that subset of records.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-04-2012
    Location
    Dundee,Scotland
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Code for searching multiple worksheets and based on criteria copy and paste that data

    Hi, thanks for the reply

    I did have it as 1 worksheet but my boss was unhappy with this and insisted I went down the 52 week sheet road. Even if I could all the data from all the sheets on one tab I can autofilter it.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Code for searching multiple worksheets and based on criteria copy and paste that data

    Mmm, bosses, what do they really know about these things.

    OK, how about a half way house
    1. Retain your 52 sheets for the moment
    2. Create a single sheet containing all the data from the 52 sheets
    3. Create a template extract sheet for extracting anything your boss is interested in - i.e. yor specific request
    4. Convince your boss that it really isn't sensible and is not efficient - this is a case in point since at the moment you can't achieve the task s/he wants
    Point out to your boss that his/her insistence on having 52 weeks has added to the complexity and is more time consuming
    5. Put in for a pay rise on the basis of you are now able to be even more productive.

    Assuming the format of all 52 sheets are the same . i.e same columns, upload your workbook and we can no doubt quickly create a macro to get all the data on one sheet.

+ 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. Copy Data from multiple sheets based on criteria in a column and paste to master log.
    By Jsonic5280 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2016, 03:55 PM
  2. [SOLVED] Copy column data from multiple worksheets to single worksheet based on header criteria
    By nateaskins in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-21-2014, 10:42 AM
  3. Unique Copy and Paste Macro - Multiple Worksheets Based on IF (AND) criteria
    By dwalt75 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-16-2013, 04:49 PM
  4. [SOLVED] Copy data across multiple worksheets (based on three criteria)
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2012, 12:53 AM
  5. Replies: 1
    Last Post: 01-06-2012, 06:18 AM
  6. Copy and paste autofilter data based on multiple criteria to another worksheet
    By loneman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2012, 03:05 PM
  7. Replies: 8
    Last Post: 08-08-2010, 06:10 AM

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