+ Reply to Thread
Results 1 to 2 of 2

Vlookup Filtered Array

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2003
    Posts
    1

    Vlookup Filtered Array

    Hi All,

    I am new to the forum and have don't know if this is even possible.

    I have a spreadsheet that I need to look up values based on a certain criteria.


    Location| Name |Status |Paid
    CA | Tom |Close |YES
    CA | Jerry |Open |NO
    AZ | Will |Close |YES
    AZ | Sam |Open |NO
    NY | Frank |Close |NO
    NY | Lisa |Open |NO
    WA | Amy |Close |YES
    WA | John |Open |NO


    Result should be this if I lookup the location for only open orders and return the paid column.


    Lookup |Paid
    CA |NO
    AZ |NO
    NY |NO
    WA |NO

    sorry not sure the best way to paste excel tables.

    I have tried other examples on this forum in which I find too difficult to adapt to my situation.

    filter-array-example.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Vlookup Filtered Array

    I don't believe a single cell can accomplish all that you're asking for. It can be done, however, with a series of formulas.

    You can do it by putting the following formula in A14:

    =IFERROR(INDEX(A$2:A$9,SMALL(IF($C$2:$C$9="OPEN",IF(MATCH($A$2:$A$9&$B$2:$B$9&$C$2:$C$9&$D$2:$D$9,$A$2:$A$9&$B$2:$B$9&$C$2:$C$9&$D$2:$D$9,0)+ROW($A$1)=ROW($A$2:$A$9),ROW($A$2:$A$9)-ROW($A$1))),ROWS(I$2:I2))),"")

    (This formula is entered as an array using Ctrl+Shift+Enter).

    Then copy down and over as needed.

    The only other option I know of would be to use a macro, which would likely duplicate the efforts of copying the same formula across the range and then copying the value.
    Last edited by daffodil11; 10-24-2013 at 06:10 PM.

+ 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. Linking a dropdown box to an array of filtered data
    By Paragoomba in forum Excel General
    Replies: 5
    Last Post: 08-22-2013, 09:41 AM
  2. [SOLVED] Add Auto Filtered Non Contigous range to Array
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2012, 04:27 AM
  3. Filtered list into an array
    By Macro1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2011, 06:17 AM
  4. Filtered Array for Listbox
    By Jim at Eagle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2006, 11:40 AM
  5. [SOLVED] Trying to count text in a filtered array using this function
    By dtg_denver in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2005, 10:05 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