May 23rd, 2006
One of the great things about Excel is that it allows you store multiple rows and columns of data with many different relationships. Take your classic customer information database as an example. You can store all of your customer’s information and the relationships between different pieces of this information (such as all the customers who ship to a certain city, order a certain item, etc.). However, even though the relationships are stored, it may not be readily apparent what they are. For example, say you want to see all of the customers who are based in Denver. If your data has more than a few rows, it could take a lot of time to do this manually. This is obviously not practical. What’s the solution? The answer is simple: The AutoFilter.
The AutoFilter option is quick and simple to use. It allows you to sort through your data by applying drop-down lists to your columns. These drop-down lists are populated with the unique values for that column. Let’s take a look at the following example:

*Note: If this was a real life example, filtering would be overkill as the data set is so small.
Using the above data, how would we filter on the City field to get only the companies that are based in Denver? Follow the steps below:
- Select the column that contains the City field.
- Click on the Data menu.
- Select Filter.
- Select AutoFilter.
The City field should now have a drop-down arrow on the right hand side of the cell. If you click on this arrow, the following should be displayed:

This drop-down list will be populated with all of the unique values from the selected column. As shown in the above screenshot, the two values displayed are “Denver” and “Miami”, even though there are three rows with data. This is because two of these rows contain “Denver” in the City field. These unique values are the values that you can filter on.
Finally, to show only those companies based in Denver, click on “Denver” in the drop-down list. The following is the result:

As you can see, only the rows that have a value of “Denver” in the City field are now displayed. To undo this, select the All option from the drop down list. All of the rows will now be displayed.
To remove the filter, just click off the AutoFilter option from the Filter menu (basically the same way you turn the AutoFilter on as described above). This will also undo any filter selections made.
You can also use this same technique to filter on multiple rows All you have to do is select the columns you want to filter on when applying the AutoFilter. Using our example, if I wanted to filter on both the City field and the Phone Number field, I would just select both columns before turning on the AutoFilter.
*Note: In the drop-down, there are also options for “Top 10″ and “Custom”. These are a little more advanced than your basic filter, play around with them to see what works for you. I also plan on writing another article on using these options, as this article is just for the basic use of the AutoFilter.
The AutoFilter is a great option because it is so simple to use, and it allows you to sort through large amounts of data very quickly. I use this feature often, especially when I need to get results fast on a large set of Excel data.
Tags: autofilter,
cell,
column,
data,
excel,
filter,
how-to,
Microsoft Excel,
microsoft-office
Posted in Microsoft Excel, Microsoft Office Help | 2 Comments »
May 9th, 2006
This is the second part in my two part Access Vs. Excel series, where I’m basically trying to differentiate when you would want to use one of these tools over the other for a project. This question comes about because of the many similarities that these two tools share. You can see the first article here: Access: Vs. Excel: When to Use Access.
Here are three example cases where I think you would want to use Excel over Access:
- You need to create a one-time, formatted report - If you’re creating a one-time report based on a set of data, then Excel is really the way to go. On the average, setting up a new report model in Access takes longer than creating a new report model in Excel. This is because in Access, you have to setup the database and other backend structures, while in Excel you can pretty much start plugging away from the get-go. If it’s only a one or two time report, you don’t need to take the time to setup a whole database for it. Plug the data into Excel, throw a format at it, and you should be good to go.
- The relationships/fields won’t change - This basically means that once you put the report together, the structure of your data won’t change, and neither will the relationships. For example, say you are creating a spreadsheet that shows all of your customers and key parts of their company info. This is pulled from a hidden spreadsheet that contains all the info from each company. This is fine, however, if you want to add new fields to the company info, this could cause cascading cell reference problems. Also, if you have some complex relationships between data fields, it’s much harder to check to make sure that they are still intact and correct. As long as your backend is pretty set (relationships and fields), Excel can be a good tool because of the shorter setup time involved.
- The report format won’t change - Don’t get me wrong, I think that Excel does have some flexibility when it comes to changing an existing spreadsheet. However, once you get past a certain point of complexity, it gets very difficult to make changes that don’t break other parts of the spreadsheet. For example, if you have a bunch of different formulas with cascading dependencies, changing just one requires you to check in multiple different places to make sure that nothing broke. I prefer Access for these kinds of reports. However, if you don’t have to change your format too drastically, I recommend Excel.
It’s critical to understand that both Access and Excel have their uses. Sometimes these overlap, most of the time you can clearly see which one would be better to use. It may not seem like it now, but as you get more familiar with both tools, you’ll see which one is better to use in certain situations. Also, there are always exceptions to the rules. Maybe your client doesn’t have Access, maybe they don’t like to use Excel. You might be forced to use one, all you can do in that situation is roll with the punches.
Tags: access,
access-vs.-excel,
data,
database,
excel,
Microsoft Access,
Microsoft Excel,
microsoft-office,
report
Posted in Microsoft Access, Microsoft Excel, Microsoft Office Help | 9 Comments »
May 4th, 2006
As they say, better late than never. See below for the updates:
Tags: average,
excel,
Microsoft Excel,
microsoft-office,
work
Posted in Site Updates | No Comments »
May 4th, 2006
Another extremely useful Excel function is the AVERAGE function. As I’m sure you can guess, this function will return the average of the values in the cells that you pass into it.
Here is the example I’ll use:

