Quick Excel Tips

  • Display formulas in all cells: Press/hold [Ctrl][~]. Toggles the mode on and off.
  • Generate a historgram (frequency distribution) using a countIf formula. link
  • Bubble charts, an enhancement to a scatter plot (xy chart) which shows a 3rd dimension in a bubble which is sized based on the 3rd variable. An additional enhancement is to replace the bubble with an image.

Data Entry

Data entry in an Excel spreadsheet can be tedious. Use the power of restricted access to speed up data entry. The idea is that by restricting access to only specific cells (which are for the data), data entry can be quickly completed because the Enter key also serves a dual role by moving the cursor to the next available cell. The "move to the next cell" is down and then to the top of the next column (the first cell).

  ... more ...

Viewing 2 worksheets side by side

The process to setup viewing 2 worksheets of an Excel workbook at the same time is very simple. Use the following ribbon menu commands:

  ... more ...

Statistics Functions for Grading

Excel functions can be quite useful for analyzing statistical properties of exams and student grades for a semester.

  ... more ...

Excel References Page

Histogram using a Pivot Table / Chart

Of course it is possible to create a histogram with the Data Analysis Toolkit - but this method provides a different type of control to the process and end result.

  1. Add a column to the spreadsheet titled "Interval" (or Bin or Range or ...)
  2. Decide on the interval that you want, i.e. 10's (10, 20, 30) or 5's (10, 15, 20)
    1. 10's are easy - create a formula =TRUNC(ref to # data,-1), result is a number rounded to 10's
    2. 5's require another step. Figure out the interval reciprocal ... by dividing 1 by the interval. In this case 1/5 = .2 The next step is similar to that for the 10's except that inside the function we multiple by the interval reciprocal and outside the function we divide by the reciprocal. =TRUNC(ref to # data * interval reciprocal,0) / interval reciprocal
    3. I used the TRUNC function as I intend to use this for a grade distribution. However, the ROUND function may suit another purpose. And in the beauty of mathematics - you could use other functions such as INT to extract the integer value.
  3. Create a Pivot Table AND Pivot Chart Report from the data.
    1. The data range must include the column "Interval" and other relevant data that you may want to see in a drill down Pivot Table (not part of the distribution - but useful for analysis later).
    2. The Layout for the pivot table is pretty simple:
      1. drag the "Interval" column onto the Row Fields area
      2. drag a field (any!) with numeric data onto the data area ... with the default of Count.
    3. you can clean up the final report if you want - but you now have a decent chart and a pivot table that can be used for further analysis if desired

Attach:HistogramPivotChart.png Δ

Histogram with CountIf

Another method of creating a Histogram with a high degree of control is to use the COUNTIF function on calculated intervals. The example shown, allows input of interval size.

  1. create an IntervalSize named cell and input your desired interval (all of the formulas assume that named ranges are created). 5 is the interval used in AH110
  2. Create a column for the Interval calculation (starting at AH113 in this case)
    1. Formula =IntervalSize*INT(AG113/IntervalSize) in English the value in AG113 that you want a histogram of is divided by the Interval Size, using only the integer portion which is multiple by the Interval Size to calculate the interval that the Total falls within. This same formula is used down column AH, which is named HistData
    2. Set up the Histogram in columns AJ and AK
      1. Calculate the Interval starting value =MIN(HistData), based on the minimum required by the data.
      2. Interval formula for AJ114 and the remaining intervals (in this case to 100) =AJ113+IntervalSize
      3. Calculate the frequency of data points within each of the intervals for AK113=COUNTIF(HistData,AJ113)
      4. Finished - go ahead and create a simple bar chart as well

Extracting Unique Values from a sorted list

  1. The old/slow method was to "Sort the list", delete the rows containing the duplicate entries, and then use the resulting "unique" list. Now ....
  2. Use an array formula to extract only the unique values.
    1. =IF(COUNTIF($A$1:A1,A1)=1,A1,"") Put this formula in the spreadsheet on the first row of the list.
    2. As written, your list starts in cell A1 -- if different, change ALL references from A1 to your row/column start.
    3. Use "Fill Down" (grab the lower right corner of the cell containing the formula) to copy the formula down the column. Obviously, the relative row references will change in the formula to give you each item only once.
  3. Copy the values from your formula column to a new column (paste values), sort it to eliminate the blank lines and ... you are done! (for another elegant solution that is also array driven check out

Graphics -- Using Excel Functions for Simple Charts

Creative blog posting with examples of in-cell graphics driven by functions, particularly REPT, which returns a repeated text value a specified number of times.

Another creative Excel resource site

Vertex42 has numerous Excel templates which are very creative. The one that caught my attention today was the timeline using an XY Scatter chart. The result is beautiful! 2008-09-25

And yet another source of timeline info: Microsoft. Several examples are included - some requiring graphics, others using spreadsheet formatting. 2008-09-25

And another interesting jumble of Excel tips at

Tags: Excel - tips

Other Excel Pages: Excel References Page, Excel Statistics For Grading, Excel Tips And Tricks, Excel-Data Entry Tip


We overestimate what we can accomplish in a day, but underestimate what we can accomplish in a year.

Chris Guilleabeau

Page Views: 3492 | << | Trail Index | >> | HomeLinks