Tuesday, 13 December 2016

SAMPLE TABLE FOR FILTER PRACTICAL

DATE OD EST NAME SALES QUAT COUNTRY
01/01/2005 JACK 4500 QU1 UK
01/01/2006 ROHAN 6500 QU2 USA
01/01/2015 ALI 8500 QU3 UK
01/01/2005 MESHRAM 10500 QU1 USA
01/01/2010 VINITA 12500 QU4 UK
01/01/2005 ANU 14500 QU1 USA
01/01/2006 CACADY 16500 QU2 UK
01/01/2015 AMU 18500 QU3 USA
01/01/2005 SHWETA 20500 QU1 UK
01/01/2010 NIKHIL 22500 QU4 USA
01/01/2005 LATU 24500 QU1 UK
01/01/2006 SIDDHI 26500 QU2 USA
01/01/2015 PRATHAMESH 28500 QU3 UK
01/01/2005 BINA 30500 QU1 USA

Monday, 12 December 2016

Filter


Filter

Filter your Excel data if you only want to display records that meet certain criteria.
1. Click any single cell inside a data set.
2. On the Data tab, click Filter.
Excel Filter Example
Arrows in the column headers appear.
Filter Arrrows
3. Click the arrow next to Country.
4. Click on Select All to clear all the check boxes, and click the check box next to USA.
Click USA
5. Click OK.
Result. Excel only displays the sales in the USA.
Filter Result
6. Click the arrow next to Quarter.
7. Click on Select All to clear all the check boxes, and click the check box next to Qtr 4.
Click Qtr 4
8. Click OK.
Result. Excel only displays the sales in the USA in Qtr 4.
Filter Result
9. To remove the filter, on the Data tab, click Clear. To remove the filter and the arrows, click Filter.
Clear Filter
Number and Text Filters

This example teaches you how to apply a number filter and a text filter to only display records that meet certain criteria.
1. Click any single cell inside a data set.
2. On the Data tab, click Filter.
Click Filter
Arrows in the column headers appear.
Filter Arrrows
Number Filter
To apply a number filter, execute the following steps.
3. Click the arrow next to Sales.
4. Click Number Filters (this option is available because the Sales column contains numeric data) and select Greater Than from the list.
Number Filters
5. Enter 10,000 and click OK.
Custom Autofilter
Result. Excel only displays the records where Sales is greater than $10,000.
Number Filter Result
Note: you can also display records equal to a value, less than a value, between two values, the top x records, records that are above average, etc. The sky is the limit!
Text Filter
To apply a text filter, execute the following steps.
3. Click the arrow next to Last Name.
4. Click Text Filters (this option is available because the Last Name column contains text data) and select Equals from the list.
Text Filters
5. Enter ?m* and click OK.
Custom Autofilter
Note: A question mark (?) matches exactly one character. An asterisk (*) matches a series of zero or more characters.
Result. Excel only displays the records where the second character of Last Name equals m.
Text Filter Result

Date Filters

This example teaches you how to apply a date filter to only display records that meet certain criteria.
1. Click any single cell inside a data set.
2. On the Data tab, click Filter.
Click Filter
Arrows in the column headers appear.
Filter Arrrows
3. Click the arrow next to Date.
4. Click on Select All to clear all the check boxes, click the + sign next to 2012, and click the check box next to January.
Click 2012, January
5. Click OK.
Result. Excel only displays the sales in 2012, in January.
Filter Result
6. Click the arrow next to Date.
7. Click on Select All to select all the check boxes.
8. Click Date Filters (this option is available because the Date column contains dates) and select Last Month from the list.
Date Filters
Result. Excel only displays the sales of last month.
Last Month
Note: this date filter and many other date filters depend on today's date.

Advanced Filter

This example teaches you how to apply an advanced filter in Excel to only display records that meet complex criteria.
When you use the Advanced Filter, you need to enter the criteria on the worksheet. Create a Criteria range (blue border below for illustration only) above your data set. Use the same column headers. Be sure there's at least one blank row between your Criteria range and data set.
And Criteria
To display the sales in the USA and in Qtr 4, execute the following steps.
1. Enter the criteria shown below on the worksheet.
Advanced Filter Example in Excel
2. Click any single cell inside the data set.
3. On the Data tab, in the Sort & Filter group, click Advanced.
Click Advanced
4. Click in the Criteria range box and select the range A1:D2 (blue).
5. Click OK.
And Criteria
Notice the options to copy your filtered data set to another location and display unique records only (if your data set contains duplicates).
Result.
And Criteria Result
No rocket science so far. We can achieve the same result with the normal filter. We need the Advanced Filter for Or criteria.
Or Criteria
To display the sales in the USA in Qtr 4 or in the UK in Qtr 1, execute the following steps.
6. Enter the criteria shown below on the worksheet.
7. On the Data tab, click Advanced, and adjust the Criteria range to range A1:D3 (blue).
8. Click OK.
Or Criteria
Result.
Or Criteria Result
Formula as Criteria
To display the sales in the USA in Qtr 4 greater than $10.000 or in the UK in Qtr 1, execute the following steps.
9. Enter the criteria (+formula) shown below on the worksheet.
10. On the Data tab, click Advanced, and adjust the Criteria range to range A1:E3 (blue).
11. Click OK.
Formula as Criteria
Result.
Formula as Criteria Result
Note: always place a formula in a new column. Do not use a column label or use a column label that is not in your data set. Create a relative reference to the first cell in the column (B6). The formula must evaluate to TRUE or FALSE.
Data Form