Using this example, here’s the usage for this function:
- AVERAGE(A1,A2) - This will return the average of the values in cells A1 and A2. The returned value would be 13.5.
- AVERAGE(A1,A2,5) - This will return the average of the values in cells A1 and A2, and the number “5″. The returned value would be approximately 10.7.
- AVERAGE(A1:A4) - This will return the average of the values in the range of cells between and including A1 and A4. The returned value would be 12. You’ll see that there is no value in cell A3. That’s ok, because the AVERAGE function will ignore this and just calculate the average based on the populated cells. This is also true any time that a cell in a given range would have a non-numeric value, such as text.
- AVERAGE(A1:A4,5) - This will return the average of the values in the range of cells between and including A1 and A4, and the number “5″. The returned value would be 10.25.
I find the AVERAGE function is nice to use when you don’t know exactly how many cells in a range you’ll want to average (as in the case of possible empty cells, etc.). It’s also convenient when you don’t want to type long formulas with a ton of cell references, and then manually figure out the denominator. I use it on a pretty regular basis, and it saves me a good amount of time and cuts down on the mistakes that manual calculations can cause.
Tags: average,
average-function,
cells,
excel,
formulas,
function,
Microsoft Excel,
microsoft-office
Posted in Microsoft Excel, Microsoft Office Help | 1 Comment »
April 27th, 2006
To many people, there is some confusion as to what the difference is between Microsoft Access and Microsoft Excel. To try and clear some of the confusion up, I’m starting to write a series on Access Vs. Excel. In this part, I will be examining example cases where it’s better to use Access rather than Excel.
Here are the three example cases:
- You need to store complex dynamic data and report on it - In this case, you have data that is going to change over time and it’s not straightforward (think many interrelationships). Not only that, but you will need to be able to produce reports on this data even after it changes. While this can be done in Excel, it is usually easier to do this in Access. One reason for this is because it is generally easier to dynamically alter/add/subtract data in Access once you have the database setup. Consequently, because your reports in Access will be based off of database queries, you shouldn’t even have to update the reports to get the new data, you should just have to run the queries. In Excel, you will spend hours deleting rows, adding rows, reformatting your report, and all the other fun tasks that follow, and you’ll have to do this each time you change the data.
- You will need to be able to create custom reports on the fly - This is another huge advantage for Access. Once again, you can design new queries easily in order to create a custom report. All you then have to do is run the queries to get your new report. In Excel, this would be a much more arduous process, as you would probably have to create a new spreadsheet, link the cells, transfer the data, format it, etc.
- You need to store your data for a period of time - If you need to store your data for the long run, Access is the hands down choice. It is much easier to take this data later and put it into other databases or manipulate it in your own database rather than digging through an excel workbook trying to cut and paste what you need, or change it.
Even though Access is the better choice in the example cases above, there are times when Excel is the better option. The next article in this series will deal with these example cases.
Tags: access,
database,
excel,
Microsoft Access,
Microsoft Excel,
query,
report,
reporting,
storage,
table
Posted in Microsoft Access, Microsoft Excel, Microsoft Office Help | 20 Comments »
April 26th, 2006
Updates below:
- Guys, see today’s Tip of the Day for a helpful tip on how long to make your tie.
- The latest article on Microsoft Excel deals with an underused but very helpful function, COUNTA.
Tags: counta,
function,
Microsoft Excel,
tie
Posted in Site Updates | No Comments »
April 26th, 2006
While this is a basic Excel function, I haven’t come across a lot of people who know about it. It’s a shame, because it’s very useful. Basically, the COUNTA function will return the number of non-blank cells in a list or array that you pass into it.
Let’s use the following sample data:

