Chapter 7. Finding Functions: Mine Excel’s features on your own

image with no caption

Excel has more functions than you will ever use.

Over many years and many versions, the program has accumulated specialized functions that are terribly important to the small group of people who use them. That’s not a problem for you. But what is a problem for you is the group of functions that you don’t know but that are useful in your work. Which functions are we talking about? Only you can know for sure, and you’re about to learn some tips and techniques to finding quickly the formulas you need to get your work done efficiently.

You’re in charge of the Dataville Convention Center parking program. They do a big entertainment business in Dataville, but they have a problem. If they are expecting more than 1,000 ticket buyers to attend an event, they need to rent more parking spaces.

In the upcoming month, are they expecting more than 1,000 attendees for any of their events? Your challenge is to find out using their ticket sales data, and you’ll get free box seats to your favorite shows if you can set up a workflow.

image with no caption
image with no caption

Finding and learning new functions in Excel is one of the core skills you need to develop. Excel has hundreds of functions, and it would take forever for you to read through all of them every time you wanted to learn a new formula.

image with no caption

To get help on any of Excel’s scads and scads of formulas, start by clicking the help button on the top right of the Excel screen.

image with no caption

It used to be that you’d never look at the documentation for Excel or any other computer program. No matter whether it was on the printed page or on computer help screens, it was hard to read and poorly written.

Those days are over for Excel. The current generation of help documentation is written to be understood by real, live human beings like you. In fact, it’s so useful that you should dip into the docs occasionally just to explore the new features, not just for when you’re looking for a specific formula.

image with no caption

Each record represents a single ticket sold for a single event on a single date. Your task is to take this ticket data and see which days will have more than 1,000 visitors to the Dataville Convention Center.

This data has only weekend ticket sales, because attendance never comes close to exceeding 1,000 on weekdays. What you need to do is create a list of weekend days for the remainder of the month and then count the number of tickets sold for each of those days.

Here’s the help window for the DATE function. The documentation for individual functions is really interesting and useful.

Not only can you use the docs to find out what functions do, but you can also use them to learn about functions’ eccentricities—all the different types of arguments they accept and all the sorts of values they return, including explanations for why different errors might result from the same formula.

image with no caption

From: Dataville Convention Ctr. COO

To: Head First

Subject:

Dear Head First,

I hope your work is coming along well.

Remember, what we’re after is the dates for which we should expect more than 1,000 people. Can you write some sort of formula to tell me which dates fit this criteria?

—COO

Better get your spreadsheet ready for this last figure and head back to the function reference to find the formula to do this.

image with no caption

Now you’re back in the function reference, looking for something that can count tickets for each date. Where to start? It was obvious when you had to build those dates: you just looked in the date category. But there’s no “count ticket sales” category.

image with no caption

Here’s the trick.

When searching for a function, pick a category first by thinking about your problem, and then inspect individual formulas in that category. That way, you’ll avoid scanning hundreds of irrelevant formulas.

The COUNT family of formulas is a really versatile way to analyze repetitive elements in a list. The formulas enable you to get the size of a list, count the numbers in a list, count the blank cells in a list, and count based on multiple criteria.

You’ll almost certainly have use for one or more of these formulas in the future, and when you do, you can just head over to the help docs and use your understanding of them to figure out which formula matches your problem.

image with no caption

From: Dataville Convention Ctr. COO

To: Head First

Subject:

Dear Head First,

Good, but...

Any chance you could show me only the list of dates that expect more than 1,000 people?

—COO

Thanks to your diligent efforts, the convention center knows when it’s going to need to order more parking. You’ve saved the convention center money and made spectators happy. Now to enjoy your reward....

image with no caption