+ Reply to Thread
Results 1 to 9 of 9

Pull records that do not match a criteria

  1. #1
    Registered User
    Join Date
    03-02-2021
    Location
    Austin
    MS-Off Ver
    16.16.27
    Posts
    4

    Pull records that do not match a criteria

    I am trying to pull the records for agents that had a transaction in a zip code where the zip is not listed in the agent's coverage area. I have sheets with buy and sell data as well as a sheet with the agent coverage. In the sample workbook I am trying to get a list similar to what is on the non coverage stats sheet. I have no idea where to start with this. Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Pull records that do not match a criteria

    Hello so2605. Welcome to the forum.

    Not sure I understand completely.
    Try this in D2 non coverage stats and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    03-02-2021
    Location
    Austin
    MS-Off Ver
    16.16.27
    Posts
    4

    Re: Pull records that do not match a criteria

    Thanks Dave! I can get the counts for the agents in the zip but I am trying to pull together a list that shows the agent name and the zip that is not in the coverage area where they ended up having a transaction. Because in the actual data there is over 100 agents I'm trying to avoid manually inputing the agent with the zip not listed in the coverage area. For example an agent has transactions in 2 zip codes that aren't listed in their coverage area. So I would need 2 rows with the agent's name and each zip in the non coverage stats sheet. I am more focused on being able to pull columns a and b instead of manually looking for each instance of a transaction in a non covered zip.
    Last edited by so2605; 03-02-2021 at 05:22 PM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Pull records that do not match a criteria

    If I understand it correctly:

    Take the Agent and coresponding Zip code from the 2 "sell" and "buy" list, compare with "coverage" list, then list the missing Agent and zip code in "non coverage" list?

    Is it allowed using a helper column in those sheets?
    Quang PT

  5. #5
    Registered User
    Join Date
    03-02-2021
    Location
    Austin
    MS-Off Ver
    16.16.27
    Posts
    4

    Re: Pull records that do not match a criteria

    Thanks Quang! That is what I'm trying to do and I can use a helper column. Thanks!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,026

    Re: Pull records that do not match a criteria

    Buy agent, D2, copied down:
    =IF(ISNUMBER(MATCH(1,INDEX((A2='coverage zips'!$A$2:$A$11)*(B2='coverage zips'!$B$2:$B$11),0),0)),"","X")

    Sell Agent D2, copied down:
    =IF(ISNUMBER(MATCH(1,INDEX((A2='coverage zips'!$A$2:$A$11)*(B2='coverage zips'!$B$2:$B$11),0),0)),"","X")

    Non-cov A2, copied across and down:
    =IFERROR(IFERROR(INDEX('Buy agent'!A:A,AGGREGATE(15,6,ROW('Buy agent'!$D$2:$D$15)/('Buy agent'!$D$2:$D$15="X"),ROWS(A$2:A2))),INDEX('sell agent'!A:A,AGGREGATE(15,6,ROW('sell agent'!$D$2:$D$15)/(('sell agent'!$D$2:$D$15="X")*(COUNTIFS($A$1:$A1,'sell agent'!$A$2:$A$15,$B$1:$B1,'sell agent'!$B$2:$B$15)=0)),1))),"")

    Non-cov C2, copied down:
    =IF(A2="","",SUMPRODUCT(--(A2='Buy agent'!$A$2:$A$15),--(B2='Buy agent'!$B$2:$B$15))+SUMPRODUCT(--(A2='sell agent'!$A$2:$A$15),--(B2='sell agent'!$B$2:$B$15)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    03-02-2021
    Location
    Austin
    MS-Off Ver
    16.16.27
    Posts
    4

    Re: Pull records that do not match a criteria

    Thanks Glenn! The formula for non coverage in cell A2 works when I update the buy agent ranges but when I update the sell agent ranges it starts returning blank cells.
    Last edited by so2605; 03-03-2021 at 04:59 PM.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Pull records that do not match a criteria

    If you are still looking for help, please post an .xlsx file that illustrates the issue mentioned in post #7.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,026

    Re: Pull records that do not match a criteria

    Weird. I never saw your reply so2605...

+ 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. Match two criteria and return multiple records
    By fish0321 in forum Excel General
    Replies: 5
    Last Post: 02-24-2021, 02:25 AM
  2. [SOLVED] Extract all records that match criteria in 2 columns
    By drgkt in forum Excel General
    Replies: 13
    Last Post: 09-10-2016, 02:53 PM
  3. [SOLVED] Formula to Get Sum Total for Records that match Criteria
    By boldcode in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2015, 07:40 PM
  4. [SOLVED] List all records match criteria
    By pccamara in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2015, 06:13 AM
  5. Data match records on a list on two criteria
    By AlexnL12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2014, 02:20 PM
  6. [SOLVED] Countif Unique Records in List Match Criteria
    By gjohn282 in forum Excel General
    Replies: 5
    Last Post: 07-16-2012, 04:15 AM
  7. Replies: 1
    Last Post: 06-21-2012, 10:16 AM

Tags for this Thread

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