navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Excel 2007: Creating Charts with Dynamic Data

Excel 2007: Creating Charts with Dynamic Data

with Curt Frye

 


Excel 2007: Creating Charts with Dynamic Data shows how simple data in Excel can be used to build exciting and updatable charts. Microsoft Most Valuable Professional Curt Frye explains how to use both named ranges and Excel tables to create charts that adjust as the data changes. Curt demonstrates how to specify the number of points in a chart and how to use a drop-down list to select which data series is displayed. Finally, he shows how to use PivotChart reports to reorganize and visualize data on the fly. Exercise files accompany the course.
Topics include:
  • Creating an expanding chart using formulas Specifying the first point and the number of points for a series Plotting points at regular intervals in a series Filtering a PivotChart report to find the right information

show more

author
Curt Frye
subject
Business, Charts + Graphs
software
Excel 2007
level
Intermediate
duration
40m 47s
released
Dec 04, 2009

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:00(Music playing.)
00:03Hi! I'm Curt Frye.
00:05Welcome to Excel 2007: Creating Charts with Dynamic Data.
00:08In this course, I'll show you how to visualize your data using charts you can control.
00:12I'll begin by showing you how to create dynamic named ranges and Excel tables,
00:16both valuable tools that enable you to create dynamic charts.
00:19Then I'll demonstrate how to apply those techniques.
00:22We'll look at ways to create charts that expand to include all data entered
00:26into a range or Excel table, to determine how many data points you want to
00:30display in your chart, and to use a d rop-down list to select which data series
00:34to visualize in your chart.
00:36Finally, I'll show you how to create PivotCharts, which enable you to reorganize
00:40and visualize your data on the fly.
00:42So let's get started with Excel 2007: Creating Charts with Dynamic Data.
Collapse this transcript
Using the exercise files
00:00If you are a premium member of the lynda.com Online Training Library or if you
00:04are watching this tutorial on a disc you have access to the exercise files used
00:08throughout this title.
00:09This is a relatively short course so I put all the exercise files for this
00:12title in a single folder.
00:15On my computer I have them in a folder entitled Exercise Files and you can
00:19see them listed here.
00:20If you are a monthly or annual subscriber to lynda.com, you don't have access
00:24to the Exercise Files, but you can follow along on the screen or create your own resources.
00:29Let's get started!
Collapse this transcript
1. Defining Named Ranges
Creating a named range
00:00When you create dynamic charts you'll find that assigning names to cells
00:04rather than using the cell addresses and formulas make your formulas easier to understand.
00:08In this lesson I'll show you how to create static named ranges, which don't
00:12change unless you edit the references, and dynamic named ranges, which expand to
00:16include data that you add to the list.
00:19The most straightforward way to create a named range is to select the cell
00:22range and then type a name for the range in the name box at the top left corner of the worksheet.
00:27For example, if I wanted to make cells C2 through C6 into a range called Sales,
00:33I could click in the Name box here after selecting the cells,
00:37type Sales and press Enter.
00:41Now, if I wanted to select those cells, I could click the down arrow in the Name box,
00:45click Sales and they are selected.
00:49In a similar way, if I want to find the sum of the cells in the Sales
00:53named range, I can type Sales or use the formula AutoComplete, press a
01:00right parenthesis to close the formula, hit Enter, and there you see the
01:04total of these five cells.
01:07One limitation of static named ranges is that if you add data below the existing range,
01:11Excel does not include those new values in its formula.
01:16So for example, if I were to type in for the year 2010, Quarter number 2, Sales
01:22of let's call it $500,000 and press Enter, Excel would not include those values
01:28in the Sales named range because the definition is still only these cells.
01:35To include cell C7 in this formula, I would need to create what's called a
01:39dynamic named range.
01:41Creating a dynamic named range uses a formula to define the cells included
01:45in the range but the good news is that you don't need to know exactly what the formula does.
01:49You just need to know enough to know how to modify it to reflect the contents of your worksheet.
01:53In this case the cells that currently contain the data you want to summarize
01:56using the named range appear in cells C2 through C7.
02:01To create a dynamic named range that reflects those cells, on the Formula tab of
02:05the ribbon in the Define Names group, click Define Name.
02:09Now, you can type in the name. I'll call it DynamicSales, and then in the Refers to: box,
02:17I can type the definition.
02:21In this case instead of using a cell range, I'll be typing in a formula.
02:27That formula is =offset Sheet1, which is the name of the worksheet I'm currently on,
02:34the name of the worksheet is followed by an exclamation point, then C2 which
02:43is the first cell in my data list, 0,0, which indicates the number of rows and
02:50columns that I want to offset.
02:52It's a part of the offset function and you don't need to worry about it but
02:55those values do need to be there.
02:57And now the next argument gives me the height of the range that I am defining
03:02using the offset formula.
03:03What I want to do is count the number of cells in column C that contain values.
03:08However, I'm only interested in the numbers, so I want to exclude cell C1.
03:14In other words, I want to count 1-2-3-4-5-6, 6 cells with values.
03:18To do that I use the counta formula, which counts the number of numerical
03:22values, Sheet 1 which is where we are working, and then I want to look at all of
03:29column C, the reference for that is $C:$C. I can close with right parenthesis.
03:39Now, I subtract one again because I don't want to count cell C1, which contains
03:44the Sales label, and then 1, which indicates the number of columns that I want
03:51to be included in the result.
03:52In other words, I want the result to be one column wide.
03:54I will close the formula with a right parenthesis and press OK.
04:01Now if I change this formula to =sum, Dynamic Sales, you'll see how Excel
04:10highlighted the entire column here and press Return. Excel gives me my result,
04:15which includes the $500,000 here.
04:17I will change formatting, so it's a little bit easier to read.
04:20Now, let's see what happens if I add another row of data.
04:25So, let's say that I go to Quarter number 3 and for that we have sales of $750,000.
04:32When I press Enter, Excel updates the formula because we are using a
04:35dynamic named range.
04:37Dynamic named ranges help you summarize changing lists of data, while still
04:40creating human readable formulas.
04:42What's more, unlike Excel tables which I'll cover later, dynamic named ranges
04:46are compatible with Excel 2003 and earlier versions of the program.
Collapse this transcript
Creating an Excel table
00:00One very useful new feature in Excel 2007 is the Excel table.
00:05In Excel 2003, you had lists, which provided some of the same functionality as
00:09Excel tables, but Excel tables take it and run.
00:12You can create an Excel table by setting up your data as a list.
00:16In this case, we have data from A1 all the way down to be D25.
00:21There are no breaks. In other words there are no empty rows, so Excel knows its
00:25all part of the same data range.
00:26And also there is no extraneous data to the right or below the table.
00:32That's important, because if you created a table and there was data to the side
00:36or data below it, then Excel will try to include that data in the table even
00:40though you wouldn't want it there.
00:41To create the table, on the Home tab, go to the Styles group, click Format as a
00:46Table and click the table format you want.
00:50Verify that Excel identified the table data, A1 through D25, that your table has
00:55headers, it does, those are here in A1 through D1, and click OK.
01:01And there is your Excel table.
01:03The first thing you'll notice is that you have filter arrows, which allow you to
01:06limit the data that appears in the table.
01:08So let's say for example that I only wanted to see data from the month of January.
01:13I can click the Month columns filter arrow, clear Select All, click January,
01:19click OK and Excel limits my data.
01:25In the context of dynamic charts, Excel tables are very useful because they
01:29allow you to create expandable ranges.
01:31In other words, an Excel table is a collection of dynamic named ranges.
01:35So for example, if I wanted to refer to this Excel table in a formula, I would
01:39type =sum and then the name of the table.
01:43When Excel creates a table, it uses names such as Table1, Table2.
01:48This one will be named Table1 because it's the first one that has been created.
01:51I'll enter that and I want to find the sum of the Sales values.
01:56So I will type a left square bracket and then type S for Sales.
02:01Press Tab to accept it from the Formula AutoComplete List, right square bracket,
02:06right parenthesis closed, hit Return and there is my value, which I'll format to
02:13make it easier to read.
02:14If I add data to an Excel table, that formula will update.
02:18So for example, let's say that in 2011 first-quarter month of January,
02:27we had Sales of $500,000.
02:32As soon as I hit Enter to include the data in the table, this formula updates.
02:36Referring to Excel tables in your formulas make your formulas easier for you
02:39and your colleagues to understand.
02:40But remember that Excel tables can only be used in workbooks created in
02:44Excel 2007 and later.
02:46That said, if you work with colleagues who run Excel 2003, they will see any
02:50Excel tables as lists, which were the predecessor to Excel tables included in 2003.
02:55If you collaborate with users who still have Excel 2002 or earlier however,
03:00you should use dynamic named ranges to refer to data columns that you could expand or contract.
Collapse this transcript
2. Creating Dynamic Charts Using Formulas
Creating an expanding chart
00:00One of the more difficult aspects of managing a business is keeping your charts
00:03and graphs current with the data you collect.
00:06You can use Excel tables to create expanding charts in Excel 2007 and create
00:10dynamic named ranges to create the same charts in any version of the program.
00:15In Excel 2007, you can create a chart from a table simply by clicking any cell
00:20within the chart and then on the Insert tab, click the type of chart you want to great.
00:26And when you do, Excel creates it.
00:28Now there is something interesting about Excel charting. This is little bit of a
00:32digression, but I think you'll find it worth your time.
00:35Notice here in the body of the chart where I have the months and then the year
00:40occurring exactly once here in the bottom.
00:42The same thing happens in 2010.
00:44The reason that happens is because here on my table, I have the year 2009 here
00:50at the top of the list and it doesn't repeat until you get to 2010 where you get the next year.
00:57If I were to put the value 2009 in every one of these cells, you can see that
01:04Excel writes the value 2009 for each of these data markers.
01:08In other words for each month, it writes the value 2009, the associated year,
01:13exactly once, which makes the chart completely unreadable.
01:17Rather than do that, I take away these values, hit Delete, and we get a chart
01:24that's much more visually attractive.
01:26Now also notice that if I were to add another row to the table.
01:31In this case, it'll be the year 2011, January, and say we had sales of
01:36$500,000, hit Return and Excel adds that new data to the chart with the year
01:422011 and the month of January.
01:45In Excel 2003 and earlier, or if you are creating a workbook you plan to share
01:49with users who use Excel 2003 or earlier, you can create a dynamic named range.
01:55So let's say that we're here on this worksheet and I have this dynamic named range here.
02:03On Formulas, I can go to the Name Manager and I will see the named range that I've created.
02:08If you need more information about how to create a dynamic named range, you can
02:11get to the first movie in this course.
02:14I have DynamicSales and here is the definition down here.
02:17Everything looks good so I'll click Close.
02:20When I do, I can click any cell within the dynamic named range and then on the
02:25Insert tab, click Line because I want to create a Line Chart this time and click Enter.
02:32Now when Excel created this chart it had two choices.
02:35It could use the dynamic named range or it could just use a cell range and say
02:39well, the value for the header is in cell A1 and the data values that will be
02:45plotted in the body of the chart are in A2 through A25.
02:48So let's see what you did.
02:50To do that, you click the Chart and then on the Design contextual tab, click Select Data.
02:55And you'll see that Excel pulled the Sales value.
02:58Now the dynamic named range is called DynamicSales, so we should change that.
03:04I'll select the Series name here. Click Edit.
03:08The Series name is correct.
03:10I want to use Sales, and then for the Series values, I will type in
03:17DynamicRange, which is the name of the worksheet, !DynamicSales, which is the
03:28name of the dynamic named range.
03:30I'm done, so I'll click OK.
03:31I see them here in the chart. Click OK and there you have it.
03:38Now if I were to add another value, say 500,000 for our next Sales figure, hit Return,
03:45 Excel adds the data to the chart.
03:48Visualizing your data using an expanding cart helps you make decisions based on
03:51the most recent data at your disposal.
03:54The easiest way to create these charts is to use an Excel table as your
03:57data-source, but dynamic named ranges fit the bill just as well.
Collapse this transcript
Charting data from the beginning of a range to a specified end point
00:00When you plot a chart series in a dynamic chart, you can select how many
00:03elements from the start of the chart you want to visualize.
00:07One example where this type of analysis would be helpful is if you wanted
00:10to examine the first 14 days sales for a new product to see how momentum
00:14did or didn't build.
00:16To create a chart that displays a specified number of data points from the
00:19beginning of the chart series, you need to know two things:
00:22the address of the first cell in the range, and the cell that contains the last
00:25value to be plotted.
00:27You also need to find the cells that contain the data labels, but once you know
00:30where the data is, it's easy to create a rule that tells Excel to find a range
00:33of the same size, one column to the left.
00:36I created two named ranges and I will show you those here in the Name Manager.
00:42One range is named Days;
00:43the other is named Sales.
00:46The Days range uses a dynamic named range definition which looks on Sheet 1,
00:51which is where we are, starting in cell A2, which is here, and then it counts
00:58down the number of values found in cell E1, which is here.
01:04Currently it contains 3.
01:05One thing that I do when I am creating a dynamic chart is that I always put
01:09meaningful data in the cell or cells that I am using to control the chart.
01:13That way when my chart appears for the first time, I know immediately whether
01:16I've got my formulas right.
01:18The Sales named range also dynamic just looks one column to the right.
01:24We started the cell B2 and go down by the number of values found in cell E1.
01:30With those named ranges in place I can start creating the chart.
01:34So I'll click Close, select my data, Insert, a Column Chart.
01:42You'll notice that I have two data series here.
01:45One in red, one in blue.
01:47One of Excel's idiosyncrasies is that if a column in your data source contains
01:51numeric values, Excel plots it in the body of the chart.
01:55That's okay, because you can change it, but it does make for some interesting
01:58looking charts where you have your days 1 through 14 plotted along with the
02:03sales for those days.
02:04So how do you change it?
02:05Well, first you click the chart to select it and then on the Design contextual tab,
02:10click Select Data.
02:13From here you can edit where the values occur in your chart.
02:16So for example, we do not want Day to be a data series it's plotted in the chart,
02:21so click Day and click the Remove button.
02:24So we only have Sales, but Sales isn't exactly right either, because Sales only
02:31covers these values.
02:33It doesn't allow us to change the definition, which we can do with the
02:35dynamic named range.
02:36So I'll click Remove as well.
02:39Now I'll click Add, our series name appears in the Sheet 1, cell B1, and again,
02:47this is the data that's going to appear in the body of the chart, not the axis
02:51values yet. Those come next.
02:53Also it's vital that you must put Sheet 1, the worksheet name, in front of the
02:58cell and in front of the named range. Always remember to do that.
03:03Now to indicate the series, type in =sheet1!Sales, which is the name of named
03:13range that I want to use.
03:14Everything looks good.
03:16I'll click OK, and the values appear in my chart and also in the Select
03:20Data Source dialog box.
03:22When I click OK, you'll see that my chart now contains values for days 1, 2 and 3,
03:26and that corresponds the number of days that I have here in cell E1.
03:31If I were to type in 4 and press Return, Excel would go to four days and if I go
03:38all the way up to 14, we see all the data in the chart.
03:40Now let's see what happens if I go up to 15, which is one more data point that we have.
03:45When I press Enter, we don't get an error. Instead Excel says, okay, you want 15 values?
03:53Well, I can't find a value for the 15th part of the chart, so I'll just
03:57display 0 or in this case no value at all.
04:01If you type negative 1, Excel goes to the lowest possible value, which is 1,
04:06and shows it there.
04:08Switching back to 3, we get our normal look at the data.
04:11This dynamic chart enables you to discover the data transit at the beginning of your series.
04:15The early days of your products are often the most important, so this technique
04:19can provide valuable information.
Collapse this transcript
Charting a specific data range
00:00When you analyze your business, there'll be times when you want to find data
00:03within a specific range.
00:05That range may not be defined by days or years or months, but instead they
00:09might be data points within a cell range.
00:13When that's the case, you can create a dynamic chart that allows you to
00:16specify which data point you want to start with and which data point you want to end with.
00:21In this chart, I happened to have sales for days 1 through 14 and I have days 3
00:27through 5 inclusive summarized in the chart right now.
00:31If I wanted to change my starting point, say by going all the way back to day 1,
00:34I could edit the value in that cell and Excel updates the chart.
00:39If I want to extend the ending point all the way out to day number 9, type it in,
00:43press Return and the chart changes as well.
00:45It's a great way to analyze your data.
00:47Now let's go back to the beginning so I can show you how I got here.
00:51Business analysts often need to know how a product, department or a division
00:54performed during a given period.
00:56When your data includes states, it's easy to create a PivotChart and filter the
01:00data using a Between rule.
01:02If you don't want to use a PivotChart, perhaps because you colleagues have a
01:05version of Excel that doesn't support them, you can create a dynamic chart that
01:08offers the same functionality.
01:10To create a dynamic chart that displays a specific data range, you need to know two things.
01:15The address of the first cell to plot and the address of the last cell to plot.
01:20Once you know how to determine the addresses of those two cells, you can create
01:23a dynamic named range based on those cells.
01:26In this case, I've defined two dynamic named ranges based on the values here in
01:32cells A1 through A15.
01:35I'll show you how the named range for the Sales dynamic named range works and
01:39then you can apply that knowledge to figure out how the days works.
01:42So in this case, I have the Sales named range.
01:45This is a complicated formula so what I'd like to do is copy it and paste it
01:53into an Excel worksheet cell, and then use the Evaluate Formula dialog box to
01:58walk you through it step-by-step, and don't worry about the formula result.
02:03It doesn't matter in this case and I'll type in a couple of starting values.
02:07So our Starting Point will be 2 and our Ending Point will be 5, and
02:12you'll notice this value here changed.
02:15So I'll click the cell that contains the formula and on the Formulas tab, go up
02:20to Evaluate Formula and step through it piece-by-piece.
02:23The formula appears in the Evaluate Formula dialog box.
02:27Excel underlines the first item that it is going to evaluate.
02:31So here we have Sheet1, which is the current worksheet, cell H2 and that is here.
02:38It contains a value 2.
02:40So when I click Evaluate, my next operation will be 2-1 which equals 1 and now
02:47Excel has enough information to evaluate this OFFSET formula.
02:51What this OFFSET formula does is it says from cell B2 offset by one row,
02:57offset by 0 columns, and with one row high and one column high find the cell
03:03that meets that description.
03:04I'll click Evaluate and I get B3, and that is the second cell in the Sales data range,
03:12which corresponds to the value in cell H2, so that part of the formula
03:16is working properly.
03:18Next, it's going to find the value in cell H3.
03:20That's here, so it should be 5, it is, and now it's going to subtract the value
03:26in cell H2 to figure out how far it should go, in other words how big the data
03:31range is going to be.
03:32So we have Sheet1 H2, which is 2. Evaluate and now that would result in a value of 3.
03:41But because Excel would count the first cell, we need to add one to make sure
03:45that we get a total of four cells.
03:47As if we start to cell 2 and end at cell 5, we need 2, 3, 4, and 5.
03:54That is 4 cells and 5 minus 2 only leaves us with 3, so we need to add the 1.
04:00Click Evaluate, we get 3+1, 4, and now Excel can evaluate the entire OFFSET function.
04:05Click Evaluate and you'll get 27.
04:09Now 27 is the numeric value of the last cell in the range that it's going to use
04:14in the formula that we use to create the chart.
04:18So that is an overview of how the OFFSET function works.
04:21Now we can create the chart.
04:23I'll click any cell in the data over here, click Insert and we'll do a Column Chart.
04:28As before in previous movies, you'll see that Excel tries to plot both the
04:32Day and the Sales together in the chart, but we can fix that using the Select Data dialog box.
04:38So I will remove the two data series that are currently there. Click Add.
04:42The series name is in Sheet1, cell B1, which is sales.
04:48Again these are the data values, not the axis values, which we'll get to in a moment.
04:52Then =sheet1!sales, press OK, and the values appear in the chart.
05:01For the Horizontal (Category) Axis Labels, I'll click Edit and the range is
05:07=sheet1!days press Enter, there it appears, 2, 3, 4, and 5, click OK, and
05:16the values appear in the chart.
05:18Now if I were to change the Ending Point to say 7, Excel would display days 2 through 7.
05:25If I change the Starting Point to 1, we get the first week, days 1 through 7.
05:30Even though the Starting Point and Ending Point values happen to correspond to
05:33the values in the Day column of the data list, you're not using the named ranges
05:36to find a match. Instead you're asking Excel to plot the data starting at a
05:40certain list row and ending at another row.
Collapse this transcript
Specifying the first point and number of points for a series
00:00When you analyze your business operations, you'll often be asked how well a
00:03product performs starting at a certain point in time and continuing on for
00:07another set period of time.
00:09If you work for a huge retailer, you might be asked to measure product sales
00:12every few hours and if the product sales velocity rises above a certain
00:16threshold, reorder the product in the larger quantities than planned.
00:20If you want to specify the first point to plot and then indicate how many total
00:23points to plot, you can do so by creating dynamic named ranges.
00:27In this worksheet, I have a small sales data set and two cells that contain the
00:31starting point and the number of points to plot.
00:34From that data I can determine the addresses of the first and last cells to plot
00:37in my chart, based on user input.
00:40I defined two dynamic named ranges for the Sales and the Day and I'll just give
00:45you a quick look at those.
00:46I won't go through them step-by-step because they are fairly complicated.
00:51The Sales range looks in column B and uses the value in cell H3 that is here to
00:58determine the Number of Points to plot.
01:01The Day is dynamic name range looks in column A and uses the value here in
01:06cell H3 to determine how many points to plot based on the Starting Point given in cell H2.
01:13Now I can create the chart.
01:15I'll click any cell over here in the table, insert a Column Chart. As we've seen
01:24before Excel plots all of the numerical values in the body of the chart but we
01:28can change it. Go to Select Data, delete the two existing data series, click
01:35Add and this is the data that's going to the body of the chart, so it would be =sheet1.
01:41You always need to type the name of the worksheet before you type in the name of a named range.
01:46So we have sheet1!
01:50and this is cell B1.
01:55The series values are =sheet1!Sales.
02:01When I press OK, the Sales data appears in the body of the chart.
02:06Now for the Horizontal or Category Axis Labels, I'll click Edit and give the
02:12Axis label range, which is =sheet1!Days.
02:15So now I have values 2, 3, 4 and 5, which means that it currently starts at 2,
02:24and the Number of Points is 4.
02:26Click OK and there you see the chart.
02:29If I were to start from 4 and have the Number of Points before, then we see 4 through 4.
02:34If I were to type in a number of points that's greater than the number of
02:37remaining points, so let's say that I start on 4 and I wanted 15 remaining
02:42points, when I press Return, we get all the remaining data in the chart, and
02:46it blanks out here on the side.
02:50If I were to put the Starting Point below 1, such as say negative 1, we get an
02:55error because that's an invalid reference.
02:57I will switch that back to start at point number 1 which gives us 1 through 9.
03:04This dynamic chart provides useful insights into how your enterprise performs
03:07over a specific period of time, offering you valuable insights to help you
03:11make better decisions.
Collapse this transcript
Plotting the last number of data points in a series
00:00When you a plot a chart series in a dynamic chart, you can select how many
00:03elements from the end of the chart you want to visualize.
00:07One example for this type of analysis would be helpful is if a product's sales
00:11decreased suddenly and you wanted to examine the last five days of sales to see
00:15if there was any indication that a change is going to take place.
00:18To create a chart that displays a specified number of data points for the end of
00:21the data series you need to know two things: the address of the last sale on the
00:25range and the cell that contains the first value to be plotted.
00:29You also need to find the cells that contain the data labels but once you know
00:33where the data is, it's easy to create a rule that tells Excel to find the range
00:36of the same size one column to the left.
00:39In this case I created named ranges to calculate the address of the last sale in
00:43the Sales dynamic named range and I'll show you that right now.
00:47Under Formulas, go to the Name Manager and you'll see the four named ranges that I created.
00:54Looking for the LastSaleCell, it looks in column B and works down from cell B1,
01:01counts the number of values and says very well, the cell that is the number of
01:06values below the first cell minus one is where the n must be.
01:10So that's all that formula does.
01:12LastDateCell does exactly the same thing except of column A.
01:17The sales from End and Days from End named ranges
01:20calculate the number of cells that it needs to go up from the last cell in that
01:25particular column for example days or sales and then creates a range going from
01:31that cell to the last cell on the list.
01:33With those named ranges in place, I can create my dynamic chart.
01:36So, if I click any cell in the data table and insert a column chart, once again
01:44the data shows up incorrectly but I can select the data, remove the two existing
01:51series and add my own.
01:52The series name and this is for the data in the body of the chart as opposed
01:56to the Axis values, so it is sales = sheet1!b1 and you do need to have the
02:03sheet 1 indicator there to tell Excel where to look on which worksheet and
02:09then for the series values it's =sheet1 !salesfromend and my values appear in
02:18the chart and they look correct.
02:20Now, also do the same thing for the Axis Labels.
02:23=sheet1!daysfromend.
02:28Got my Sales, days 13 and 14 which are the last two in my data series, click OK,
02:35and my chart looks to be correct and changing the value here in Points to Plot,
02:40say I wanted it to be 4, I get 4 days of values. If I wanted to do 10, I get 10.
02:45Now, there are only 14 values in the series.
02:48If I were to type 15, Excel would fill in days 1 through 14 and it would go back
02:54and have a blank here for day 0.
02:55If I were to do 16, I get an error because it tries to put a negative number
03:00into a formula that isn't capable of handling them.
03:03So click OK and I will type 12 and we got the last 12 days worth of data.
03:11This dynamic chart enables you to discover the data trends at the end of your series.
03:16These values can provide terrific insights into what has just happened with your business.
Collapse this transcript
Plotting points at regular intervals in a series
00:00If you work with large data sets, you might find it useful to get a
00:03coarser grained version of your data by plotting every third, fifth or even tenth point.
00:09To do so, you need to combine an Excel table with a bit of math and the filter.
00:13It's a multi step process but it's worth it.
00:15In this case your goal is to plot every few rows in your Excel table and you
00:19need to have a way to identify which rows of the third, fifth, tenth or at
00:22whatever increment you desire.
00:24That data doesn't appear in this table, so I'll have to add a column and use a
00:28formula to determine which rows fall in the increment I want.
00:31To do that I'll use arithmetic operation called modular division, which divides
00:35one number by another number like regular division but returns the remainder.
00:40In other words 10 mod 4 would have an answer of 2, which is the remainder
00:44when you divide 10 by 4.
00:46The formula are used to calculate which rows to plot uses the value in cell G1
00:50as a divisor and the row number of the cells in column C as the dividend.
00:55First I will add a new column to the table.
00:58I'll just call it Modular for modular division and hit Enter.
01:02When I do Excel adds the row to the table and double-clicking this line here
01:08expands the column to fit its contents.
01:11Now that I have the column in place, I can type in my formula and that is =mod
01:15again for modular division, row, the row number of C3 and I will leave the
01:21reference to C3 relative so that it will change when Excel copies the formula down.
01:26Subtract two, so that I get the proper row number, comma, and cell G1 and
01:33I will make this reference absolute because the value that I want to divide by is
01:37always going to be a in cell G1.
01:39It will never change.
01:40Therefore, I use an absolute reference.
01:44Close with parenthesis, hit Return and every third cell has the value 0 and
01:52that's the result I need but also notice that Excel added the modular values to the chart.
01:58I don't want this to be there, so I click the chart, go to the Design tab,
02:04select Data and remove the Modular series.
02:09Click OK and my chart is back to normal.
02:12Now I can filter the Excel table by the values in the Modular column, which
02:16leads Excel to update the chart.
02:18I would do that by clicking Modular and then I want to display every third value.
02:25Those are the ones that contain the value 0, so I'll click Select All, click 0,
02:32click OK and Excel changes my chart.
02:37If I want to change the value in the interval cell, which is cell G1, say I want
02:42to go to 5, press Enter and you'll see that the values over here in the Excel
02:48table changed but the chart did not update.
02:50To make the chart update, I need to reapply the filter.
02:53So I go to the Modular, clear gilter, Select All, 0, click OK and I get my data.
03:04Plotting points at regular intervals provide a useful summary of your data
03:07particularly when you work with huge data sets.
Collapse this transcript
3. Sorting and Filtering PivotTable Data
Creating a PivotChart
00:00PivotTables help you summarize large dataset efficiently but it can be difficult
00:04to interpret data when all you have to go on are the raw numbers.
00:07Charts on the other hand summarize data visually making it easier to distinguish
00:11groupings and trends of your data.
00:13Just as you can create charts based on regular worksheet datasets, you can
00:16create dynamic charts called PivotCharts from the data contained in PivotTables.
00:20There are two ways to create a PivotChart.
00:23You can either create a PivotTable and the PivotChart at the same time or you
00:26can create a PivotChart from an existing PivotTable.
00:29I should point out that because a PivotChart summarizes the data in a
00:33PivotTable, it's not possible to create a PivotChart by itself.
00:36Because your PivotChart is based on a PivotTable, your data source must be
00:40formatted as a data list, preferably an Excel table, so the program can create
00:44the PivotTable that powers a PivotChart.
00:47To create a PivotChart at the same time you create a PivotTable, click any cell
00:51in the data source and then click Insert.
00:55Click the PivotTable button's down arrow and click PivotChart.
00:59When you do, Excel displays that Create PivotTable with PivotChart dialog box.
01:03You can verify that the proper data source is selected.
01:06You can see the marquee here, and indicate you want you want to create it on a new worksheet.
01:11That's fine, click OK and Excel creates your PivotChart.
01:15I personally prefer to filter my PivotTable using the controls in the
01:19PivotTable Field List.
01:20So I will just close the PivotChart Filter pane.
01:22After you create your PivotChart, you can arrange the fields using the controls
01:26in the PivotTable Field List task pane just like you would for a PivotTable.
01:30So here, I will add Year to the Axis Fields, which provide the row headers, and Month.
01:37I will put Company for Legend Fields, which provide the Axis values, and then I
01:44will click Revenue, put that in the Values area.
01:48Now notice when you created dynamic charts earlier in this course, if your data
01:52source had values in every cell for the year, then Excel would try to put 2008,
01:562008, 2008, 2008 in these values here.
02:01But instead because you created the PivotChart, you can have all of those
02:05years in your data source as you see here but Excel knows to put 2008 and 2009
02:11by themselves at the bottom of the PivotChart. Just move this little bit here.
02:16There are some differences between regular Excel charts and PivotCharts.
02:20The most important ones are that you can't switch the row and column orientation
02:24of the PivotChart by using the Select Data Source dialog box.
02:27Of course, you can rearrange your data by pivoting the PivotChart, so that's
02:31not much of a loss.
02:32There are three chart types you can't use when you are creating a PivotChart.
02:36Those are an XY or Scatter chart, a Stock chart or a Bubble chart.
02:40Refreshing a PivotChart removes any trend lines, data labels, error bars and a
02:44few other less common settings you might have applied.
02:47Finally, if you'd rather have your PivotChart reside on the separate worksheet
02:50from the PivotTable, click the PivotChart, and then on the Design tab, click
02:56Move Chart, select the chart where you want to move it, in this case, I will put
03:01it on the new chart sheet called Chart1, click OK and there it goes.
03:06Putting a PivotChart on its own chart sheet makes a chart larger and easier to understand.
03:10PivotCharts enable you to summarize your data visually, providing an overview
03:14of your data and opening the door to insights you might not discover from
03:17looking at the raw numbers.
03:18You will find that PivotCharts are powerful tools that help you analyze your
03:21enterprise's data effectively.
Collapse this transcript
Pivoting a PivotChart
00:00The real power of a PivotChart comes to the fore when you rearrange your data dynamically.
00:04A task that would take several minutes if done by hand, takes just a few seconds
00:08when you summarize your data using a PivotChart.
00:10In a PivotChart, the row and column headers provide the basic structure for your
00:13PivotChart and those are here in the Axis Fields, which provide the categories
00:18or the vertical axis, and Legend Fields, which provide the data series indicated
00:23here as FirmA and FirmB, and finally you have the Revenue values here in the
00:29Values area, and those are plotted in the data area of the PivotChart.
00:34Changing row and column header positions changes the data's arrangement within
00:38the chart but exactly how each pivot affects a PivotChart depends on the
00:41PivotChart's chart type.
00:43So let's say that I were to move Company down here below Year and Month. I'd get
00:47a very crowded chart as you can see.
00:51If I take Month and put it in Legends then I get my data summarized by month,
00:57then by company and then by year.
01:00I f I put Year and Month in the Legends Field area, then I get a separate data bar
01:05for 2008 January, 2008 February and so on.
01:08I am just showing these different pivot positions to give you an idea of what
01:12happens when you pivot your PivotTable.
01:14This is definitely not a chart you'd want to display at a meeting.
01:17Now I'll return Month and Year to here and move Company back.
01:25One last thing I'd like to show you is how to defer updating the PivotTable
01:28until you've completed all the pivots that you want to make.
01:31If you work with a large data source and particularly,one that you have to
01:34access over a network, whether it might be some network lag or other delays, then
01:38delaying updates allows you to make all of your changes and then only update the
01:42data in the PivotTable once.
01:44So if I check the Defer Layout Update box, make my changes, I'll just put Year
01:50here and take Month out of the PivotTable.
01:52I'll click Update and Excel updates the PivotTable and I'm okay with all of my
02:01changes happening as I make them for now on.
02:03So I'll clear the Defer Layout Update checkbox.
02:06Change in the PivotChart's arrangement shifts the data's emphasis, enabling you to
02:10examine the data from different perspectives quickly and easily.
Collapse this transcript
Filtering a PivotChart
00:00PivotCharts can summarize huge data collections but many times you'll want to
00:04limit the data displayed in a given category.
00:07You can limit the data summarized by a PivotChart by creating a filter.
00:11There are two main ways to filter the contents of a PivotChart:
00:13by selection or by rule.
00:16Filtering by selection means that you display a list of values in the field and
00:20select the values you want to display.
00:21Filtering by rule means that you create criteria that Excel uses to select
00:25which values to display.
00:27If you want to filter the values in your PivotChart, you can go to the
00:30PivotTable Field List and then click the header for the field that you want to filter.
00:35In this case, I'll filter by selection.
00:37So for Year, I will clear Select All and then select the year 2009 and click OK.
00:45If I want to get rid of the filter, I can go back to the field header, which has
00:50a funnel indicating it is filtered, click the down arrow and click Clear Filter
00:56From "Year" and Excel restores my PivotChart to its original configuration.
01:00If I want to filter by rule, then I can click the header of the field that I want to filter.
01:06Again clicking the black down arrow, point to Label Filters and in this case,
01:12I want to display data only from quarters three and four, so I'll create a rule
01:17that displays data from quarters greater than quarter number two.
01:20So I have is Greater Than, type in a 2, click OK and Excel limits the data.
01:27Now if you want, you can pile filters one on top of another. So let's say that I
01:31went back to Year and I wanted to only display values from 2009 with the quarter
01:37three and four filter in place right now.
01:39I click OK and I just see the results from 2009 quarters three and four.
01:44Creating filters gives you control over the values that appear in your PivotChart.
01:48When you want to narrow your focus and examine a subset of your data, PivotChart
01:52filters enable you to do just that.
Collapse this transcript
Conclusion
Goodbye
00:00Thanks so much for spending your time with Excel 2007:
00:03Creating Charts with Dynamic Data.
00:05I hope you've learned a lot of usable techniques and that you're able to apply
00:08them successfully to your business.
00:10Thanks again!
Collapse this transcript


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,069 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked