e x c e l learning pro - cfo pro 2012_11_12.pdf · to cfo and a microsoft mvp—a distinction held...

4
CFO EXCEL PRO | NOVEMBER 2012 • CFO.COM A Subtle Formatting Tip Page 1 Unapply a Filter Using DAX Page 3 Keep Up With Your Payments Page 4 Excel for Budgeting and Forecasting Excel's VLOOKUP Function: Learn, Design, Troubleshoot Excel Fundamentals ______________ Bill Jelen As a regular contributor to CFO and a Microsoft MVP—a distinction held by only 3,000 professionals worldwide—Bill “MrExcel” Jelen is CFO Excel Pro’s Edi- tor-at-Large and chief writer. He has authored 33 books on Excel, is an internation- ally renowned consultant and trainer, and is host of MrExcel.com IN THIS ISSUE CFO WEBCASTS: On Demand A Subtle Formatting Tip Use rogue series for shading LEARNING PRO EXCEL TRAINING FOR FINANCE PROFESSIONALS Volume 1 No. 43 November 12, 2012 Excel Edition 1 SOLUTION: Use four series as stacked area charts. To use this method, you need to take control of the vertical axis. Format the vertical axis. Figure out the minimum, maxi- mum, and major unit that you will be using. Make sure the scale won’t change (Figure 2). 1 Go back to the original data. Insert a new series for each gridline. These series will be stacked. The first series of 200 will run from 0 to 200. The sec- ond series of 200 will be on top of series 1 and will run from 200 to 400. Have your Sales series be the last series (Figure 3, page 2). 2 Choose Insert, Area, Stack- ed Area chart. Don’t worry that the initial chart looks com- pletely wrong (Figure 4, page 2). 3 Select the Sales series. Use Design, Change Chart Type. Change it to a Line chart. 4 Format the vertical axis. Go to the settings in Figure 5, page 2. USER PROBLEM: I want to shade the areas between the gridlines in this chart (Figure 1). Fig. 1 Fig. 2 5 Click on one of the gridlines to select all the gridlines. Press Delete. 6 Select series One. Use For- mat, Shape Fill and choose a light color. 7 Repeat step 6 for the remain- ing area series, choosing al- ternating dark and light colors. At this point, the effect is complete, but the legend is giv- ing away your secret. You can delete individual entries in the legend (Figure 5, page 2). 8 Click once on the legend to select it. continued on page 2

Upload: dinhthu

Post on 31-Mar-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

C F O E X C E L P R O | N O V E M B E R 2 0 1 2 • C F O . C O M

A Subtle Formatting Tip

Page 1

Unapply a Filter Using DAX Page 3

Keep Up With Your Payments Page 4

Excel for Budgeting and Forecasting

Excel's VLOOKUP Function: Learn, Design, Troubleshoot

Excel Fundamentals

______________

Bill Jelen As a regular contributor to CFO and a Microsoft MVP—a distinction held by only 3,000 professionals worldwide—Bill “MrExcel” Jelen is CFO Excel Pro’s Edi-tor-at-Large and chief writer. He has authored 33 books on Excel, is an internation- ally renowned consultant and trainer, and is host of MrExcel.com

IN THIS ISSUE

CFO WEBCASTS: On Demand

A Subtle Formatting TipUse rogue series for shading

LEARNING PROE X C E L T R A I N I N G F O R F I N A N C E P R O F E S S I O N A L S

Volume 1 No. 43

November 12, 2012

Excel Edition

1

SOLUTION: Use four series as stacked area charts.

To use this method, you need to take control of the vertical axis. Format the vertical axis. Figure out the minimum, maxi-mum, and major unit that you will be using. Make sure the scale won’t change (Figure 2).

1Go back to the original data. Insert a new series for each

gridline. These series will be stacked. The first series of 200 will run from 0 to 200. The sec-ond series of 200 will be on top of series 1 and will run from 200 to 400. Have your Sales series be the last series (Figure 3, page 2).

2 Choose Insert, Area, Stack-ed Area chart. Don’t worry

