+ Reply to Thread
Results 1 to 11 of 11

filter items from 2 columns

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    filter items from 2 columns

    Hi, I would like to ask someone more experienced to help me with this problem:

    I have 2 columns (A & B)

    in the A column there is a list of e-mail adresses of subscribers, in the second column there is a list of email adresses of the people who decided to delete their subscription.

    I would like to filter the columns, so in the "C" column there will be the list of subscribers from the column A without the people (emails in the B column) who decided to unsubscribe.

    Is there any simple way how to achieve that? Thank you. Any help will be appreciated.

  2. #2
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Re: filter items from 2 columns

    Try...
    =if(and(istext(a1),isblank(b1)),a1,"")

    That will only give you those addresses in column A.

    Hope this helps.

    -Z

  3. #3
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    Re: filter items from 2 columns

    Quote Originally Posted by Zodeeak View Post
    Try...
    =if(and(istext(a1),isblank(b1)),a1,"")

    That will only give you those addresses in column A.

    Hope this helps.

    -Z

    Hi, thank you for your response. Unfortunately it doesn't work as I would like to. It shows the A column items only when the item next to it in the B column is empty. Basically what I need is some kind of formula that takes for example A1 and checks if the whole column B contains a cell with same text - if not -> list the value(text) in the C column ... if yes - skip the item and go to the next one. Ideally in the column C, there would be list of adresses (without gaps between them) that are present in the A column and not in the B column.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: filter items from 2 columns

    attach sample file with expected results
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    Re: filter items from 2 columns

    Quote Originally Posted by nflsales View Post
    attach sample file with expected results
    Ok, here you go.

    samplex3333.xlsx

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: filter items from 2 columns

    =IFERROR(VLOOKUP(B3,A$3:A$60,1,0),"")
    try this in C3 and copy towards down
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    Re: filter items from 2 columns

    Quote Originally Posted by nflsales View Post
    =IFERROR(VLOOKUP(B3,A$3:A$60,1,0),"")
    try this in C3 and copy towards down
    that doesn't work

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: filter items from 2 columns

    Try this: =IF(ISERROR(VLOOKUP(A2,$B$2:$B$3,1,FALSE)),A2,"") and copy down
    Last edited by alansidman; 11-08-2014 at 09:57 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  9. #9
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    Re: filter items from 2 columns

    Quote Originally Posted by alansidman View Post
    Try this: =IF(ISERROR(VLOOKUP(A2,$B$2:$B$3,1,FALSE)),A2,"") and copy down
    Yeah that works great thank you. Is there any simple way how to get rid of the blank cells in the C column? I have aproximately 20K subscribers and about 200 unsubscribed, so now there are 200 blank spots spread throughout the C column

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: filter items from 2 columns

    Highlight column C. Copy the selection. Paste Special, values on top of the existing values in column C. Now sort column C.

  11. #11
    Registered User
    Join Date
    07-02-2014
    Location
    Prague
    MS-Off Ver
    2007
    Posts
    59

    Re: filter items from 2 columns

    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. [SOLVED] I need formula or macro to filter a number of items from different tables at single filter
    By Karthikeyannb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2014, 11:04 AM
  2. macro to filter all items in Autofilter except 2+ items
    By DanRiverBrew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2013, 09:15 PM
  3. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 AM
  4. Excel 2007 : Report Filter Multiple items/All items
    By Ganivada in forum Excel General
    Replies: 2
    Last Post: 11-30-2009, 05:45 AM
  5. Extract filter items from Drop-Down Automatic Filter
    By karpatov in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2006, 02:10 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