+ Reply to Thread
Results 1 to 2 of 2

Eliminating Duplicates

  1. #1
    Registered User
    Join Date
    07-28-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Eliminating Duplicates

    I have two separate worksheets from two different sources that I am trying to merge together. I'm trying to reconcile statements but the excel reports I can export are limited. In short, a sale is made and the credit card company deducts a fee for every order. But, each order can have multiple items. The bank only charges fees to the order total. One data sheet shows the order amounts. The second data sheet shows the fees charged. The only common denominator is the Transaction Id. So, I used a simple sumif formula to try and match up each order in Data 1 with the corresponding bank fees in Data 2. BUT, there are duplicates which I have highlighted. Using the first two rows in Data 1 as an example, you'll see there are two transactions under the same order. So, while the sumif works well to match up the transaction IDs, it's obviously not filtering out the duplicates. The total bank fee for the entire order in the first two rows is $21.18 and NOT $42.36. Asides from scanning each row to delete the duplicate fees manually, does anyone have any suggestions to improve the formula in the FEES column to help me filter out the duplicates? Or any other method to accomplish the same thing? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Eliminating Duplicates

    hi jb2235. try showing what you are hoping to see as a final result next time. that will help us understand better. right now, i can give you 2 alternatives but i dont know if it meets your goal

    use this formula in column F to show the amounts only once:
    =IF(COUNTIF(A$2:A2,A2)=1,SUMIF('Data 2'!$B$2:$B$21,$A2,'Data 2'!$H$2:$H$21),"")

    or before/after you done the formula, select the range go to Data-> Remove Duplicates. Check the option that "My data has headers". Check only the "Transaction ID" to indicate that it is only considered a duplicate when the address is duplicated.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] Eliminating duplicates
    By thilag in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2014, 02:59 AM
  2. Eliminating Duplicates from Count
    By Janie in forum Excel General
    Replies: 3
    Last Post: 06-04-2012, 12:22 PM
  3. Eliminating duplicates within certain date ranges
    By SymphonyTomorrow in forum Excel General
    Replies: 1
    Last Post: 11-19-2011, 06:31 AM
  4. Eliminating duplicates
    By maximpinto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2009, 06:07 AM
  5. aggregating and then eliminating duplicates from a database
    By EDUcoordGR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2009, 12:33 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