+ Reply to Thread
Results 1 to 6 of 6

Using a Lookup, then skip rows

  1. #1
    Registered User
    Join Date
    05-06-2009
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2003
    Posts
    10

    Using a Lookup, then skip rows

    I posted this earlier, but I guess I wasn't super clear. Basically, if I had a data table of two columns, one with names, the other with country, and I have a worksheet for each country. I just want to do an if statement and a nested lookup to bring over every name with that country. However, I want to do this so that the worksheets are smart enough to only list the names with the country, and skip to the next name with that country. That way, I could paste the raw data at any time, and the worksheets will update accodringly. Can anybody help with this?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using a Lookup, then skip rows

    I do this sort of thing frequently. I usually add a "KEY" column to my data to make transferring over to the other sheets a simple case in INDEX/MATCH with a ROW() formula. Should be very peppy.

    Can you post up a sample workbook with 1 or 2 of the results sheets showing your desired results?

    Click on GO ADVANCED and use the paperclip icon to attach a workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-06-2009
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2003
    Posts
    10

    Using a Lookup, then skip rows Pt. II

    For some reason, I can't reply to the thread I started originally. To the person who replied to the previous thread, i have attached a sample file. I basically need a formula on the country worksheets that will bring over the names when it is that particular country. The formula should be set so that, as this data changes, so will the corresponding worksheets and will bring over only the names with that country without skipping any rows. Also, it is alot more data than this, but I just did it small for simplicity sake.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Using a Lookup, then skip rows

    here's one way to do it.
    see attached file.
    modytrane
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-06-2009
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Using a Lookup, then skip rows

    wow, can you explain that array formula to me?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using a Lookup, then skip rows

    My non-array approach which is possible with the addition of a filtering key to the info on the DATA sheet. Once that's there, an INDEX/MATCH can bring it over for each sheet. This will scale up to datasets with 10s of thousands of entries without the performance loss you get with array formulas.

    Options...

    This version also has a naming trick in the cell with Country. To create a new sheet, you need only duplicate an existing sheet and give it a unique name, the sheet will then automatically be working for that country.
    Attached Files Attached Files

+ 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