+ Reply to Thread
Results 1 to 8 of 8

Adding Duplicates and deleting duplicate rows

  1. #1
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Adding Duplicates and deleting duplicate rows

    Thanks for looking at my post.
    Any help will be much appreciated and thanks again for your time and effort.

    I have two sheets

    Sheet1 and sheet2

    I would like sheet1 to be like sheet2 please. Sheet2 is the result what i am looking for tbh
    Basically, I have number with sometimes its duplicating. I have added formula in column F if it is duplicate or not.
    If it is duplicate then i would like to add corresponding column in respect to number and delete the duplicate.
    That is for example, number 3 is repeating three times. In this case column B will be 15, Column C will be 28 (15+9+4), column D will be 16 (0+12+4), column E will be 30 (10+8+12)
    After adding rest of the 2 duplicate need to get deleted and leaving only one time 3 rather than three times please.

    Hope i explained it. If not please let me know.

    Thanks again
    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: Adding Duplicates and deleting duplicate rows

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Adding Duplicates and deleting duplicate rows

    That's fantastic. Thanks a lot for your time and effort. One last question what if I need to add some condition on it. Like example I wanted to add only if column B have word called "Condition 3" please.

    I have added workbook with sheet1 as raw data and sheet 2 as how the result looking for please.

    Thanks again for brilliant work
    Attached Files Attached Files

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

    Re: Adding Duplicates and deleting duplicate rows

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Adding Duplicates and deleting duplicate rows

    Brilliant.

    Thanks a lot again for your time and effort

    Thanks,
    Kind regards,
    Jim

  6. #6
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Adding Duplicates and deleting duplicate rows

    Hi,

    Sorry to reopen this post.

    I am using same vba code for another condition where I don’t have any criteria and just need to add the same repeated number. I have slightly modified code as
    HTML Code: 
    where I don’t have any condition and unique is not needed anymore. Issue is when ever I add new column the last column is showing as unique rather than adding data like previous columns.
    Any idea of where I am going wrong please?

    Thanks once again
    Attached Files Attached Files

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

    Re: Adding Duplicates and deleting duplicate rows

    Do you mean like this?
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    01-21-2021
    Location
    Leeds
    MS-Off Ver
    2016
    Posts
    236

    Re: Adding Duplicates and deleting duplicate rows

    Perfect. You are star

    Thanks a lot again

+ 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] Deleting the Duplicates Rows
    By maddyrafi1987 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 05-15-2017, 06:12 AM
  2. Code for Eliminating duplicate rows and re arrange without deleting rows
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2016, 02:42 PM
  3. Deleting rows that are NOT duplicates
    By ecruz in forum Excel General
    Replies: 4
    Last Post: 04-23-2015, 07:12 PM
  4. Cleaning rows of data and clean rows of duplicates not deleting.
    By guidom in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2014, 12:48 PM
  5. Deleting Duplicates across rows
    By caunyd in forum Excel General
    Replies: 3
    Last Post: 08-06-2013, 03:08 PM
  6. [SOLVED] Adding then deleting the Duplicates
    By legeorgia in forum Excel General
    Replies: 4
    Last Post: 07-23-2012, 07:29 PM
  7. finding data in duplicate rows, revising row data and deleting duplicates
    By MF Xrx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2008, 06:49 PM

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