+ Reply to Thread
Results 1 to 4 of 4

Filter Table Function Excluding Columns from Another Table

  1. #1
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Question Filter Table Function Excluding Columns from Another Table

    Hello,

    I have a FILTER function that tries to exclude matched records from a second table. Current formula.


    Please Login or Register  to view this content.
    The formula above works if there is only 1 record in the lookup table (tblNonEmpl above) but if I add more than one record, the formula returns an #NA error.

    Thoughts on how I can solve this?

  2. #2
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Filter Table Function Excluding Columns from Another Table

    It's because when it compares an array with a single value, it compares each value in the array with the single value.

    Similarly when it compares two arrays with the same dimensions, it compares each corresponding pair (e.g. 1st value with 1st value, 2nd with 2nd)

    However when you try to compare 2 arrays of different dimensions, it doesn't know what to do.

    Try replacing this:

    NOT(tblCerts[Full Name]=tblNonEmpl[Resource Name])

    with this:

    NOT(ISNUMBER(MATCH(tblCerts[Full Name],tblNonEmpl[Resource Name],0)))

  3. #3
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Re: Filter Table Function Excluding Columns from Another Table

    Money! Thank you sir, that worked! Thanks for the explanation as well.

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Filter Table Function Excluding Columns from Another Table

    You're welcome, glad it helped

+ 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. Filter table using multiple columns with AND and OR condition
    By Gregb11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2021, 10:38 PM
  2. [SOLVED] Filter columns in Pivot table
    By mikla90 in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 01-12-2021, 08:22 AM
  3. Replies: 5
    Last Post: 06-12-2020, 01:55 PM
  4. advance filter but only some columns to table
    By tim_p in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2020, 04:42 PM
  5. Hide columns based on table filter
    By lucacarbi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2020, 07:11 AM
  6. Pivot Table help - filter out Columns with data
    By CapitalH in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-10-2019, 03:47 AM
  7. [SOLVED] VBA filter columns of pivot table.
    By countryfan_nt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2017, 07:20 AM

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