0% found this document useful (0 votes)
126 views11 pages

Sample Excel Macros and Applications Excel Tutorials: Free Downloads at

LLC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views11 pages

Sample Excel Macros and Applications Excel Tutorials: Free Downloads at

LLC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd

Copyright 2000 John F.

Lacher

http://www.lacher.com

Sample Excel Macros and Applications


Free downloads at: www.lacher.com

Excel Tutorials
In workbook format with examples, practice ideas and short video demonstrations
Each tutorial covers Excel skills needed for specific applications:
Budgeting
Sales Reporting
Data Analysis
Reporting
Financial Statement Presentation
Charting
Pivot Tables

Purchase tutorials: www.lacher.com

Custom Application Development Via the Internet


Excel, Access, Visio, Word, Visual Basic

Add nationally recognized Excel, Access and MS Office Experts to your team -- with strong business
management backgrounds who are also nationally recognized MS Office consultants and authors.

Pay only for the help you need. To have the same level of expertise at your site, you would need to pay large fees fo
recruiting -- or a consultant's travel expenses and daily rate. With On Line Consulting via the Internet, you can recei
attention in small chunks of time, as needed.

Receiving efficient help via the Internet means fewer phone calls and meetings. You can work with the MS Office Ex
schedule, corresponding via E-Mail at any time and from any location.

More information: consulting@lacher.com


trong business
and authors.

ould need to pay large fees for


via the Internet, you can receive expert

an work with the MS Office Expert on your


Start

Copyright 2000 John F. Lacher


CPA Excel Tip and Example
Title: Link Chart to Worksheet Range

Keywords: Chart, PivotTable, Named Range, Link

Description: Demonstration of two methods of linking a chart to a worksheet range. When data
in the range changes, the chart updates automatically.

Tip:
When you create a chart, the source range for the chart will not change as new data
is entered into the worksheet. If you specify a named range as the source for the
chart, the ChartWizard will convert the named range to cell addresses. If later the size
of the named range changes, the chart will not reflect the changes.

You can link a chart to a named range in two ways using Visual Basic for Applications
or a PivotTable.

Guide to the Example:


The sheet "Chart" uses the sheet "Data" as it's input range. If you click on the "Update
Chart" button on the sheet "Data", the ChartWizard method re-sets the Chart's input
range.
The sheet "Chart2" obtains its data from the PivotTable sheet. See the details on the
worksheet "Demonstration"

Page 5
Demonstration

Method 1: Data table in "Data" worksheet is named "Data!Database". Subroutine Updatechart


calls the chart wizard and updates "Chart" to include all of "Data!Database" in source range.
Other chart settings remain the same.

Method 2: Pivot table on worksheet "Pivot" is linked to "Data!Database" . When user selects
refresh pivot table, then all data in "Data!Database" in included in pivot table. "Chart2" is linked
to "PivotTable" so that changes in the table are automatically reflected in chart2. Whenever a
chart's source range is equal to a pivot table's data range, then the chart will automatically
change when the pivot table changes.

With either method, Excel's Data->Form menu option will add new records to the worksheet
"Data" and will automatically expand the range "Data!Database".

Experiment by adding new records, running UpdateChart and refreshing the pivot table.

Page 6
Data

Location Employees Salary


Redmond 600 $15,000
Snoqualmie 15 $375
Seattle 450 $11,250
Tacoma 423 $10,575
North Bend 2 $50
Bellvue 16 $400

Page 7
Chart

$16,000 700

$14,000
600

$12,000
500

$10,000

400

Salary
$8,000
Employees

300

$6,000

200
$4,000

100
$2,000

$0 0
Redmond Snoqualmie Seattle Tacoma North Bend Bellvue

Page 8
PivotTable

Data
Location Sum of Salary Sum of Employees
Bellvue 400000 16
North Bend 50000 2
Redmond 15000000 600
Seattle 11250000 450
Snoqualmie 375000 15
Tacoma 10575000 423

Page 9
Chart2

16000000 700

14000000
600

12000000
500

10000000

400

Sum of Salary
8000000
Sum of Employees

300

6000000

200
4000000

100
2000000

0 0
Bellvue North Bend Redmond Seattle Snoqualmie Tacoma

Page 10
DPCache

Location Employees Salary

Page 11

You might also like