Related Links:
Count Number of Unique Values, with Excel Functions
Remove Duplicates or Create a List of Unique Records using Excel Formula
Remove Duplicates in a range, using “Remove duplicates” button in Data Tools
Create a List of Unique Records Using Advanced Data Filter:
——————————————————————————————————–
Using Advanced Data Filter
Select a cell in the data range
In Excel 97 to 2003: Data -> Filter -> Advanced Filter; In Excel 2007: Data -> Sort & Filter (group) -> Advanced
Under Action, select “Copy to another location”. (If you select “in-place”, the sheet still contains all records, and Duplicate records are hidden. To view all records, use Unhide rows in the Format menu.)
In the List range box, select or enter range of records (ie. data range).
In the Copy to box, enter or select the first cell (viz. cell C2 in Table 1) where you want to copy the List of Unique Records.
Click and select, Unique records only.
Click OK. Unique records are copied to column C, cell C2 downwards.
Note:
If the first record of original data is duplicated, it appears twice in the new list. Just hide or delete the first row in this case.
In case of multiple columns, a list of unique records in respect of each row will be created, comparing records of all columns in that row simultaneously. (Refer Table 2, Table 3)
To “Copy to” a different worksheet (ie. to copy/extract a list of unique records to a different worksheet), you need to first go to that worksheet (viz. make it the active sheet) and then perform the abovementioned steps (Using Data Advanced Filter).
———————————————————————————————————————-
Copy all columns or specific columns
While doing a “Copy to another location”, you can copy/extract all columns or specify the columns you wish to extract.
To copy all columns, in the Copy to box, enter or select the first cell (cell E2 in Table 2) or enter/select the headings where you want to copy the List of Unique Records. Unique records are copied to columns E, F & G.
To copy specified columns, manually enter the ‘exact’ headings of these columns (headings ‘Name’ and ‘Nos.’ in Table 3) in the “Copy to” range and enter or select the same ($E$2:$F$2 in Table 3) in the “Copy to” box. The column order of the headings can be different from that in the “List range”. Unique records are copied to columns E & F.
——————————————————————————————————-
Criteria Range
It is optional to enter the “Criteria range” while doing Advanced Filter. This will enable copy of unique records, subject to the criteria specified.
Criteria range can be in one or multiple columns, and the ‘exact’ heading should be manually entered in a cell below which (in the same column) the criteria for that heading is to be entered.
————————————————————————————————————————-
Criteria is a set of rules and include:
1. Operators like: > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to), <> (less or greater than). (Refer cell K3 in Table 4)
2. Specified Text: specifying text of say “Paul” will copy all records containing Paul, including Paul Spencer, (cell I3 in Table 4) whereas the format =”=Paul” will copy records which contain only Paul.
3. AND (operator): If the criteria is mentioned in one row (in multiple columns) in the Criteria Range, then list of unique records will be copied if all criteria is satisfied (viz. criteria is joined using the AND operator). Refer Table 4, use of AND operator viz. [(Name should be Paul) AND (Country should be USA) AND (Nos. should be >=4)].
4. OR (operator): If the criteria is mentioned on different rows (in multiple columns) in the Criteria Range, then list of unique records will be copied if any of these criteria is satisfied (viz. criteria is joined using the OR operator). Refer Table 5, use of OR operator viz. [(Name should be Paul) OR (Country should be USA) OR (Nos. should be >=4)].
5. AND / OR (operators) Combined: Both AND and OR operators can be combined using multiple rows (viz. criteria is joined using both the AND and OR operators). Refer Table 6, criteria is a combination viz. [(Country should be USA AND the Nos. should be >4) OR (Name should be Eric AND Country should be France)]. The List of Unique Values is copied/extracted per this criteria.
6. The (*) asterik wildcard, which indicates any number of characters (including nil) in that position. Cell I3 in Table 7 mentions Name should contain arl (with any number of characters before or after) which criteria is satisfied by ‘Tim Harlton’ and ‘Harley’ in column E.
7. The (?) question mark wildcard, which indicates any single character in that position. Cell J4 in Table 7 mentions Country should contain one character between ‘U’ and ‘A’, which criteria is satisfied by USA in column F.
8. The (~) tilde wildcard, will search for characters that are used as wildcards. Use (~) tilde before the character to find question marks, asterisks and tildes which are used as text characters. Refer Table 8, cell I3 mentions name criteria ‘Harl*on’ which is satisfied by ‘Harlton’, ‘Harlington’ and ‘Harl*on’ in column E. Cell O3 mentions Name criteria ‘Harl~*on’ which is satisfied by ‘Harl*on’ in column K viz. using ~ recognizes wildcard character asterik (*) as text character asterik (*).
Remove Duplicates or Create a List of Unique Records using Advanced Data Filter
VBA TUTORIAL LOGIN
Hi ,Logout
Cond Statements in VBA Test
Text Strings in VBA
Custom Number Formats
Excel VBA Built-in Events
ActiveX & Form Controls
Application.OnTime Method
MsgBox & InputBox in VBA
- Ebook of Excel Solutions
- Excel Formulas Ebook
- Ebook of Excel Formulas
- Unique List, Sorted in Ascending Order, Appearing in One Column and Not in Other
- Count Rows containing Multiple specified Values
- SUM AND / OR Criteria for Multiple Columns
- Position of First Number in a String
- Extract Unique sub-strings of 1st 5 Characters from each column cell
- Count Maximum Number of Consecutive Occurrences of a Value
- SUMIF with Date Range, Multiple Month Names / Numbers & Year
- Extract Text After Last Occurrence of a Number in a String
- Extract Values which appear ONLY once, from a Column
- Excel Functions
- Excel Text and String Functions: TRIM & CLEAN
- ASCII Code, Extended ASCII characters (8-bit system) and ANSI Code.
- Excel CODE & CHAR Functions, VBA Asc & Chr Functions
- Excel Text and String Functions: LEFT, RIGHT, MID, LEN, FIND, SEARCH, REPLACE, SUBSTITUTE
- CHOOSE Function in Excel
- Excel IF Function and IF Statements
- Excel VLOOKUP Function
- Excel OFFSET Function
- Excel INDIRECT Function
- Excel SUMPRODUCT Function
- Excel Pivot Tables
- Printing a Pivot Table Report – Excel
- Create a Pivot Chart in Excel – graphical display of a Pivot Table
- Excel Pivot Table Design & Layout, Pivot Table Styles
- Excel Pivot Table Report – Sort Data in Row & Column Labels & in Values Area, use Custom Lists
- Excel Pivot Tables: Filter Data, Items, Values & Dates
- Excel Pivot Tables: Insert Calculated Fields & Calculated Items, Create Formulas
- Excel Pivot Table Report – Summary Functions & Custom Calculations, Insert Calculated Fields or Calculated Items
- Excel Pivot Table Report – Group Items, Group Date and Time Values
- Excel Pivot Table Report – Field Settings, Expand or Collapse Fields & Items, Refresh Data, Change Data Source & Show or Hide options
- Excel Pivot Table Report – Clear All, Remove Filters, Select Mutliple Cells or Items, Move a Pivot Table
- Excel Tips
- Case Sensitive Vlookup in Excel; Finding the 1st, 2nd, nth or last occurrence of the Lookup Value
- Vlookup Multiple Values – Return MULTIPLE corresponding values for ONE Lookup Value
- Excel Date and Time Functions and Formulas
- Find ‘Smallest’, ‘Largest’, ‘K-th Smallest’ and ‘K-th Largest’ Numbers in a Range
- Remove Duplicates in a range, using “Remove duplicates” button in Data Tools
- Remove Duplicates or Create a List of Unique Records using Excel Formula
- Remove Duplicates or Create a List of Unique Records using Advanced Data Filter
- Count Number of Unique Values in a Range (with Excel Functions)
- Shade Alternate Rows – Conditional Formatting
- Left Lookup with Vlookup Excel Function
- Excel VBA
- Excel VBA: ActiveX Controls, Form Controls & AutoShapes on a Worksheet
- ChartFormat object – line, fill & effect formatting for chart elements: FillFormat object, LineFormat object, ShadowFormat object, GlowFormat object, SoftEdgeFormat object, ThreeDFormat object
- Child Objects common for many chart elements: Border Object, ChartFillFormat Object, Interior Object, Font Object
- Chart Elements in Excel VBA (Part 2) – Chart Series, Data Labels, Chart Legend
- Chart Elements in Excel VBA (Part 1) – Chart Title, Chart Area, Plot Area, Chart Axes
- Charts in Excel VBA – Add a Chart, the Chart object & the ChartObject object
- Create Charts in Excel VBA: Embedded Charts – Line with Markers; Clustered Stacked Column Chart; Clustered Stacked Bar Chart displaying Variance; Pie chart; XY Scatter chart & Bubble chart
- Excel VBA Debugging Tools in Visual Basic Editor – Breakpoints & Break Mode, Stepping Through Code, Debugging Views
- Excel VBA Errors & Error Handling, On Error & Resume Satements, Exit Statement, Err Object
- Excel VBA Date & Time Functions; Year, Month, Week & Day Functions
- ExcelAnytime Site
- My Account
- Website Use Policy
- Excel VBA Online Tutorial
- Testimonials GlobaliConnect.com
- About ExcelAnytime.com
- Excel VBA Online Tutorial – learn Excel VBA programming & access examples, illustrations, live codes and downloadable files
- Excel and VBA Services
- Sample Data-Articles
- test
- Getting Started
- Typography
- Article Categories Module
- Search Module
- Joomla!
- Authentication
- Articles Category Module
- Statistics Module
- Parameters
- Fruit Shop SiteGrowersJoomla!
- Parameters
- Editors
- Banner Module
- Professionals
- Editors-xtd
- Custom HTML Module
- Sample Sites
- Search
- Feed Display
- The Joomla! Community
- Users
- News Flash
- Menu Module
- Weblinks
- Related Items Module
- Breadcrumbs Module
- News Feeds
- Login Module
- Typography
- Who’s Online
- Most Read Content
- Wrapper Module
- News Flash
- Menu Module
- Related Items Module
- Breadcrumbs Module
- Login Module
- Who’s Online
- Latest Users Module
- Banner Module
- Most Read Content
- News Flash
- Related Items Module
- Archive Module
- Article Categories Module
- Articles Category Module
- Latest Articles Module
- Phyllopteryx
- Spotted Quoll
- Wobbegone
- Cradle Mountain
- Pinnacles
- Blue Mountain Rain Forest
- Ormiston Pound
- Australian Parks
- First Blog Post
- Second Blog Post
- Cradle Mountain
- Pinnacles
- Blue Mountain Rain Forest
- Ormiston Pound
- Koala
- Phyllopteryx
- Spotted Quoll
- Wobbegone
- VBATutorial - Cond Stmnts