+ Reply to Thread
Results 1 to 3 of 3

Marking rows with certain duplicate values

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    30

    Marking rows with certain duplicate values

    Hi,

    So I am trying to mark certain rows as duplicates if their values in Columns J, AD and ABS(BD) match. J and AD contain Number letter Identification combinations and BD contains a value. I currently have a formula as shows that will mark all of these values:

    [Formula]
    =IF(AND(COUNTIFS(J:J,J15,BD:BD,ABS(BD15),AD:AD,AD15)>1, (SUMIFS(BD:BD,J:J,J15,AD:AD,AD15,BD:BD,ABS(BD15)))<>ABS(BD15)),"Duplicate","")
    [Formula]

    The issue with this formula is that I do not want it to mark rows that look like this:

    J - AD - BD
    AA1 BB2 20
    AA1 BB2 -20
    AA1 BB2 20

    I have a lot of rows that will appear like this. Their sum in BD equals the absolute value of the value in BD. I thought this would get picked up using the SUMIFS portion of my formula but it is not. I cannot find the problem.

    Thanks,
    Justin

  2. #2
    Registered User
    Join Date
    07-07-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    30

    Re: Marking rows with certain duplicate values

    So I've discovered that the problem is actually that the SUMIFS will only pick up the positive values in column BD. This means the question becomes is there anyway to have a SUMIFS Formula search to match the absolute value of a value in a column. I cannot simply put ABS(BD:BD) like in the formula below.

    =SUMIFS(BD:BD,J:J,J15,AD:AD,AD15,ABS(BD:BD),ABS(BD15))
    Last edited by HCLax; 07-08-2014 at 02:44 PM.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Marking rows with certain duplicate values

    Use the SUMPRODUCT function but don't use entire columns as references. Use smaller specific ranges:

    =SUMPRODUCT(--(J2:J100=J15),--(AD2:AD100=AD15),--(ABS(BD2:BD100)=ABS(BD15)),BD2:BD100)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Compare Rows, Delete duplicate values, Sum values but Retain blank rows
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2013, 07:38 AM
  2. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  3. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  4. Marking duplicate cells
    By cp49321 in forum Excel General
    Replies: 1
    Last Post: 02-09-2012, 02:19 PM

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