+ Reply to Thread
Results 1 to 5 of 5

pick names from B2 if O2 meets criteria "x"

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    MA
    MS-Off Ver
    Excel 2009
    Posts
    27

    pick names from B2 if O2 meets criteria "x"

    Hi guys,

    I'm trying to find a way to summarize a column. Basically if a cell in Data!O2:O500 has an "x", then I'd like to pull the name from B2:B500, skipping the cells that have nothing "".


    B2 ---------O2
    Jack x
    Bill
    Sam x



    I would like my new list
    Jack
    Sam



    I believe this is possible, but I'm having a huge brain fart.
    BRIZZLE!
    Last edited by BRIZZLE101; 03-31-2013 at 08:45 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: pick names from B2 if O2 meets criteria "x"

    hi Brizzle, welcome to the forum. assuming your list starts from Q2, try this array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: pick names from B2 if O2 meets criteria "x"

    in P2, copied down, use this...

    =IFERROR(INDEX(OFFSET(INDEX($A$2:$A$17, MATCH("x",$O$2:$O$17, 0)),,, COUNTIF($O$2:$O$17, "x"), ), ROW(A1)), "")

    adjust ranges as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-23-2013
    Location
    MA
    MS-Off Ver
    Excel 2009
    Posts
    27

    Re: pick names from B2 if O2 meets criteria "x"

    thanks benishiryo that works.
    Thanks FDibbins, that kind of works initially. Results are skewed after a few cells.

    Brizzle!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: pick names from B2 if O2 meets criteria "x"

    If you are not getting accurate results, you probably copied it to the wrong place, or you are not using x as the "selecter"

+ 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