+ Reply to Thread
Results 1 to 6 of 6

Check Duplicates

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Check Duplicates

    Hi all,

    I need a bit of help with a VBA, I would like to make a macro that will find the lines that are duplicates and then check for these lines that the sum from column D to not exceed 100%. If it exceeds 100% a message to pop up saying which row numbers should I check in order to correct that the percentage sum to be below 100%.

    I was able to make a VBA but it didn't work as I intended.

    Please notice that the range should be dynamic since new lines will be added constantly.

    In the Excel attached there is a simple example with 3 lines that are duplicates same id same date and same detail and if the percentage for one of the lines will be changed to 70% then the sum of the 3 rows will exceed 100%. Basically I need a message to pop up saying the you have exceed 100% for the sum of the rows 3,4,5

    Thanks a lot for the help,

    Best regards,
    Red1234
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Check Duplicates

    Something like this.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Check Duplicates

    Post deleted as I saw solution by jindon that solved the OP's problem to a T.

    Alf

  4. #4
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Re: Check Duplicates

    Thanks It seems to work.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Check Duplicates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Re: Check Duplicates

    Done!

    BR,
    Red1234

+ 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. Check for duplicates
    By rontabz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2017, 05:35 PM
  2. duplicates check
    By scouse13 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-04-2016, 06:13 PM
  3. Check for non duplicates
    By sulavsingh6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2009, 09:26 PM
  4. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  5. Macro to check for duplicates and highlight duplicates
    By obc1126 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2008, 09:55 PM
  6. Check for duplicates but allow some
    By peakoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2008, 07:20 AM
  7. Check for Duplicates
    By nebb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2006, 10:40 AM

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