+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Extract multiple matches based on one criteria

  1. #1
    Registered User
    Join Date
    04-07-2011
    Location
    Brooklyn, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    21

    Extract multiple matches based on one criteria

    I'm guessing there's an IF statement plus a VLOOKUP formula I can use in the attached spreadsheet, but I don't know what it is and am wondering if anyone would like to help.

    Two tabs: "701" and "pump list"
    Goal: To get a list of pumps from "pump list" tab populated in column A of the "701" tab, but ONLY of the pump listed on the "pump list" tab has a 701 next to it. Empty cells should have nothing listed in them (as opposed to a NA or a zero).

    What I'm trying to do is make scheduling production easier by dropping regularly changing data in a 'data dump' tab and using formulas to drive my schedule. I included a JPEG of what it should look like when it's done... but in the JPEG I just copied and pasted the values, where I ultimately need a formula to populate the cells.

    Thank you for any / all help you can offer! You guys helped me out before and I'm so very grateful for your support.

    Jenn
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by NBVC; 07-19-2011 at 04:12 PM. Reason: OP marked solved incorrectly

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need IF & VLOOKUP help

    In D2 of pump list sheet enter:

    =IF(B2=701,COUNT(D$1:D1)+1,"")

    copied down

    in E2 enter

    =MAX(D:D)

    Then in 701 sheet A4:

    =IF(ROWS($A$1:$A1)>'pump list'!$E$2,"",INDEX('pump list'!A:A,MATCH(ROWS($A$1:$A1),'pump list'!$D:$D)))

    and in B4:

    =IF(ROWS($A$1:$A1)>'pump list'!$E$2,"",INDEX('pump list'!C:C,MATCH(ROWS($A$1:$A1),'pump list'!$D:$D)))

    both copied down to the bottom of the table.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-07-2011
    Location
    Brooklyn, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Need IF & VLOOKUP help

    Thank you so much. I'm staring at my computer screen, jaw hanging open. I wish I had your knowledge!! Again, thank you so much. I will be sure to mark the post as solved.

    Kindest regards,
    Jenn

+ 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