Sample
Sample
Wayne Winston
Special Sales
For information about buying this title in bulk quantities, or for special sales opportunities
(which may include electronic versions; custom cover designs; and content particular to
your business, training goals, marketing focus, or branding interests), please contact our
corporate sales department at [email protected] or (800) 382-3419.
For government sales inquiries, please contact [email protected].
For questions about sales outside the U.S., please contact [email protected].
Education is a powerful force for equity and change in our world. It has the
potential to deliver opportunities that improve lives and enable economic
mobility. As we work with authors to create content for every product and
service, we acknowledge our responsibility to demonstrate inclusivity and
incorporate diverse scholarship so that everyone can achieve their potential
through learning. As the world’s leading learning company, we have a duty
to help drive change and live up to our purpose to help more people create
a better life for themselves and to create a better world.
■■ Our educational products and services are inclusive and represent the
rich diversity of learners.
iii
To Vivian, Jen, and Greg. You are all so great, and I love all of you
so much!
iv
vi Contents at a Glance
ix
x Contents
Contents xi
xii Contents
Contents xiii
xiv Contents
Contents xv
xvi Contents
Contents xvii
xviii Contents
Contents xix
xx Contents
Index 1067
Contents xxi
xxiii
W hether you work for a Fortune 500 corporation, a small company, a government
agency, or a not-for-profit organization, if you’re reading this introduction, the
chances are you use Microsoft Excel in your daily work. Your job probably involves sum-
marizing, reporting, and analyzing data. It might also involve building analytic models to
help your employer increase profits, reduce costs, or manage operations more efficiently.
Since 1999, I’ve taught thousands of analysts at organizations such as Abbott Labs,
Booz Allen Hamilton consulting, Bristol-Myers Squibb, Broadcom, Cisco Systems,
Deloitte Consulting, Drugstore.com, eBay, Eli Lilly, Ford, General Electric, General Motors,
Intel, Microsoft, MGM Hotels, Morgan Stanley, NCR, Owens Corning, Pfizer, Proctor &
Gamble, PWC, Sabre, Schlumberger, Tellabs, 3M, the U.S. Army, the U.S. Department of
Defense, the U.S. Navy, and Verizon how to use Excel more efficiently and productively in
their jobs. Students have often told me that the tools and methods I teach in my classes
have saved them hours of time each week and provided them with new and improved
approaches for analyzing important business problems.
I’ve used the techniques described in this book in my own consulting practice to solve
many business problems. For example, I have used Excel to help the Dallas Mavericks and
New York Knickerbockers NBA basketball teams evaluate referees, players, and lineups.
During the last 20 years, I have also taught Excel business modeling and data analysis
classes to MBA students at Indiana University’s Kelley School of Business, the University
of Houston’s Bauer College of Business, and the Wake Forest Professional MBA Program.
(As proof of my teaching excellence, I have won more than 45 teaching awards and have
won the school’s overall MBA teaching award six times.) Also, I would like to note that
95 percent of MBA students at Indiana University took my spreadsheet modeling class
even though it was an elective.
The book you have in your hands is an attempt to make these successful classes avail-
able to everyone. Here is why I think the book will help you learn how to use Excel more
effectively:
■■ The materials have been tested while teaching thousands of analysts working for
Fortune 500 corporations and government agencies.
■■ The book has also been used to teach thousands of MBA’s at Indiana University,
Wake Forest, and the University of Houston.
■■ Material from the book has been used to teach thousands of accountants Excel
and analytics through Becker’s continuing education for accountants.
xxv
■■ I teach by example, which makes concepts easier to master. These examples are
constructed to have a real-world feel. Many of the examples are based on ques-
tions sent to me by employees of Fortune 500 corporations.
For the most part, I lead you through the approaches I take in Excel to set up and
answer a wide range of data analysis and business questions. You can follow along with
my explanations by referring to the sample worksheets that accompany each example.
However, I have also included template files for the book’s examples on the companion
website, MicrosoftPressStore.com/Excel365data7e/downloads. If you want to, you can use
these templates to work directly with Excel and complete each example on your own.
Generally, the chapters in this book are short and organized around a single concept.
You should be able to master the content of most chapters with at most two hours of
study. By looking at the questions that begin each chapter, you’ll gain an idea about the
types of problems you’ll be able to solve after mastering a chapter’s topics.
In addition to learning about Excel formulas, you will learn some important math in
a painless fashion. For example, you’ll learn about statistics, forecasting, optimization
models, Monte Carlo simulation, inventory modeling, and the mathematics of waiting
in line. You will also learn about some recent developments in business thinking, such as
real options, customer value, and mathematical pricing models.
At the end of each chapter, I’ve provided a group of practice problems (more than
900 in total) that you can work through on your own. Many of these problems are based
on actual situations faced by business analysts at Fortune 500 companies. These prob-
lems will help you fully understand the information in each chapter. Answers to all prob-
lems are included in files you can download from the book’s companion website.
Most of all, learning should be fun. If you read this book, you will learn how to predict
U.S. presidential elections, how to set football point spreads, how to determine the prob-
ability of winning at craps, and how to determine the probability of a specific team win-
ning an NCAA tournament. These examples are interesting and fun, and they also teach
you a lot about solving business problems with Excel.
Note To follow along with all chapters, you must have Office 365. For most
of the book, Excel 2016, 2019, or 2021 should suffice. Previous versions of this
book can be used with Excel 2003, 2007, 2010, and 2013.
xxvi Introduction
■■ Enter a formula You should know that formulas must begin with an equals
sign (=). You should also know the basic mathematical operators. For example,
you should know that an asterisk (*) is used for multiplication, a forward slash (/)
is used for division, and the caret key (^) is used to raise a quantity to a power.
■■ Work with cell references You should know that when you copy a formula that
contains a cell reference such as $A$4 (an absolute cell reference, which is created
by including the dollar signs), the formula still refers to cell A4 in the cells you copy it
to. When you copy a formula that contains a cell reference such as $A4 (a mixed cell
address), the column remains fixed, but the row changes. Finally, when you copy a
formula that contains a cell reference such as A4 (a relative cell reference), both the
row and the column of the cells referenced in the formula change.
■■ You can open the template file that corresponds to the example you are studying
and complete each step of the example as you read the book. You will be sur-
prised how easy this process is and amazed with how much you learn and retain.
This is the approach I use in my corporate classes.
■■ Instead of working in the template files, you can follow my explanations as you
look at the final version of each sample file.
Introduction xxvii
■■ Chapter 25 contains a discussion of issues that arise when you copy formulas
involving table references.
■■ A brand new Chapter 36 covers Office 365’s brand new dynamic array UNIQUE,
SORT, SORTBY, FILTER, and SEQUENCE functions.
■■ Chapter 79 discusses Office 365’s new RANDARRAY function and shows how to
use RANDARRAY to generate a random sample from a data set.
■■ A brand new Chapter 94 discusses Office 365’s Analyze Data feature, which with
a single click gives you insights and ideas about your data.
xxviii Introduction
To work through the examples in this book, you need to copy the book’s sample files
to your computer. These practice files can be downloaded from the book’s download
page, located at
MicrosoftPressStore.com/Excel365data7e/downloads
Display the page in your web browser and follow the instructions for downloading
the files.
Acknowledgments
I am eternally grateful to Jennifer Skoog and Norm Tonina, who had faith in me and
first hired me to teach Excel classes for Microsoft finance. Jennifer, in particular, was
instrumental in helping design the content and style of the classes on which the book is
based. Keith Lange of Eli Lilly, Pat Keating and Doug Hoppe of Cisco Systems, and Dennis
Fuller of the U.S. Army also helped me refine my thoughts on teaching data analysis and
modeling with Excel.
Kate Shoup did an incredible job as Development Editor. David Franson did a
wonderful job technically editing the book. Charvi Aurori did a great job as Sponsoring
Editor. Scout Festa was a thorough copy editor. Senior Production Editor Tracey Croom
assisted me with the Pearson template when I was clueless. As always, Executive Editor
Loretta Yates did a great job shepherding the project to completion and answered many
emails instantly! And finally, the team at codeMantra, lead by Project Manager Vaishnavi
Venkatesan, produced the chapters at breakneck speed, ensuring the book made it into
the hands of readers as soon as possible.
I am also grateful to my many students at the organizations where I’ve taught and
students at the Indiana University Kelley School of Business, Wake Forest, and the Uni-
versity of Houston Bauer College of Business. Many of them have taught me things I did
not know about Excel.
Introduction xxix
Finally, my lovely and talented wife, Vivian, and my wonderful children, Jennifer and
Gregory, put up with my long weekend hours at the keyboard.
MicrosoftPressStore.com/Excel365data7e/errata
If you discover an error that is not already listed, please submit it to us at the same page.
MicrosoftPressStore.com/Support
Please note that product support for Microsoft software and hardware is not offered
through the previous addresses. For help with Microsoft software or hardware, go to
http://support.microsoft.com.
Stay in touch
Let’s keep the conversation going! We’re on Twitter:
http://twitter.com/MicrosoftPress
xxx Introduction
■■ I have a list of distances between US cities. How do I write a function that returns the distance
between, for example, Seattle and Miami?
■■ Is there a way I can write a formula that references the entire column containing the distances
between each city and Seattle?
INDEX(array,row_number,column_number)
To illustrate, the formula =INDEX(A1:D12,2,3) returns the entry in the second row and third column
of the array A1:D12. This entry is the one in cell C2.
The file named INDEX.xlsx (see Figure 4-1) contains the distances between eight US cities. The range
C10:J17, which contains the distances, is named distances.
39
Suppose you want to enter in a cell the distance between Boston and Denver. Because distances from
Boston are listed in the first row of the array named distances, and distances to Denver are listed in the
fourth column of the array, the appropriate formula is =INDEX(distances,1,4). The results show that
Boston and Denver are 1,991 miles apart. Similarly, to find the (much longer) distance between Seattle and
Miami, you would use the formula =INDEX(distances,6,8). Seattle and Miami are 3,389 miles apart.
Imagine that the Seattle Seahawks NFL team is embarking on a road trip during which they will play
games in Phoenix, Los Angeles, Denver, Dallas, and Chicago. At the conclusion of the road trip, the
Seahawks will return to Seattle. Can you easily compute how many miles they will travel on the trip?
As you can see in Figure 4-2, you simply list the numbers in the spreadsheet that correspond with the
cities that the Seahawks will visit (8, 7, 5, 4, 3, 2, 8), one number per row, in the order the cities will be
visited, starting and ending in Seattle. Then, copy the formula INDEX(distances,C21,C22) from D21
to D26. The formula in D21 computes the distance between Seattle and Phoenix (city number 7), the
formula in D22 computes the distance between Phoenix and Los Angeles, and so on. The Seahawks will
travel a total of 7,112 miles on their road trip. (Just for fun, I used the INDEX function to determine that
the Miami Heat travel more miles during the NBA season than any other team.)
The INDEX function makes it easy to reference an entire row or column of an array. If you set the row
number to 0, the INDEX function references the listed column. If you set the column number to 0, the
INDEX function references the listed row in the array. To illustrate, suppose you want to total the dis-
tances from each listed city to Seattle. You could enter either of the following formulas:
=SUM(INDEX(distances,8,0))
=SUM(INDEX(distances,0,8))
The first formula totals the numbers in the eighth row (row 17) of the distances array; the second
formula totals the numbers in the eighth column (column J) of the distances array. In either case, you
find that the total distance from Seattle to the other cities is 15,221 miles. (Refer to Figure 4-1.)
Problems
1. Use the INDEX function to compute the distance between Los Angeles and Phoenix and the
distance between Denver and Miami.
2. Use the INDEX function to compute the total distance from Dallas to the seven other cities
listed in Figure 4-1.
3. Jerry Jones and the Dallas Cowboys are embarking on a road trip that takes them to Chicago,
Denver, Los Angeles, Phoenix, and Seattle. How many miles will they travel on this road trip?
4. The file named Product.xlsx contains monthly sales for six products. Use the INDEX function to
compute the sales of Product 2 in March. Use the INDEX function to compute total sales during
April.
5. The file named NBAdistances.xlsx shows the distance between any pair of NBA arenas. Sup-
pose you begin in Atlanta, visit the arenas in the order listed, and then return to Atlanta. How
far would you travel?
6. Use the INDEX function to solve Problem 10 of Chapter 3, “Lookup functions.” Here is the prob-
lem again: The file named Employees.xlsx contains the rating (on a 0–10 scale) that each of 35
workers has given to three jobs. The file also gives the job to which each worker is assigned.
Use a formula to compute each worker’s ranking for the job to which the worker is assigned.
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
drug distribution problem, 831–834 Edit Default Layout dialog box, 530
drug sales, forecasts for, 792–793 Edit In Formula Bar option (Error Checking dialog box),
Drugfore.xlsx file, 792 174
Drug.xlsx, 1028 Edit Name dialog box, 16, 21
DSUM function, 429–439 Edit Rule dialog box, 259–260
criteria ranges for, 434–435 Edit Scenario dialog box, 204
examples of, 431–437 Edit Series dialog box, 623
overview of, 429–431 editing
problems for, 438–439 array formulas, 452. See also Power Query Editor
syntax of, 430–431 macros, 1033
Duedates.xlsx file, 278 named ranges, 16–17
dummy variables, 706 PivotTables, 509
duplicates, removing in Excel AutoFilter, 424 queries, 334
Durant, Kevin, 776 relationships, 546–547
duration of activity editor, Power Query. See Power Query Editor
call/put options, 955 Einstein, Albert, 111
modeling, 904–905 elasticity of demand, 994
DVDsales.xlsx file, 237 Electiondata.xlsx file, 673
dynamic array functions, 461–471 Electoralvotes.xlsx file, 657
FILTER, 466–468 elements, chart, 609–610
INDIRECT, 465–466 Eli Lilly, Monte Carlo simulation used by, 907
nested drop-down menus, creating, 478–480 email addresses, creating, 62–64
overview of, 461 email lists, creating from list of names, 62–64
PivotTables compared to, 535–536 Emailproblem.xlsx file, 69
problems for, 471 employees, 667–668
SEQUENCE, 469–470 assigning to workgroups, 890–892
SORT, 464–466 dollar amount of merchandise sold by, 218–221
SORTBY, 464–466 highlighting ratings for, 892–893
UNIQUE, 461–464 length of time worked by, calculating, 152–153, 312–313
dynamic chart labels, 620–621, 923 sales by region, subtotals of, 580–581
dynamic ranges, 232–235 scheduling with Microsoft Excel Solver, 825–829
Dynamiclabelstemp.xlsx file, 622 total salary per day, 22
Dynamicrange.xlsx file, 232–235 weekly wages, 1–2, 22
Employees.xlsx file, 37, 41
empty cells, in PivotTables, 501–502
E Enable Iterative Calculation option, 118–120, 134
earnings before interest and taxes (EBIT), 144 engines (Solver)
East sales, extracting from total US sales, 58–60 overview of, 810–811
EASTER function, 1054–1055 Simplex LP, 817–819, 833
Eastwest.xlsx file, 12 entering times, 150
East.xlsx file, 575 EOB (economic order batch) size, 976–977
EBIT (earnings before interest and taxes), 144 EOMONTH function, 81
economic order batch (EOB) size, 976–977 EOMONTHEDATE.xlsx file, 81–82
economic order quantity inventory model. See EOQ EOQ (economic order quantity) inventory model, 973–978
(economic order quantity) inventory model computer-manufacturing plant case study, 976–977
EDATE function, 81 development of, 973
Edit command (Macro dialog box), 1033 economic order batch (EOB) size, 976–977
Edit Comment button, 944 electronics store case study, 973–975
Edit Data option (Sparkline Tools Design), 661 equations for, 973–975
1081
1082
EXP function, 679, 723 federal aid, determining 99th percentile of demand for,
expanding PivotTable fields, 492–493 785–786
experience curve, 683, 684–685 Fermat, Pierre de, 776
experiments, 753, 763 Fibonacci sequence, 9
EXPON.DIST function, 779–780 fields, PivotTable
Exponential command (Format Trendline menu), 666, calculated, 515–517
675–678 collapsing/expanding, 492–493
exponential growth, 675–680 filtering, 495–498
CAGR (compound annual growth rate), 675–678 format of, 491–492
Exponential command, 675–678 PivotTable Fields pane, 487–488
GROWTH function, 679–680 sorting, 493–494
modeling, 676–678 File Conversion dialog box, 316
overview of, 675 File menu commands
predictions based on, 679–680 Copy, 910
problems for, 680 Options, 64, 809
S-curve, 678 Paste Special Values, 910
trend curve parameters for, 678–679 files, 41, 49, 249, 634, 672, 676–678, 961
exponential random variable Accountsums.xlsx, 280
computing probabilities for, 779–780 Adagency.xlsx, 299
problems for, 780 Addresses.xlsx, 145
exponential smoothing, Winters method of Advancedfilter.xlsx, 436
equations for, 860–861 Ageofmachine.xlsx, 69
Forecast Sheet tool, 863–866 Agingdata.xlsx, 236
initialization of, 861 Airlinemilestemp.xlsx, 864
level of series, 860–861 Amazon.xlsx, 279, 281
overview of, 859 Analyzesurveydata.xlsx, 539
problems for, 867 Applynames.xlsx, 20
seasonal index for current month, 860–861 Arrays.xlsx, 447
smoothing constants, estimation of, 862–863 Creating Powers worksheet, 451
time series characteristics, 859–860 Matching Names worksheet, 446
trend of series, 860–861 Total Wages worksheet, 442
Exponentialdata.xlsx file, 680 Transpose worksheet, 444
Exponentialdist.xlsx file, 779 ASCIIcharacters.xlsx, 54
extracting hour/minute/second from times, 152 Asiansales.xlsx, 228
EyeColor.xlsx file, 1028 Assign.xlsx, 35, 890
Asterisks.xlsx, 31
Audittwosheets.xlsx, 178, 181
F Bakery1temp.xlsx, 2–3
F4 key, 5 Bakery2temp.xlsx, 4
Faberu.xlsx file, 550 Bandchart.xlsx, 620
FACTORIAL function, 1056 Bank24.xlsx, 825
Fair, Ray, 710 Barcharts.xlsx, 590
father/son heights, patterns in, 1025–1027 Baseball96.xlsx, 724
Fax.xlsx file, 684 Baseballproblem7.xlsx, 49
FCFs (free cash flows), 130 Baseball.xlsx, 46–47
Feasible Solution worksheet, 813, 820 Betaresampling.xlsx, 951
feasible solutions, 811, 813–819, 820 Beta.xlsx, 904
Febcon.xlsx file, 575 Binomialexamples.xlsx, 770
Binomialsim.xlsx, 919
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
Insert Calculated Field dialog box, 516, 522 development of, 973
Insert Calculated Item dialog box, 521 economic order batch (EOB) size, 976–977
Insert Chart dialog box, 498, 621 electronics store case study, 973–975
Insert Column or Bar Chart button, 586, 587, 588, 591, equations for, 973–975
620, 621, 628, 629 problems for, 977–978
Insert Combo Chart button, 593 with uncertain demand, 979–985
Insert Function dialog box, 560 lost-sales approach, 980–981
Insert Hyperlink dialog box, 167 overview of, 979–980
Insert Line or Area Chart button, 603, 605 service-level approach, 982–985
Insert Pictures dialog box, 588 investment returns, uncertainty in, 925–935
Insert Pie or Doughnut Chart button, 601, 602 asset-allocation modeling, 929–934
Insert PivotTable button, 1021 problems for, 934–935
Insert Scatter (X,Y) or Bubble Chart button, 191, 606, 608, stock price simulation, 926–929
623, 626, 631, 632, 667, 676, 746, 995, 1006
Investment Science (Luenberger), 953, 958, 963
Insert Slicers dialog box, 500, 516
investments
Insert tab
beta, 951
Charts, 644
hedging example, 127–130
Charts section, 191, 586, 593, 603, 604, 608
option pricing, 953–966
Insert Waterfall, Funnel, Stock, Surface, or Radar Chart
abandonment options, 964–965
button, 608, 639
American cash flows, 955
Insig worksheet, 730
American options, 953
installing, Microsoft Excel Solver, 809
Black-Scholes formula, 798, 957–958, 959–961
insurance, portfolio, 126
call/put options, 953, 955–956, 958–959
integer constraint, 827
in decision-making process, 963–964
Integer Optimality settings, 842
European cash flows, 954–955
integer programming problems for, 841–842
European options, 953
interactions, 719–726
exercise date/expiration date, 953
definition of, 719–720
historical volatility, 956–957
problems for, 720–723
parameters for, 955
testing for presence of, 720–723
problems for, 965–966
Interactions.xlsx file
real options, 963–964
Data worksheet, 720
volatility of stock, estimating, 956–957
Nonlinearity worksheet, 719
worksheet protection, 961–963
interarrival time, 988
payback period, 47–48
intercept
returning future value of, 103–105
of straight-line relationship predictions, 672
IPMT (interest payment) function, 106–107
of trendlines, 751
IQs
INTERCEPT function, 671, 672, 679, 687, 751
computing probabilities for, 784–785
interdependence of returns, 931
PDF (probability density function) for, 782–784
interest rate
IRR (internal rate of return), 93–99
calculating with RATE, 108
calculating with IRR function, 94
compound, 111–112
definition of, 93–94
computing with IPMT function, 106–107
for irregularly spaced cash flows, 96
cumulative. See cumulative interest payments
(CUMIPMT) lack of, 94–95
internal rate of return. See IRR (internal rate of return) modified internal rate of return, 97–98
inventory modeling multiple, 94–95
EOQ (economic order quantity) model, 973–978 problems for, 98–99
computer-manufacturing plant case study, 976–977 scale of project and, 95–96
IRR function, 94
1097
K lastyear function, 22
Latitude.xlsx file, 482
Keep Solver Solution option, 819
law of complements, 754
keystroke combinations
law of total probability, 757
Copy command, 2
Lawdata.xlsx file, 951
New Sheet, 166
layouts, PivotTable, 489–490
Paste command, 2
leap years, 74
static dates, 79
learning curve, 683, 684–685
worksheet navigation, 168
least-squares line, 669–670
Kingslineups.docx, 320
LEFT function, 53, 56, 57–58, 59
kurtosis, 381, 920
left-hand lookup, 227–228
Lefthandlookup.xlsx file, 227
L lemonade store case study
break-even analysis, 198–199
labels, chart, 598–600
profit-maximizing price analysis, 184–188
2D filled maps, 645–646
Lemonadegs.xlsx file, 198
category labels, 597–598
Lemonade.xlsx file, 184
creating, 620–621, 923
LEN function, 53, 56, 59, 482
data labels, 598–600
1098
length of time worked by employees, calculating, cumulative. See cumulative interest payments
152–153, 312–313 (CUMIPMT)
Lenora.xlsx file, 56 number of periods, determining, 108–109
less-than sign (<), 782 periodic payments, computing, 105–107
less-than-or-equal-to sign (<=), 782 principal payment, 106–107
LET function, 1050–1051, 1060 location
LETandLAMBDA.xlsx file, 1050 filtering by, 413–415
Let’s Make a Deal problem, 759 sorting data by, 580
Lewent, Judy, 963 Location option (At Each Change In menu), 578
lifetime of machine, modeling Locations data type, 347–348
problems for, 906 Locked option, 962
Weibull random variable, 901–904 locking
WEIBULL.DIST function, 901–904 formulas, 961–963
Lillydata.xlsx file, 459 rows, 4–5
line, waiting in. See queueing theory Logarithmic command (Format Trendline menu), 666
line charts, 603–606 Logarithmic Polynomial (Format Trendline menu), 666
line graphs, creating from tables, 287–289 LOGEST function, 715–718
Line option (Sparkline Tools Design), 661 logistic curve. See S-curves
Linear command (Format Trendline menu), 666 lognormal random variables, 795–798, 956
linear demand curve, 994 definition of, 795
linear models, 818 LOGNORM.DIST function, 797–798
linear pricing, 1011 LOGNORM.INV function, 798
linear relationships, 643–652 mean, 795
accuracy of predictions, 671 modeling future prices of stock as, 796–797
dependent variables, 665–666 problems for, 798
Format Trendline options, 666–667 standard deviation, 795
independent variables, 665–666 stock prices following, 796
intercept of, 672 Lognormal.xlsx file, 797
between monthly production and monthly operating LOGNORM.DIST function, 797–798
costs, 667–670 LOGNORM.INV function, 798
monthly variation in plant-operating costs, 670–671 lookup functions, 25–37
problems for, 672–673 computing day/date with, 83
scatter charts of data points, 666–667 computing tax rates with, 27–29
slope of, 672 definition of, 25
trend curve, 665 HLOOKUP
LINEST function, 702–703 looking up prices from product ID codes with,
Lineupdata.xlsx file, 69 29–30
Lineupsch27temp.docx, 315–320 syntax of, 26
Lineupsch27.txt file, 316 wildcard characters with, 31
lipstick-pricing model, 1005–1010 looking up prices from product ID codes with, 29–30
loans mismatches between text and numbers in, 34
computing, 105–107 problems for, 35–37
dependence on credit score, 115 VLOOKUP
future payments, returning value of, 101–103 computing tax rates with, 27–29
interest rate, 108 syntax of, 25–26
calculating with RATE, 108 wildcard characters with, 31
compound, 111–112 wildcard characters with, 31
computing with IPMT function, 106–107 XLOOKUP
examples of, 31–34
1099
1100
1101
1102
1103
1104
1105
1106
optimal product mix, determining with Solver, 813–823 worksheet protection, 961–963
feasible solutions, 813–820 Optionbuttons.xlsx file, 311
infeasible solutions, 820 Options command (File menu), 64, 809
problems for, 822–823 Options dialog box, 179
“Set values do not converge” message, 821–822 Or Select a Place in This Document option (Insert
“Solver could not find a feasible solution” message, Hyperlink dialog box), 167
820–821 order of operations, 6–7
optimal solutions, 811, 819–820 Original Model worksheet, 303
optimization, 808–809 outliers, 383–384, 671
changing cells Outline group, Subtotal command, 577–581
bank workforce scheduling problem, 826 Output Range option, 735, 739
optimization problems for, 808–809 overbooked flight case study, 772
product-mix problem, 815
software project selection problem, 838
transportation problem, 831 P
with Evolutionary Solver, 889–894 p values, 700, 730
assigning employees to workgroups with, P23_2.xlsx file, 248
890–892 P23_3.xlsx fie, 249
highlighting employee ratings with, 892–893 Page Setup dialog box, 944
options for, 889–890 parent/child relationships, 633
problems for, 893–894 Pareto, Vilfredo, 374
tips for success, 889–894 Pareto charts
with Microsoft Excel Solver, 807–811 creating, 374–375
optimization models, 808–809 design options for, 375
sample optimization problems for, 807–808 Paretotemp.xlsx file, 374
problem constraints, 809 Pascal, Blaise, 776
bank workforce scheduling problem, 826 Paste Link button, 160
product-mix problem, 815 Paste List button, 21
software project selection problem, 838 Paste Name dialog box, 12
transportation problem, 831 Paste Special command, 157–163, 187
target cells operations in, 160–162
bank workforce scheduling problem, 826 overview of, 157
optimization problems for, 808 Paste Link button, 160
product-mix problem, 815 problems for, 163
software project selection problem, 838 transposing rows/columns with, 159–160
transportation problem, 831 values of cells, pasting to different part of worksheet,
Option Button form control, 307 157–159
option pricing, 953–966 Paste Special dialog box
abandonment options, 964–965 Paste Link button, 160
American cash flows, 955 Transpose option, 159–160, 693
Black-Scholes formula, 798, 957–958, 959–961 Values option, 158
call/put options, 953, 955–956, 958–959 Paste Special Divide Before worksheet, 160–161
in decision-making process, 963–964 Paste Special Transpose worksheet, 159
European cash flows, 954–955 Paste Special Value worksheet, 157
European options, 953 Paste Special Values command (File menu), 910
historical volatility, 956–957 Pastespecial.xlsx file, 157
parameters for, 955 Paste Special Divide Before worksheet, 160–161
real options, 963–964 Paste Special Transpose worksheet, 159
volatility of stock, estimating, 956–957 Paste Special Value worksheet, 157
1107
1108
“Please excuse my dear Aunt Sally” (PEMDAS), 6–7 hardware store data
plus sign (+), 58, 303 combining into single file, 334–336
PMT function, 101–107, 188–189, 199 importing and formatting, 331–334
mortgage payments, determining, 845 NBA player statistics, filling and loading into separate
retirement savings, determining, 845 rows, 329–331
verifying accuracy of, 845 overview of, 321–322
point spreads, setting with Solver, 853–857 queries, editing, 334
example of, 854–856 tables, appending, 338–340
nonlinear nature of, 856 Unpivot Columns command, 327
overview of, 853–854 US city population data, importing into Excel,
323–327
problems for, 856–857
PowerPivot, 551–570
points, 937–946
CALCULATE function, 567–570
deleting from charts, 610–611
calculated measures, 567–570
problem of, 776
creating PivotTables with, 557–559
Poisson random variable, 777–778
DAX (Data Analysis Expressions), 560–562
computing probabilities for, 778
importing data into, 552–557
definition of, 777
installing/activating, 552
POISSON.DIST function, 778
problems for, 570
problems for, 777
RELATED function, 562–567
POISSON.DIST function, 778
slicers with, 559–560
Poisson.xlsx file, 778
Powerpivotexample1.xlsx file, 561
poker, five-card draw, probability of three of a kind in,
939–942 PPMT (principal payment) function, 106–107
Poker.xlsx file, 939 PQappendtemp.xlsx file, 338
policy, reorder-point Pqappend.xlsx file, 339
lost-sales approach, 980–981 PQdatatypestemp.xlsx file, 359
overview of, 979–980 PQPROBLEM5DATA.XLSX file, 340
problems for, 985 PQPROBLEM6DATA.XLSX file, 341
service-level approach, 982–985 PQPROBLEM7DATA.XLSX file, 341
Polynomial option (Format Trendline pane), 1006 PQPROBLM4DATA.XLSX file, 340
population data, importing into Excel, 323–327 pre- and post-merger performance, separating in charts,
628–629
portfolio insurance, 126
precedents
positively skewed histograms, 371–372
analyzing with Inquire add-in, 182
posterior probability, 758
definition of, 174
Power command (Format Trendline menu), 666, 684
tracing, 174–175
power curve, 681–688, 994–997
predictions
equation for, 681
accuracy of, 671, 872–876
learning curve and, 684–685
auto sales, 705–710
problems for, 687–688
based on exponential growth, 679–680
properties of, 683
of presidential elections, 710–714
relationships modeled by, 681–683
straight-line relationship, 672
SSE (sum of squared errors), 685
presidential elections, predictions for, 710–714
trend curve parameters for, 686–687
Previous option (Error Checking dialog box), 174
Power Query Editor, 322, 340–341
price bundling, 1012–1014
daily suggested prices, importing and transforming,
336–337 Priceads.xlsx file, 724
Excel tables prices and pricing
creating from flat files, 328–329 Bitcoin prices, importing, 802
flattening, 327–328 demand curve, 993–998
1109
1110
1111
1112
1113
1114
1115
1116
1117
skewness measure, 381, 920 songs longer than average length, 212
skewed left histograms, 372 songs not sung by a particular singer, 212
skewed right histograms, 371–372 songs of minimum length, 212
slash (/), 803 songs of specific length, 213
slicers, table, 292–294, 500–501, 559–560 songs of specific length by specific singer, 213
SLN (straight-line depreciation), 109–110 songs played after a certain date, 213
SLN function, 109–110 songs played before a certain date, 213
slope songs sung by a particular singer, 211
in ratio-to-moving-average forecasting method, 751 songs sung by singers whose last names being with a
of straight-line relationship predictions, 672 certain letter, 212
of trendlines, 751 songs sung by singers whose last names contain x
letters, 213
SLOPE function, 671, 672, 679, 687, 751, 752
Sort dialog box. See sorting
slugging percentage (SLG), 725
SORT function, 464–466, 479, 480. See also sorting
SMALL function, 47, 386
Sort Warning dialog box, 405
smoothing, Winters method of
Sortandsortby.xlsx file, 465
equations for, 860–861
SORTBY function, 464–466, 916
Forecast Sheet tool, 863–866
Sortday.xlsx file, 409
initialization of, 861
sorted data, charts based on, 627–628
level of series, 860–861
Sortedgraph.xlsx file, 627
overview of, 859
Sorticons.xlsx file, 409
problems for, 867
sorting
seasonal index for current month, 860–861
across columns, 407–408
smoothing constants, estimation of, 861
on a cell or font color, 401–402
time series characteristics, 859–860
by city, 405–407
trend of series, 860–861
dynamic array functions for, 464–466
software project selection problem
on icon sets, 402–403
additional constraints in, 840–841
by lowercase/uppercase, 408–409
example of, 837–840
months in chronological order, 403–404
solution engines, Microsoft Excel Solver, 810–811
PivotTable fields, 493–494
Solver. See Microsoft Excel Solver
problems for, 409
“Solver could not find a feasible solution” message,
820–821 with Quick Access toolbar, 425–427
Solver Parameters dialog box, 809, 826–827, 842, 848, sales-transaction data, 398–401
849, 855–856, 872, 889–890, 891, 933, 983–985, without Sort dialog box, 405
1000–1001, 1007–1008, 1017–1018 South sales, extracting from total US sales, 58–60
Changing Cells option, 896 Space data type, 351
By Changing Variable Cells, 816, 820, 821, 839 spaces, sample, 753
Evolutionary Solver, 889–890 spaces.xlsx file, 247
Ignore Integer Constraints, 898 Sparkline Color option (Sparkline Tools Design), 661
Make Unconstrained Variables Non-Negative, 817, Sparkline Date Range dialog box, 662
821, 833
Sparkline Tools Design tab, 661
Select a Solving Method list, 840
sparklines, 659–664
Set Objective, 816, 821, 839, 896, 897
automatically updating, 663–664
Solve, 821, 833
daily customer counts, 659–660
Subject to the Constraints, 821
modifying, 661–662
songs played on radio, counting, 209–215
overview of, 659
blank cells in ranges, 214
problems for, 664
function syntax for, 209–211
win/loss, 662–663
nonblank cells in ranges, 214
1118
1119
Stock.xlsx file, 373, 376, 383, 393 sales by each salesperson, 580–581
Stop If True option, 275–277 with Subtotal command, 577–581
Stop Recording button, 1033, 1038, 1044, 1046, 1047 with SUBTOTAL function, 582–583
Store Macro In option, 1033 Subtract option (Paste Special), 162
Storesales.txt file, 552 subtraction, with Paste Special command, 162
storing, 620–621, 923 Suggestion1 worksheet, 1021, 1027
story problems for, Goal Seek for, 199–200 SUM function, 3, 137, 242, 573, 578, 871, 891, 897
straight-line depreciation (SLN), 109–110 sum of squared errors (SSE), 670, 685
straight-line relationships, 643–652 SUMIF function, 218
accuracy of predictions, 671 copying across columns, 297
dependent variables, 665–666 examples of, 218–220
Format Trendline options, 666–667 syntax of, 218
independent variables, 665–666 Sumifrows.xlsx file, 222
intercept of, 672 SUMIFS function, 449, 480
between monthly production and monthly operating Sumindirect.xlsx file, 240
costs, 667–670 summaries of workbooks, 244–245
monthly variation in plant-operating costs, 670–671 summarizing data
problems for, 672–673 3D maps as 2D charts, 654
R-squared value, 671 database statistical functions, 429–439
scatter charts of data points, 666–667 criteria ranges for, 434–435
slope of, 672 examples of, 431–437
trend curve, 665 overview of, 429–431
strings problems for, 431–437
converting to times, 152 descriptive statistics, 377–395
extracting product ID, price, and product description boxplots, 389–393
from, 56–58
comparing data sets with, 384–385
matching with MATCH function, 43–50
geometric mean, 388–389
investment payback period, 47–48
kurtosis, 381
MLB player salaries, returning, 46–47
mean and standard deviation, 379, 382–384
problems for, 44, 49–50
mode, 380–381
product sales per month, 45–46
outliers, conditional formatting for, 383–384
syntax of, 43–45
overview of, 377–378
two-way lookups, 46
percentile rankings, 385–386
structured references, 294–295
problems for, 393–395
Subject to the Constraints list (Solver Parameters dialog
range, 381–382, 388
box), 821
ranking numbers in, 387
subjectively determined demand, 1005–1010
sample standard deviation, 381–382
equation for, 1005
sample variance, 381–382
example of, 1006–1008
second-largest or second-smallest numbers,
problems for, 1006–1008, 1009–1010
386–387
SUBSTITUTE function, 55, 61
skewness measure, 381
Subtotal dialog box, 577–581
trimmed mean, 387–388
SUBTOTAL function, 582–583
typical value for data set, 378–381
subtotals, 577–583
histograms
hiding in PivotTables, 501–502
comparing, 373–374
need for, 577
creating, 363–371
nesting, 580–581
multiple-peak, 372–373
problems for, 583
overview of, 363
revenue and units sold by region, 577–580
problems for, 376
1120
1121
1122
1123
1124
1125
1126
1127
1128