Excel Formulas

Basketball Team: Player Statistics

illustration of character

"Hey! There you are! So, I've been keeping track of my daughter's basketball team with a spreadsheet…

…and I want to help the coach calculate some different stats. I've recorded how many points each player scored during each game. Could you help me figure out who's scored the most points overall? "

Our spreadsheet

Once you've downloaded our spreadsheet , open the file in Excel or another spreadsheet application. You may want to take a moment to see how the data is organized. As you can see, there is a different row for each of the players and different columns for the number of points they scored in each game.

screenshot of excel 2013

What are we trying to figure out?

Before we write our formulas, let's think about the problem we're trying to solve. Our friend wants to find out which player scored the most points total over these five games .

Writing the formula

Now that we know what function to use, we'll start by calculating the total points scored for Tonya in row 2.

screenshot of excel 2013

Before we write the formula, we'll need to decide what cell range to include in the argument.

Now we're ready to write our formula. Go to the next page to see our formula in action!

Writing the formula

Now that we know what function and cell range to use, we're ready to enter our formula, =SUM(B2:F2) , in cell G2:

screenshot of excel 2013

It looks like Tonya scored 51 points total. Next, we'll drag the fill handle down to add this formula for the other players.

screenshot of excel 2013

There we go! It looks like Bella scored the most points overall. However, we could take it a bit further to make our data really stand out. For example, we could:

  • Apply conditional formatting to highlight the highest values
  • Create a chart to visually compare the results
  • Sort the results

There's really no right answer in this case—the most important thing is to make your data clear and easier to understand. In this example, it might be especially helpful to sort the data by the total points scored from highest to lowest —this will show who the top scorer is and make it easier to rank the other players on the team. Sorting works a bit differently, depending on which spreadsheet program you're using:

  • For Excel 2007-2019 : Select column G, then click the Descending Sort (Z-A) command on the Data tab.
    screenshot of excel 2013
  • For Excel 2003 and earlier : Select column G, then click Data > Sort > Descending .
  • For Google Sheets : Select column G, then click Data > Sort sheet by column G > Descending .
screenshot of excel 2013

OK, now it's really easy to read our results! We can tell at a glance that Bella is the highest scorer, and we can also rank the other players.

illustration of character

"Wow! Thank you!

You know, I'd love to calculate some other statistics so I can tell each of the players about something they've accomplished. Could you help me figure out how many points each of the players scored in their best-scoring game ?"

Highest-scoring game for each player

Now we'll need to answer this question: How many points did each of the players score in their best-scoring game?

Now that we know what function to use, we'll start by finding the highest-scoring game for Bella in row 2.

screenshot of excel 2013

Before we write our formula, we'll need to decide what cell range to include in the argument.

Go to the next page to see our formula in action!

Highest-scoring game

Now that we know what function and cell range to use, we'll type our formula, =MAX(B2:F2) , in cell H2 and then use the fill handle to add it to the other cells in column H.

screenshot of excel 2013

Now we can easily see how many points each of the players scored in their highest-scoring game!

illustration of character

"Say, this is just great!

It's interesting to see that Hope had the highest-scoring game, even though she didn't score the most points overall. And every player scored at least 10 points in one of their games, which is something they can all be proud of! I can't wait to show this to the team. Thanks again!"