+ Reply to Thread
Results 1 to 5 of 5

Function to remove duplicate values from a column

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    63

    Function to remove duplicate values from a column

    Hi Friends,

    I have column D (in Sheet 1) with aprox 1000 records i.e. alphanumeric character. In Sheet 2 , I just need to pull the unique value from column D (in Sheet 1). I know, I can do it by going to DATA tab and then selecting 'Remove Duplicate'. But then this is a manual process.

    Is there a formula or function by which the unique values directly show up in Sheet 2.

    Thanks,
    Rahul

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Function to remove duplicate values from a column

    Make sure the range on Sheet1 starts at row 2, if not add a row.

    in Sheet2!D2
    =IFERROR(INDEX(Sheet1!$D$2:$D$100, MATCH(0, COUNTIF(Sheet2!$D$1:D1,Sheet1!$D$2:$D$100), 0)),"")
    Array formula, use Ctrl-Shift-Enter

    There's prob a non array way of doing this.
    Last edited by Special-K; 03-20-2019 at 11:34 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Function to remove duplicate values from a column

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Function to remove duplicate values from a column

    The manual process will probably be quicker than the formula.

    Have you considered a pivottable, using column D for row lables?

    Enter in Sheet2 A2, Array confirm then fill down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Function to remove duplicate values from a column

    You can use a fairly basic Advanced Filter to do that.

    Select the range, click on Advanced filter, select somewhere to copy to, and check "unique records only"

    The only disadvantage is that you have to ouput the unique list on the same sheet. Very quick though and you could copy and paste it elsewhere.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 3
    Last Post: 04-26-2017, 08:01 PM
  2. [SOLVED] Remove duplicate values in Field cell from same column
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2016, 01:40 AM
  3. Macro to remove duplicate data in one column and keep highest value in another column
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2016, 08:56 AM
  4. [SOLVED] How to sum duplicate values then remove the duplicate rows?
    By terry3218 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2015, 02:38 AM
  5. Replies: 1
    Last Post: 11-14-2014, 07:45 PM
  6. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 AM
  7. Excel 2007 : Remove Duplicate Values from top 5
    By loknath in forum Excel General
    Replies: 1
    Last Post: 11-08-2011, 09:46 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