that the initial chart looks com-pletely wrong (Figure 4, page 2).

3 Select the Sales series. Use Design, Change Chart Type.

Change it to a Line chart.

4Format the vertical axis. Go to the settings in Figure 5,

page 2.

USER PROBLEM: I want to shade the areas between the gridlines in this chart (Figure 1).

Fig. 1

Fig. 2

5Click on one of the gridlines to select all the gridlines.

Press Delete.

6Select series One. Use For-mat, Shape Fill and choose

a light color.

7Repeat step 6 for the remain-ing area series, choosing al-

ternating dark and light colors.

At this point, the effect is complete, but the legend is giv-ing away your secret. You can delete individual entries in the legend (Figure 5, page 2).

8 Click once on the legend to select it.

continued on page 2

C F O E X C E L P R O | N O V E M B E R 2 0 1 2 • C F O . C O M

LEARNING PROcharts where extra rogue se-ries are used to create some formatting (Figure 6).

2

Fig. 4

9Click a second time on Four to select the one legend entry.

continued from page 1

This special offer for an annual membership to CFO Learning's Excel training and education library provides you with unlimited access to our library of

finance-focused Excel Webcast programs and content at a 65% savings.

Price Per Person: $995 Click here to learn more

Register today for our

Excel® Training Library

10 Press Delete. That one entry in the legend is

deleted.11Repeat steps 8-10 for se-

ries Three, Two, and One.There are a number of special

ROGUE CHART EXAMPLES

Mario Garcia’s amazing five rogue charts in order

from Learn Excel Podcast #1026.

Fig. 3

Fig. 5

Fig. 5

Fig. 6

Jon Peltier charting tutorials here.

Andy Pope charting tutorials here.

C F O E X C E L P R O | N O V E M B E R 2 0 1 2 • C F O . C O M

LEARNING PRO

Unapply a Filter Using DAXContrast SUMIFS and CALCULATE.

ANSWER: With SUMIFS, you go through a data set, find-ing rows that match all of the criteria.

With Calculate, you go through a data set, calculating values that match the filters in calculate. BUT... you also have an external outside force that is forcing other filters to be ap-plied. Those filters might be coming from the slicers or even from the row and column la-bels. When PowerPivot goes about calculating cell F4 in Figure 1, it has to respect the weekday=Saturday in the cal-culate function, but it also has to respect Month=Jan caused by the row label in D4 and Year=2016 caused by the slicer.

Ready for something amaz-ing? The filters in calculate have the power to tell the exter- nal outside force to not apply a certain filter. If that formula up in F4 used a filter of Month =”Feb”, the filter in the Calculate formula would override the fil-ter from the row label in D4. Let me show you an example.

Consider Figure 1.Column E, Sum of Reve-

nue is a regular old field where I took the Revenue field from the field list and put it in the values drop zone. Column E respects the filters in the slicer and the filters of the row labels in column D.

Column F is a DAX Measure where I used CALCULATE to override the filter on sector.

No matter what label is over in column D, the DAX measure in column F will filter sector to Apparel. Column F still contin-ues to respect the month slicer, though. The formula for the measure in F is =CALCULATE(SUM(Sales[Revenue]),Sector[Sector]=”Apparel”)

Column G is a DAX Mea-sure where I wiped out the Sector filter by using ALL. Ev-ery row in column G is going to show the total for all sec-tors, even though the row la-bel in D5 says that this row is for Appliance. The formula for the measure in G is =CALCULATE(SUM(Sales[Revenu

e]),All(Sector)). Note that this formula still respects the filter applied in the month slicer.

Column H is the actual useful field. It takes the rev-enue for this sector and di-vides it by the revenue for the Apparel sector. The formu-la here re-uses the existing DAX measure from column F: =sum(Sales[Revenue])/Sales [ApparelSector]. Of course, this formula still respects the month filter applied from the slicer.

As you change the filters other than sector, all of the formulas update (Figure 2). Here is the same pivot table fil-tered to June, July, and August.

