1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Return Rows in one sheet based on criteria from another

Discussion in 'Business Applications' started by Shaido22, Mar 31, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. Shaido22

    Shaido22 Thread Starter

    Joined:
    Mar 31, 2010
    Messages:
    3
    Hi I'm absolutely struggling with this:

    I have an Excel file with 2 worksheets.

    In Sheet1 is a drop-down list of countries (A1), and in Sheet2 is the Data.
    The Data (Sheet2) has a country field in Column A.

    What I want is to ONLY display data rows in Sheet2 (or possibly a new sheet), where the country matches the country selected from the drop down entry on Sheet1.

    Any Ideas?
     
  2. Rollin_Again

    Rollin_Again

    Joined:
    Sep 4, 2003
    Messages:
    4,912
    Are you able to provide a sample workbook?

    Rollin
     
  3. Shaido22

    Shaido22 Thread Starter

    Joined:
    Mar 31, 2010
    Messages:
    3
    Unfortunately not Rollin, but I can supply a "mock" sample workbook that uses the same principals.
     

    Attached Files:

  4. Rollin_Again

    Rollin_Again

    Joined:
    Sep 4, 2003
    Messages:
    4,912
    Out of curiousity why are you using 2 sheets? The reason I ask is that you can easily limit the records you want to show on sheet 2 using a simple autofilter instead of having to resort to VBA or complicated formulas.

    Rollin
     
  5. Shaido22

    Shaido22 Thread Starter

    Joined:
    Mar 31, 2010
    Messages:
    3
    I know, but this data will be sent out to each country, and the Idea is they don't see or have access to each others data, although it still remain on in the sheet. I assume some sort of password protection will eventually be placed on it, but for now it's just the filtering over the 2 (or more) sheets.
     
  6. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    I don't see how one is supposed to know which match to make - you are only showing the country and the status, but for every country, based on the country alone, the status could be bankrupt or operational.
    It appears that a combination of the country and the product and the product ID might make for a unique value (although you will need to find this out yourself - you may need to add the company as well) and from that - I would use a simple concatenation formula such as:
    =(A2&"-"&B2&"-"&C2)
    or
    =(A2&"-"&B2&"-"&C2&"-"&D2)
    - and then look for that value and see if it is bankrupt or operational.
     
  7. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/913771

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice