+ Reply to Thread
Results 1 to 5 of 5

Formula to remove duplicate words

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    51

    Question Formula to remove duplicate words

    Hi all,

    I am trying to write a formula to remove duplicates values but my formula keeps returning the value zero.

    INDEX(Sheet2!$F$5:$F$195,MATCH(0,COUNTIF($A$1:A1,Sheet2!$F$2:$F$195),0))

    I have a table of words on Sheet 1 in Cells F5 to about F100. I want my formula to return those values (minus the duplicates), & paste them in Column A in Sheet1. Could someone please advise where I am going wrong?

    Thanks

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

    Re: Formula to remove duplicate words

    Your INDEX range and COUNTIF range are different. Either change F5 to F2 or change F2 to F5.

    Also, make sure you array enter the formula.

    Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you *must* use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you *must* use the key combo to produce them. Also, anytime you edit an array formula it *must* be re-entered as an array using the key combo.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Formula to remove duplicate words

    unique.xlsx
    Another way
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Registered User
    Join Date
    12-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    51

    Re: Formula to remove duplicate words

    Thank for your response Tony.

    I changed the F2 to F5 but i am still getting all zeros, do you have any other idea on what I am doing wrong?

    {=INDEX(Sheet2!$F$5:$F$195,MATCH(0,COUNTIF($A$1:A2,Sheet2!$F$5:$F$195),0))}

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

    Re: Formula to remove duplicate words

    Here's a small sample file that demonstrates this:

    ExtractUniques.xlsx

    Data in the range Sheet2 F5:F18.

    Uniques extracted to Sheet1 starting in cell A2 and downwards.

+ 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] Formula to remove lines with words
    By JakeMann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 10:06 AM
  2. Remove duplicate WORDS from within cells
    By smuglovsky in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2013, 06:14 PM
  3. Replies: 10
    Last Post: 04-10-2012, 06:37 PM
  4. Remove duplicate words from two columns
    By liapisit in forum Excel General
    Replies: 13
    Last Post: 04-08-2010, 09:40 AM
  5. Formula to remove spaces between words
    By jasonmcbride in forum Excel General
    Replies: 2
    Last Post: 03-31-2009, 08:54 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