QUESTION: What's the difference between Sumifs and Calculate?

Fig. 1

Fig. 2

Click Here to learn

more

Find an Excel Power

User Boot Camp

in a city near you

Sign up now and save $200.

3

C F O E X C E L P R O | N O V E M B E R 2 0 1 2 • C F O . C O M

LEARNING PRO

4

Subscribe now to CFO Excel Pro:

n 52 weeks of Excel solutions and tipsn Chance to have your question answered by Bill Jelen on the CFO.com Excel Pro editorial page (e-mail questions to: [email protected]) n 10% discount on any other CFO paid product purchasesn Alerts from CFO editors when new articles, blogs and Q&A are posted.

Click here to subscribe

CFO Learning Pro 6 West 48th Street New York, NY 10036 © 2012 CFO Acquisitions, LLC.

All rights reserved. CFO Excel Pro is published weekly by CFO Acquisitions, LLC, and is not endorsed by, sponsored by or affiliated with Microsoft Corporation. Excel® and Microsoft® are registered trademarks of Microsoft Corporation.

For customer service inquiries, please email [email protected] or call (888) 250-5719.

Publisher Rob Stuart

sVP, Product deVeloPment Richard Rivera

editor Marie Leone

editor-at-large Bill Jelen

executiVe art director Robert Lesser

art director Louisa McCabe

editorial intern Mackenzie Murphy

CFO Learning Pro SM is brought to you by CFO Magazine.

LEARNING PROKeep Up With Your PaymentsCreate an amortization table

SOLUTION: You can use PPMT and IPMT to build this amorti-zation table. Here’s how:

1In a blank section of the worksheet, add the column

headings Payment, Date, Prin-cipal, Interest, and Balance.

2Ensure that the formula for Balance in the first row

points to the price in B1.

3In the next row of the table, enter the number 1 for Pay-

ment. Ctrl+drag the fill handle to fill in the proper number of payments.

4Enter the first payment date for the Date. Right-

click+drag the fill handle to the last row. When you release the mouse button, choose Fill Months.

5Enter the PPMT func-tion, using the proper ab-

solute references, so that you can copy the function to col-umn D to be used for IPMT. The syntax is =PPMT(rate, per, nper, pv, [fv], [type]). The only difference from the PMT function is the addition of the period number as the second argument. In C8, type =PPMT(. The rate is B3/12, but after clicking on B3, press the F4 key to add the dollar signs. Type /12 and a comma. Click on the first payment number. Press the F4 key three times so that a dollar sign appears before the column number. Type a comma. Click on the

USER PROBLEM: I know it is easy to figure out a monthly payment using PMT. I would like to see my loan balance after each month’s payment. How can I build an amortization table?

Term in B2 and press F4. Type a comma. Type a minus sign and click on the price in B1. Press F4 and type the closing parenthesis. The whole for-mula is =PPMT ($B$3/12, $A8,$B$2,-$B$1) (Figure 1).

6Copy this formula to the Interest Payment column.

Edit the formula and change PPMT to IPMT. Use the F2 key or double click the cell in order to edit the formula. Al-ternatively, select the cell. Use the mouse to select the first P in PPMT in the formula bar. Type an I to change to IPMT.

7For the Balance formula, use the previous balance

minus this month’s principal payment.

8Select the three cells that con-tain the principal, interest,

and balance calculations. Dou-ble-click the fill handle to copy the formulas for all months.ADDITIONAL DETAILS: To test that the table is correct, scroll to the last row. You should see that the balance reaches zero with the last pay-ment (Figure 2).ALTERNATE STRATEGY: Any-time you have to enter the num-bers 1 to nn for a formula, there is a cool alternative. Instead of put-ting the formulas in the work-sheet, use ROW(A1) where the 1 needs to go (Figure 3). When you copy the formula down, it will change to ROW(A2) which will return a 2, and so on.

To Watch Bill's

“Make An Amortization

Table” video click

hereFig. 1

Fig. 2

Fig. 3