+ Reply to Thread
Results 1 to 4 of 4

Copy rows from multiple worksheets with multiple criteria - greater than dynamic values

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    Cleveland, OH
    MS-Off Ver
    Excel for Mac 2011
    Posts
    6

    Copy rows from multiple worksheets with multiple criteria - greater than dynamic values

    I have code that successfully extracts rows from 83 worksheets into a master worksheet based on one value being greater than a number in the code. I would like to be able to look up 3 (or more) values that can be pulled from a cell in the master worksheet that I can change as the project demands. The values are numeric and not integers. Here is the existing code which I pulled from another forum post. Generally speaking, I have no idea what I'm doing:

    Please Login or Register  to view this content.
    There same rows appear multiple times on the same sheets (e.g. sheet2 has the identical data on two rows) and there are empty rows. I'd like it to only output that row once if possible.

    Thanks a ton,

    Andrew

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy rows from multiple worksheets with multiple criteria - greater than dynamic value

    Submit an example workbook with a clear description of what you are trying to accomplish
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    Cleveland, OH
    MS-Off Ver
    Excel for Mac 2011
    Posts
    6

    Re: Copy rows from multiple worksheets with multiple criteria - greater than dynamic value

    Update. I figured out how to look up multiple variables and how to pull the variables from cells, but I am still want to limit my output to unique rows. Looking at the attached example, I want to be able to create a list of all places with a population between 25,000 and 250,000 with median household income less than $48,308 and with more than 17.2% of the population with a "ratio of income to poverty level" at "percent 0 to 99." The attached sample workbook county econ data example.xlsx shows that I am getting the correct output, but I want it to cull the double entries from the source worksheets.

    Here is up my updated code
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Copy rows from multiple worksheets with multiple criteria - greater than dynamic value

    but I want it to cull the double entries from the source worksheets.
    Since you loop through each worksheet you could perhaps add a line like this?

    Please Login or Register  to view this content.
    I've tested this on the "MergedData" sheet to get rid of duplicates. The the start point A3 is where the headings is, modify if needed.

    Alf

+ 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. [SOLVED] Copy rows from multiple worksheets based on criteria in column
    By Slavica in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-10-2014, 08:45 AM
  2. Count rows meeting multiple criteria of multiple values
    By borcimaeh in forum Excel General
    Replies: 4
    Last Post: 08-24-2014, 02:37 PM
  3. Macro to copy rows from multiple worksheets based on criteria in range
    By guidovdn in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-14-2013, 01:21 PM
  4. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  5. copy rows from multiple worksheets to a new condition based on criteria
    By TheVoodoo in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-20-2012, 02:37 PM
  6. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  7. Dynamic values in multiple worksheets
    By ninosportif in forum Excel General
    Replies: 0
    Last Post: 04-13-2009, 01:17 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