




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































Recall quickly the COUNT and IF commands.
COUNT
The COUNT function counts the number of cells that contain numbers and counts numbers within the
list of arguments.
The syntax is COUNT( value1, value2, …)
Continuing on with our SUM formula from above, let’s not only add up the values of the range A1:A4,
but let’s count how many numbers are included within the range, i.e. how many cells within the range
has a value in it.
The formula is =COUNT(A1:A4). The English translation is count how many cells within the range has a value in it and display the result.
Notice that the range is exactly the same as our SUM, A1:A4, which includes four rows. The value returned in cell A7 is three, because only three of the four rows have values in them.
If you are trying to count text, use the COUNTA formula which counts the non-blank cells.
IF The formula makes a statement/question, if the answer is true then one response is obtained. If the answer if false, then another answer is obtained.
The syntax is =IF(logical_test,value_if_true,value_if_false)
Continuing on with our SUM formula from above, let’s add some verbage to emphasize whether the result is greater or less than twenty.
The formula is =if(A5<20,”Amount is less than twenty”,”Amount is more than twenty”). The English translation is if the value found in A5 is less than twenty THEN display the comment ‘Amount is less than twenty’ ELSE display the comment ‘Amount is more than twenty’.
The COUNT function counts the number of cells in a range, that meets single criteria.
The secret to filtering is not to have a space between your titles and your data. In fact, Excel is so smart, that you do not even have your data selected, but may if you prefer.
Select your data and left click on the filter icon in the Sort & Filter Group.
Notice that a chevron appears to the left of each header.
By selecting the chevron to the left of Vendor Name, a dialog box appears displaying all unique text filters found in the range as well as other common sort icons.
If you only want a particular filter, deselect the (Select All) box and check the filter you desire.
In the below screen shot, Kendell Kilborn is selected. Notice the hidden rows to the left. Those represent data lines for mileage paid to individuals other than Kendell. No data is lost, it is just currently hidden.
Also note that the icon to the left of the vendor name now displays the filter icon. This so at a glance the user may see that the data range has been filtered.
The results appear below.
1 2
4
5
Now that the data has been filtered it would be great to save it so you can manipulate it further. To do so is a rather straight forward process. Basically you will go to where you want to save it, Sheet2 in our example, and go through the filtering process that we did above with just a couple of twists.
Steps For Advanced Filtering
On the destination worksheet (Sheet2 for example) place the cursor in a blank cell.
Select the Advanced icon with your left mouse button. Under Action, select copy to another location
The appears. Navigate to the appropriate worksheet and select the data range not forgeting the headers, and click on the little icon at the bottom right.
1
2
3
4
An example of the formula is: =SUBTOTAL(9,E12:F19) The English translation is using the ninth subtotal function, which is SUM, add up all of the data within the range that is selected by the filter. For comparison, included is the SUM function for the same range which brought back the total for all of the data cells, hidden or displayed.
The foundation of what is a PivotTable report is explained as follows:
As long as you can connect to the data, whether it be locally in the same workbook or remotely in other locations, you can built PivotTable reports that rearrange the raw data and change it into meaningful information
A pivot table is an interactive way to quickly summarize large amounts of data; to analyze numerical data in detail and to answer unanticipated questions. They are especially designed for:
Thou Shalts in PivotTable Land
1 Headers should be in columns, not rows
2 No blank rows between the headers and the data
Best to have the pivot table on a separate worksheet so it does not accidently clobber the data
4 Best to have simple data, rows and columns of data.
5 Best to format your area as a table, especially when you will be adding data to it. The table is automatically expanded when data is added to the next row. Now when you launch create a pivot table the range will be the table name, and not the cell addresses
Pivot Tables work best when you have simple data in rows and columns.
PivotTable Geography
The pivot table will be located here. The size will adjust as it needs to automatically.
Column Labels:
Adding row labels, adding column data, changing formulas in columns, changing headers & number formats In order to best illustrate how to design pivot tables, we will begin with the goal report, depicted below, and then step through each design component.
This table will represent by department, the number of employees per department and their average salary. We will also change a column header and the number font for the salary column.
1 2 3 4 5 6
Figure 1: Building a PivotTable- Part One
Adding a COUNT and SUM Columns
2
1
2
1
1
2
Changing a Formula
Left click on the Sum of Salary field
The value dialog box will appear. Using a left click on your mouse, select the Value Field Settings
The value field settings dialog box appears. On the summarized by tab, select the average calculation from the drop down box
1
2
3
1
2
3