+ Reply to Thread
Results 1 to 4 of 4

deleting duplicate values from a specific range

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    deleting duplicate values from a specific range

    hello,

    I would like to delete duplicate values in a certain range. .Range("B21:I22"). if a duplicate value exists then delete the duplicate value and the one beside it to its left. I have looked at the RemoveDuplicates function but it applies to columns and not specific range or maybe I don't understand it properly. help pls n thank you

    regards,

    SN
    Attached Files Attached Files
    Last edited by snkhan; 07-12-2020 at 07:37 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: deleting duplicate values from a specific range

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    Re: deleting duplicate values from a specific range

    hello,

    I have attached a sample. thank u

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,423

    Re: deleting duplicate values from a specific range

    Perhaps this will help.
    A helper range (P1:V2) is populated using: =COUNTIFS($A$1:A1,A1)
    The output (highlighted in green) is produced using: =IF(P1=1,A1,"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Help with deleting duplicate values in a list
    By rorshil in forum Excel General
    Replies: 2
    Last Post: 03-01-2019, 10:22 AM
  2. Need help deleting duplicate values
    By harrisonD in forum Excel General
    Replies: 4
    Last Post: 05-26-2017, 06:50 PM
  3. [SOLVED] Conditional formatting for duplicate values within a specific number range 2010
    By Nunzio in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-20-2014, 04:00 PM
  4. Deleting specific Duplicate records after making Determination of Status
    By DannyGIS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-21-2014, 08:10 PM
  5. [SOLVED] deleting all duplicate values in a spreadsheet
    By bawlmer in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 02-19-2014, 02:10 PM
  6. deleting duplicate values
    By Suraj3825 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2013, 08:37 AM
  7. Deleting Duplicate Values
    By epreuss in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 12:01 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