You can use your favorite social network to register or link an existing account:
Or use your email address to register without a social network:
Sign in with these social networks:
Or enter your username and password
Forgot your password?
Yes, please link my existing account with for quick, secure access.
No, I would like to create a new account with my profile information.
In this blog post I’ll walk through creating sparklines in Excel 2010 using a sample table from the book store demo file:
In the table we have the sales for the month of June: a column for total sales for the month, multiple columns for each day’s sales, and rows that break out different book categories. Sparklines will really be able to enhance the table and add to the understanding of the numbers by plotting out the month’s sales day by day in a single column, in line with the data.
To get started, we’ll insert a column where we want to place the sparklines and go to the insert tab on the ribbon:
For this first release of sparklines in Excel, we’ve added support to create line, column, and win/loss sparklines. Line and column are similar to their charting counterparts, and win/loss is similar to the 100% stacked column chart. Throughout these blog posts we’ll examine the different sparkline types and how they are used. This time we’ll choose the line sparkline. Clicking the Insert -> Sparklines -> Line button from the ribbon will give you the sparkline insert dialog:
In the dialog there are two input boxes (known as RefEdit controls), one for the data range and one for the location range. As I’m sure you’ve already guessed the location range is where you want the sparklines to be displayed and the data range is the values that the sparkline will plot. At this point we have a couple easy options for getting the sparklines into the table. One option is to select the data range for a single sparkline and press OK on the dialog to create the first sparkline. Then, fill it down the table using the same method you would use to drag fill formulas. Sparklines in Excel will fill, adjust, copy, cut, and paste like formulas do.
You can also create multiple sparklines at once. Just select the cells where you want the sparklines to live, and then select the entire data block they will bind to:
Once they are created in the table you’ll see a bright blue border around them when the active cell selection is on a sparkline … since they were created all at once, or using a fill, they are a part of a group. Being in the group means they share formatting properties and can share axis options like min and max if you want them to scale together. You can add and remove sparklines from groups similar to grouping shapes in Excel. We’ll dive into the grouping, formatting, and axis options later in the week, but at this time it’s important to note that they are in a group on creation.
Now that they are created in the table, we can read the sparklines and quickly tell that most book categories started off low in the month, but then jumped in sales mid-way through the month. To help us see this, we can turn on a formatting option that highlights the lowest point in the sparkline:
Now it’s clear that most book categories have their low point in the start of the month, except for history, whose sales got worse as the month went on. This is an understanding that would have been hard to get to had you just read the numbers throughout the month, but can easily be identified when sparklines are applied.
To finish out the table we’ll add the high point to the sparklines, a couple more columns for min and max, and then color code the text to match the color of the points:
One other thing to note here is that since the sparklines are in an Excel table you can add another row of data and the sparkline group would grow and add another sparkline to the table … and you can add more days to the end of the table and the sparklines would pick up the points. This works similar to other Excel features bound to a table.
And that’s it, simple and easy way to create sparklines in Excel. For the next post I’ll dive in on some of the formatting options I used in this post, and a bunch more.
Comments: (10) Collapse
How about a discussion of whether it's possible to show $ in the number formats in only the top row, e.g., so that the final result looks like
Total $ 100
Item A 40
Item B 20
Item C 30
Item D 10
since dollars signs on every row is unnecessary clutter?
Man that looks easy to do but saves that whole pivot table thing when all you want is a quick look at trends. Just what I was looking for.
Joseph,
I'm very happy to see the introduction of sparklines in Excel - however I'm slightly nervous about what will happen when 2010 worksheets are opened in older versions of Excel. Will there be a graceful degrade? Seems like the challenge is going to be distribution of dhasboards to clients who haven't yet upgraded, just like when we started using the Excel 2007 colour palette. Imagine we'll need to use 'paste as png' in Powerpoint or print to PDF?
Your thoughts?
Cheers, J
James, as is always the case when developing FOR OTHERS, develop using the *OLDEST* Excel version any of your client's users would be using. Yes, it means you miss out on all the whiz-bang in the latest version, but you cause your clients far fewer problems. Isn't that the point?
James: Sparklines will not render in any fashion in previous versions of Excel. If saving to the newer formats (e.g. xlsx) the sparklines will be preserved when the file is edited in Excel 2007 even though they do not render. The next time the file is loaded in Excel 2010, the sparklines should be there provided that the cells to which the sparklines are attached weren't deleted. This is similar to how Excel handles backwards compatibility for most features. Excel 2010 does not support saving sparklines to the XLS file format.
Harlan: There's no specific improvement in Excel 2010 that makes doing what you ask easier. I believe you can accomplish the same thing with some custom number formats. Might make for an interesting "how to" post later on.
Trying to customize the template "revenue forecast" in Excel. The template comes with 4 tabs, one is read me (which provides little assistance), a revenue forecast, calculations, and dashboard. the revenue forecast tab comes with 41 lines, I added another 40, and can't figure out how to manipulate the DSUM to include my new lines of data in the calculation tab. Went to IS Department, they couldn't figure it out. Anyone have an idea, or where is the best place to post this information?
Can you add sparklines in Excel 2007 or is this a new app for Excel 2010 only??
ASchwind,
For sparklines that work with older Excel version (Excel 2000, XP, 2003 and 2007) have a look on MicroCharts
www.bonavistasystems.com
Andreas
Even MicroCharts has issues. Anyone using a spreadsheet with MicroCharts, must have MicroCharts installed. That's no better than having a specific version of Excel.
I know that MicroCharts has the ability to save sparklines as picture format so they can be shared by users who do not have MicroCharts installed.
But this functionality is kludgy at best. The pictures always come out a jagged and and never really fit into the cells.
MicroCharts is not the answer.
This is an awesome step by step guide I have seen, though I am not ready yet to go into 2010 but it is a great information already.
Comments: (loading) Collapse