+ Reply to Thread
Results 1 to 3 of 3

Remove Duplicates with Criteria

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    1

    Remove Duplicates with Criteria

    Hi All,

    I am having trouble figuring out how to filter my report of Electronic Transactions (Credit/Debit/EBT etc...)
    The normal message that comes accross is "Approved" but during an Network Outage we have a message of "Error"
    The fields I have are Store/Date/Time/Amount/Account (Last 4 Digits of the Card).

    I want to filter out a line with "Error" if there was a Store/Date/Amount/Account which matches an "Approved" message

    The ultimate goal is for this report to tell me the actual amount lost (with the exception of the customer paying cash).

    Any help would be appreciated. Thank You!

  2. #2
    Registered User
    Join Date
    04-08-2013
    Location
    Reigate
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Remove Duplicates with Criteria

    How about concatenating the store,date,amount and account on each line to produce a key, and then match observations by their key?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Remove Duplicates with Criteria

    Hi and welcome to the forum

    If you want to sum certain data, based on criteria like you mention, try using =sumifS() (use the formula guide to aid in range/criteria selection)

    If you are looking to filter any row that has "Approved" in any of those 5 columns, add a helper column and use =countif(A2:E2,"Approved")>0
    filter on TRUE

    Even if you filter the data, a sum() will still include hidden rows, so either use subtotal(9,range) or the sumifS() suggested above
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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