+ Reply to Thread
Results 1 to 3 of 3

Extract from list in column A based on cell value in column B

Hybrid View

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    9

    Extract from list in column A based on cell value in column B

    Hello, I would like to know how I can extract values from one column depending on the cell value in another column in a table.

    The data will need to be extracted into another workbook.

    For example:

    Sheet1:

    A______________B
    Apple__________Diamond
    Mango_________Coal
    Orange________Platinum
    Banana________Diamond
    Pear___________Diamond
    Kiwi____________Coal
    Grape__________Platinum

    Now in another workbook I would like a list of all column A cells where the corresponding column B cell is Diamond, so column A should look like this....

    A
    Apple
    Banana
    Pear

    Preferably I don't want to use advanced filter.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extract from list in column A based on cell value in column B

    Try in A2 of your second sheet this ARRAY formula. Copy down.

    =INDEX(Sheet1!$A$2:$A$100,SMALL(IF(Sheet1!$B$2:$B$100="Diamont",ROW(Sheet1!$A$2:$A$100)-1),ROW(Sheet1!A1)))

    =IFERROR(INDEX(Sheet1!$A$2:$A$100,SMALL(IF(Sheet1!$B$2:$B$100="Diamont",ROW(Sheet1!$A$2:$A$100)-1),ROW(Sheet1!A1))),"")



    -- Array(CSE) { }, formulae are confirmed with Control+Shift+Enter.
    Not just Enter.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Extract from list in column A based on cell value in column B

    Thank you for the rep*.

    As i understand, that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

+ 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. extract row based on presence of value in cell column
    By figsology in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 04:19 AM
  2. Replies: 3
    Last Post: 02-14-2013, 10:25 AM
  3. Creating 2 Column List Based on 1 Column of Data... with a catch. :)
    By samebito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2013, 06:41 PM
  4. Replies: 10
    Last Post: 07-12-2010, 08:55 AM
  5. Replies: 3
    Last Post: 02-08-2010, 06:18 PM

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