G11 Notes
G11 Notes
the link shows the same data as the cell from the other worksheet. The cell that
contains the link is called a dependent cell. The cell in another worksheet that contains
data to which the link refers is called a precedent cell. Dependent cells automatically
change if the precedent cells change. If you want to link multiple cells from another
worksheet, you can use an array function, which lets you link a range of cells using
one formula.
Click the worksheet tab at the bottom of the screen that contains a range of precedent
cells to which you want to link. A range is a block or group of adjacent cells. For
example, assume you want to link a range of blank cells in “Sheet1” to a range of
precedent cells in “Sheet2.” Click the “Sheet2” tab.
Determine the precedent range’s width in columns and height in rows. In this example,
assume cells A1 through A4 on “Sheet2” contain a list of numbers 1, 2, 3 and 4,
respectively, which will be your precedent cells. This precedent range is one column
wide by four rows high.
Click the worksheet tab at the bottom of the screen that contains the blank cells in
which you will insert a link. In this example, click the “Sheet1” tab.
Select the range of blank cells you want to link to the precedent cells. This range must
be the same size as the precedent range, but can be in a different location on the
worksheet. Click and hold the mouse button on the top left cell of the range, drag the
mouse cursor to the bottom right cell in the range and release the mouse button to
select the range. In this example, assume you want to link cells C1 through C4 to the
precedent range. Click and hold on cell C1, drag the mouse to cell C4 and release the
mouse to highlight the range.
Type “=,” the worksheet name containing the precedent cells, “!,” the top left cell of the
precedent range, “:” and the bottom right cell of the precedent range. Press “Ctrl,”
“Shift” and “Enter” simultaneously to complete the array formula. Each dependent cell
is now linked to the cell in the precedent range that’s in the same respective location
within the range. In this example, type “=Sheet2!A1:A4” and press “Ctrl,” “Shift” and
“Enter” simultaneously. Cells C1 through C4 on “Sheet1” now contain the array
formula “{=Sheet2!A1:A4}” surrounded by curly brackets, and show the same data as
the precedent cells in “Sheet2.”
1. With Ctrl key
Just press and hold down the Ctrl key, and you can select multiple non-adjacent cells or
ranges with mouse clicking or dragging in active worksheet.
2. With Shift + F8 keys
This does not require holding down keys during selection. Press the Shift + F8 keys
firstly, and then you can easily select multiple non-adjacent cells or ranges in active
worksheet.
The Microsoft Excel's Go to command can help you select non-adjacent cells or ranges
quickly with following steps:
1. Click the Home > Find & Select > Go to (or press the F5 key).
Note: This method requires user to figure out the cells or ranges position before
selecting them.
You may have noticed Microsoft Excel does not support copy multiple inconsecutive
cells (staying in different columns) at the same time. But copying these
cells/selections one by one waste of much time and is tedious! Kutools for
Excel’s Copy Ranges utility can help get it done easily as below screenshot
shown. Full Feature Free Trial 30-day!
If you have Kutools for Excel, its Select Range Helper tool can help you select
multiple non-adjacent cells or ranges in the whole workbook easily.
Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial
30-day, no credit card required! Get It Now
1. Click the Kutools > Select > Select Range Helper….
Click the chart to which you want to add another data series.
Note: If you use arrow keys to position the pointer to type the reference, you
can press F2 to ensure that you are in Edit mode. Pressing F2 again switches
back to Point mode. You can verify the current mode on the status bar.
1. On the worksheet, type the data and labels that you want to add to the chart
in cells that are adjacent to the existing worksheet data.
2. Click the chart to display the sizing handles around the source data on the
worksheet.
3. On the worksheet, do one of the following:
o To add new categories and data series to the chart, drag a blue sizing
handle to include the new data and labels in the rectangle.
o To add new data series only, drag a green sizing handle to include the
new data and labels in the rectangle.
o To add new categories and data points, drag a purple sizing handle to
include the new data and categories in the rectangle.
nonadjacent selection: A selection of two or more cells or ranges that don't touch
each other. When plotting nonadjacent selections in a chart, make sure that the
combined selections form a rectangular shape.
1. On the worksheet, select the cells that contain the data that you want to add
to the chart.
Tip: If you want the column or row label for the new data to appear in the
chart, include the cell that contains the label in the selection.
2. Ribbon
Home (Tab)
Clipboard (Group)
Copy (button)
3. Click the chart sheet or the embedded chart into which you want to paste the
copied data.
4. Do one of the following:
o To paste the data in the chart,
Ribbon
Home (Tab)
Clipboard (Group)
Paste (button)
and
select the options that you want.
Click the chart to enable the Chart Tools, which include the Design and Format tabs.
Click the "Design" tab, and then click "Select Data" from the Data group.
Enter a name for the new data in the Series Name field.
5
Click the "Collapse Dialog" box in the Series Values section, drag your mouse across
the new data and click the "Collapse Dialog" box again that now resides in a smaller,
floating window.
Click "OK" to close both windows and add the data to the chart.
It
happens to everyone, it’s the reason Excel was created – the data
changes and your Excel chart must change. And it’s not just the values
of a specific data point in a data series that change, sometimes an
entirely new data series must be added.There are three ways to add
data to an existing chart and each has its own unique advantages.
There’s two ways to do this. The easiest is if the data series are located
next to each other. If they are, then select the chart so the selection
handles show around the chart data, like the small squares surrounding
the numbers in the figure. Drag the lower-right handle to the right so the
data selection includes the APAC title and the data. When you release
the chart will redraw to include the APAC data.
If the new data series isn’t located adjacent to the original data then you
can use the copy and paste method of adding data. Select the APAC
title and the data below it and choose Copy. Now, right-click on the edge
of the chart and select Paste. You’ve just pasted a new data series into
the chart.
Use the Select Data Source for Ultimate Control of Excel Chart Data
There’s one more method you can use. The Select Data Source gives
you ultimate custom control over which labels and data are referenced.
To display the Select Data Source dialog box, select the chart and in the
Chart Tools tab, select Design. Now click Select Data in the Data group
on the left. This displays the Select Data Source dialog box. In this box
you can add, edit, or delete data series and series names.
Use the Select Data Source Dialog to Add, Change, or Modify a Data Series
To add the APAC data, click the Add button under Legend Entries
(Series). Enter the APAC series name by clicking inside the Series
Name edit box and then clicking the cell containing APAC. Next enter
the series data by clicking in Series Value edit box and dragging across
the APAC data cells. As you select new data you will see the chart
redraw to include the data.
The Edit Series enables selection of non-adjacent chart data
Which method should you use? Well, dragging the data border handles
is obviously very easy when the new data is adjacent to the old and you
want to use the title that’s at the top of the new data. Copy and Paste is
also very easy to use when the title is the text at the top of the data, but
with the Copy and Paste method the new data doesn’t have to be next to
the old data.
For the greatest versatility, but requiring more clicks, use the Data
Source dialog box. This allows you to select data anywhere, even on
other worksheets or in other workbooks. You can also type text in the
Series Name edit box if you want a legend title different from the title
above the data.
Purpose
Get a subtotal in a list or database
Return value
A number representing a specific kind of subtotal
Syntax
=SUBTOTAL (function_num, ref1, [ref2], ...)
Arguments
function_num - A number that specifies which function to use in calculating
subtotals within a list. See table below for full list.
ref1 - A named range or reference to subtotal.
ref2 - [optional] A named range or reference to subtotal.
Version
Excel 2003
Usage notes
Use the SUBTOTAL function to get a subtotal in a list or database. Despite the name,
SUBTOTAL has the ability to perform a variety of math functions, including
AVERAGE, COUNT, MAX, and many others (see table below for the complete list).
By default, SUBTOTAL excludes values in rows hidden by a filter, which makes
SUBTOTAL very useful in Excel Tables.
The SUBTOTAL function automatically ignores other SUBTOTAL formulas that
exist in references to prevent double-counting.
Examples
AVERAGE 1 101
COUNT 2 102
COUNTA 3 103
MAX 4 104
MIN 5 105
PRODUCT 6 106
STDEV 7 107
STDEVP 8 108
SUM 9 109
VAR 10 110
VARP 11 111
Note: SUBTOTAL always ignores values in cells that are hidden with a filter. Values
in rows that have been "filtered out" are never included, regardless of function_num.
SUBTOTAL in Excel Tables
The SUBTOTAL function is used when you display a Total row in an Excel Table.
Excel inserts the SUBTOTAL function automatically, and you can use a drop-down
menu to switch behavior and show max, min, average, etc. The reason Excel uses
SUBTOTAL for calculations in the Total row of an Excel Table is because
SUBTOTAL automatically excludes rows hidden by the filter controls at the top of
the table. That is, as you filter rows in a table with a Total row, you'll see the
calculations update automatically to respect the filter.
SUBTOTAL with outlines
Excel has a Subtotal feature that automatically inserts SUBTOTAL formulas in sorted
data. You can find this feature at Data > Outline > Subtotal. SUBTOTAL formulas
inserted this way use the standard function numbers 1-11. This allows the subtotal
results to remain visible even as rows are hidden and displayed when the outline is
collapsed and expanded.
Note: although the Outline feature is an "easy" way to insert subtotals in a set of
data, a Pivot Table is a better and more flexible way to analyze data. In addition, a
Pivot Table will separate the data from the presentation of the data, which is a best
practice.
Notes
1. Select cell D2, click on the lower right corner of cell D2 and drag it down to cell D5.
Cell D3 references cell B3 and cell C3. Cell D4 references cell B4 and cell C4. Cell D5 references cell B5 and
cell C5. In other words: each cell references its two neighbors on the left.
Absolute Reference
See the formula in cell E3 below.
1. To create an absolute reference to cell H3, place a $ symbol in front of the column letter and row number
($H$3) in the formula of cell E3.
2. Now we can quickly drag this formula to the other cells.
The reference to cell H3 is fixed (when we drag the formula down and across). As a result, the correct lengths
and widths in inches are calculated. Visit our page about absolute reference to learn more about this type of
reference.
Mixed Reference
Sometimes we need a combination of relative and absolute reference (mixed reference).
1. See the formula in cell F2 below.
2. We want to copy this formula to the other cells quickly. Drag cell F2 across one cell, and look at the formula
in cell G2.
Do you see what happens? The reference to the price should be a fixed reference to column B. Solution: place
a $ symbol in front of the column letter ($B2) in the formula of cell F2. In a similar way, when we drag cell F2
down, the reference to the reduction should be a fixed reference to row 6. Solution: place a $ symbol in front
of the row number (B$6) in the formula of cell F2.
Result:
Note: we don't place a $ symbol in front of the row number of $B2 (this way we allow the reference to change
from $B2 (Jeans) to $B3 (Shirts) when we drag the formula down). In a similar way, we don't place a $ symbol
in front of the column letter of B$6 (this way we allow the reference to change from B$6 (Jan) to C$6 (Feb)
and D$6 (Mar) when we drag the formula across).