+ Reply to Thread
Results 1 to 6 of 6

Column search, display non-duplicates

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Column search, display non-duplicates

    I have a spread sheet, and i'm new to the macros & VBA world.

    I'm trying to generate a search tool that will search through C9:C128 and display the data that does not have a duplicate.

    thoughts? can this be done with an excel formula or would it need to be a macro?

    thanks for the input.
    Last edited by garretonufer; 07-30-2009 at 06:18 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Column search, display non-duplicates

    I'm trying to generate a search tool that will search through C9:C128 and display the data that does not have a duplicate.
    This sounds more like a filtering task.

    You could use Advanced Filter which provides the following options
    1. Filter the list in place or copy the filtered list to a new location
    2. Show Unique values only - thus removing duplicates from view

    The Excel help file explains use of Advanced Filter quite well. Give it a try and if it doesn't meet your need post back.

  3. #3
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Column search, display non-duplicates

    So i tried doing a filter, using the icon under the data link tab (Excel 2007)

    The filtering tok all my data, arranged it and copied the entire list into the specified cell.

    What i am trying to do is have excel copy the data that does NOT have a duplicate in the original Column. - Reason Being is that i'm trying to cross reference 2 different sources of data within one column, and i need to see which data doesn't match.

    is there a way to use the filter tool and have it copy only non-duplicated data?
    Last edited by garretonufer; 07-29-2009 at 11:26 AM.

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Column search, display non-duplicates

    When using the Advanced Filter did you make sure to check the box at the bottom of the dialog, which says" "Unique values only"

    You could also adapt this formula, used in an adjacent column, to return a result of TRUE or FALSE if there are duplicates.

    =COUNTIF($A$1:A3,A1)>1

    Then use Advanced Filter only for those records that have a FALSE (= no duplicates in the list).

  5. #5
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Column search, display non-duplicates

    you'll have to forgive my lack of knowledge.

    I like the COUNTIF(C9:C225,C9)>1 option.

    I went into sheet 2 and entered in the formula:

    =COUNTIF('Sheet1'!$C$9:'Sheet1'!$C$229,'Sheet1'!C9)>1

    and drug it down so that it gave me the same quantity of results as I had inputs.
    I then followed it with entering:
    =IF(A1=TRUE,"",'Sheet1'!C9)
    this obviously giving me the data which is not duplicated.

    so now i have essentially 214 rows of intermitent data depending upon the TRUE or FALSE value in A1-A214.

    what is the best way I can sort this now intermitent data back on Sheet1 and a way that there are no empty cells in the column?
    Ultimately I want to sort the column with the intermitent data, except that I want the sorted information in another column i.e.: Sheet2 D


    thanks for all the help so far!

    My true goal is to be able to put all of this into a macro some how and perform all this and list the sorted results on Sheet1 N9 as an example.
    Last edited by garretonufer; 07-29-2009 at 03:43 PM.

  6. #6
    Forum Contributor
    Join Date
    07-28-2009
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Column search, display non-duplicates

    this has been solved through a macro. http://www.excelforum.com/excel-prog...ate-macro.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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