The data form in Excel allows you to add, edit and delete records (rows) and display only those records that meet certain criteria. Especially when you have wide rows and you want to avoid repeated scrolling to the right and left, the data form can be useful.
1. Open the downloadable Excel file.
2. Click the Form command on the Quick Access Toolbar.
Data Form Example
3. Use the Find Prev and Find Next buttons to easily switch from one record (row) to another.
Find Next
Note: use the New or Delete button to add or delete records. Once you start editing a record, you can use the Restore button to undo any changes you make.
4. To display only those records that meet certain criteria, click the Criteria button.
5. Enter the criteria and click the Form button.
Enter Criteria
6. Now, when you use the Find Prev and Find Next buttons, you will only see those records that meet these criteria. In our example, only record 13.
Filtered Record
Note: to edit the criteria, click the Criteria button again. To close the data form, click the Close button.
Remove Duplicates

This example teaches you how to remove duplicates in Excel. Go here to only find duplicates.
1. Click any single cell inside the data set.
2. On the Data tab, click Remove Duplicates.
Click Remove Duplicates
The following dialog box appears.
3. Leave all check boxes checked and click OK.
Remove Duplicates Dialog Box
Result. Excel removes all identical rows (blue) except for the first identical row found (yellow).
Remove Duplicates Example Remove Duplicates Result
To remove rows with the same values in certain columns, execute the following steps.
4. For example, remove rows with the same Last Name and Country.
5. Check Last Name and Country and click OK.
Select Columns
Result. Excel removes all rows with the same Last Name and Country (blue) except for the first instances found (yellow).
Remove Duplicates Example Remove Duplicates Result

Outlining Data

Outlining data makes your data easier to view. In this example we will total rows of related data and collapse a group of columns.
1. First, sort the data on the Company column.
Sort on One Column
2. On the data tab, click Subtotal.
Click Subtotal
3. Select the Company column, the column we use to outline our worksheet.
4. Use the Count function.
5. Check the Company check box.
6. Click OK.
Subtotal Dialog Box
Result:
Collapse Group of Cells
7. To collapse a group of cells, click a minus sign. You can use the numbers to collapse or expand groups by level. For example, click the 2 to only show the subtotals.
Subtotals
Note: click the 1 to only show the Grand Count, click the 3 to show everything.
To collapse a group of columns, execute the following steps.
8. For example, select column A and B.
9. On the data tab, click Group.
Click Group
10. Click the minus sign (it will change to a plus sign).
Result:
Collapsed Group of Columns
11. To remove the outline, click any cell inside the data set and on the data tab, click Subtotal, Remove all.
Remove All


Sort

Sort

One Column | Multiple Columns
You can sort your Excel data on one column or multiple columns. You can sort in ascending or descending order.
One Column
To sort on one column, execute the following steps.
1. Click any cell in the column you want to sort.
Sort on One Column Example
2. To sort in ascending order, on the Data tab, click AZ.
Sort in Ascending Order
Result:
Sort on one Column Result
Note: to sort in descending order, click ZA.
Multiple Columns
To sort on multiple columns, execute the following steps.
1. On the Data tab, click Sort.
Click Sort
The Sort dialog box appears.
2. Select Last Name from the 'Sort by' drop-down list.
Sort by
3. Click on Add Level.
4. Select Sales from the 'Then by' drop-down list.
Then by
5. Click OK.
Result. Records are sorted by Last Name first and Sales second.
Sort On Multiple Columns Result

Sort by Color

In Excel 2007 or later, it's possible to sort data by color.
Sort by Color in Excel
To sort data by color, execute the following steps.
1. Click any single cell inside a data set.
2. On the Data tab, click Sort.
Click Sort
The Sort dialog box appears.
3. Sort by Last Name (or any other column), sort on Cell Color (you can also sort on Font Color and Cell Icon), and select the green color for the first level.
First Level
4. Click 'Copy Level' two times and select the other colors.
5. Click OK.
Second and Third Level
Result.
Sort by Color Result
Reverse List

This article teaches you how to reverse a list in Excel. For example, we want to reverse the list in column A below.
1. Enter the value 1 into cell B1 and the value 2 into cell B2.
2. Select the range B1:B2, click the lower right corner of this range, and drag it down to cell B8.

Add List
3. Click any number in the list in column B.
4. On the Data tab, click ZA.
Result. Not only the list in column B, but also the list in column A has been reversed.
Reversed List in Excel
Randomize List

This article teaches you how to randomize (shuffle) a list in Excel. For example, we want to randomize the list in column A below.
1. Select cell B1 and insert the RAND() function.
2. Click on the lower right corner of cell B1 and drag it down to cell B8.
Add Random Numbers
3. Click any number in the list in column B.
4. On the Data tab, click ZA.
Result. A random list in column A (sorted on the random numbers above).