Using the above data, here’s the usage for this function:
- COUNTA(A1,A2) - This will return the count of the non-blank cells when looking at A1 and A2. In the above example, this would return two.
- COUNTA(A1:A3) - This will return the count of all the non-blank cells between and including A1 and A3. In the above example, this would return two.
- COUNTA(A1:A5,”Seven”) - This will return the count of all the non-blank cells between and including A1 and A5, and then will add one to this count for the value “Seven”. In the above example, this would return five. You can also use this syntax with specific cells instead of a range, as in the case of COUNTA(A1,A5,”Seven”).
- COUNTA(A1:A3,2) - This is very similar to the example usage above. It will return the count of all the non-blank cells between and including A1 and A3, and then will add one to this count for the value “2″. In the above example, this would return three. You can also use this syntax with specific cells instead of a range, as in the case of COUNTA(A1,A2,2).
I’ve found COUNTA to be a very useful function, especially when you have a lot of data where not all the cells are necessarily populated, and you only care about how many populated ones there are. For example, if you are calculating the average score for each question on a survey, but only want to divide by the number of surveys where this question was answered, then you would use this function to get the number to divide by.
Tags: cell,
count,
counta,
counta-function,
excel,
function,
Microsoft Excel,
non-blank-cells,
spreadsheet
Posted in Microsoft Excel, Microsoft Office Help | No Comments »
April 8th, 2006
This is the second article in what has become my “Basic Excel Functions” series, where I provide a quick how-to on how to use some simple but useful functions in Excel.
For this article, I’ll be taking a look at the MIN and MAX functions. They can be defined as the following:
- MIN - returns the minimum value in the range of cells you specify.
- MAX - returns the maximum value in the range of cells you specify.
Usage: MIN
Here are a couple of ways to use this function:
- MIN(cell1,cell2,…) - This will return the minimum value between cell1, cell2, and any other cell you specify.
- MIN(cell1:cell4) - This will return the minimum value of the cells between cell1 and cell4, including cell1 and cell4.
- MIN(cell1,cell2,0), MIN(cell1:cell4,0) - This works like the two examples above, however it also includes the number 0 as a value for comparison as well.
Usage: MAX
The usage for this function is pretty much the same as the MIN function, so I won’t go into details for each usage. Here’s a quick usage list for this function:
- MAX(cell1,cell2,..)
- MAX(cell1:cell4)
- MAX(cell1,cell2,15), MAX(cell1:cell4,15)
That’s it for these functions, it really is just that simple to use them. Here’s a link to the previous article in this series on using the SUM function.
Tags: cell,
excel,
function,
max,
max-function,
Microsoft Excel,
microsoft-office,
min,
min-function
Posted in Microsoft Excel, Microsoft Office Help | 5 Comments »