cover.eps

Excel® Dashboards and Reports, 2nd Edition

Table of Contents

Introduction
What You Need to Know
What You Need to Have
Conventions in This Book
Keyboard conventions
Mouse conventions
What the icons mean
How This Book Is Organized
Part I: Getting Started with Excel Dashboards
Part II: Introducing Charts into Your Dashboards
Part III: Advanced Dashboarding Concepts
Part IV: Pivot Table Driven Dashboards
Part V: Working with the Outside World
About the Companion Website
About the Power Utility Pak Offer
Reach Out
Part I: Getting Started with Excel Dashboards
Chapter 1: Introducing Dashboards
What Are Dashboards and Reports?
Defining reports
Defining dashboards
Establish the User Requirements
Define the message(s)
Establish the audience
Define the performance measures
List the required data sources
Define the dimensions and filters
Determine the need for drill-down details
Establish the update schedule
A Quick Look at Dashboard Design Principles
Rule number 1: Keep it simple
Use layout and placement to draw focus
Format numbers effectively
Use titles and labels effectively
Key Questions to Ask Before Distributing Your Dashboard
Does my dashboard present the right information?
Does everything on my dashboard have a purpose?
Does my dashboard prominently display the key message?
Can I maintain this dashboard?
Does my dashboard clearly display its scope and shelf life?
Is my dashboard well documented?
Is my dashboard user-friendly?
Is my dashboard accurate?
Chapter 2: Table Design Best Practices
Table Design Principles
Use colors sparingly
De-emphasize borders
Use effective number formatting
Subdue your labels and headers
Enhancing Reporting with Custom Number Formatting
Number formatting basics
Formatting numbers in thousands and millions
Hiding and suppressing zeros
Applying custom format colors
Formatting dates and times
Adding conditions to customer number formatting
Chapter 3: Using Excel Sparklines
Understanding Sparklines
Applying Sparklines
Creating Sparklines
Customizing Sparklines
Sizing and merging sparkline cells
Handling hidden or missing data
Changing the sparkline type
Changing sparkline colors and line width
Using color to emphasize key data points
Adjusting sparkline axis scaling
Faking a reference line
Specifying a date axis
Auto-updating sparkline ranges
Chapter 4: Chartless Visualization Techniques
Enhancing Reports with Conditional Formatting
Applying basic conditional formatting
Adding your own formatting rules manually
Show only one icon
Show Data Bars and icons outside of cells
Representing trends with icon sets
Using Symbols to Enhance Reporting
Using Excel’s Camera Tool
Finding the Camera tool
Using the Camera tool
Enhancing a dashboard with the Camera tool
Part II: Introducing Charts into Your Dashboards
Chapter 5: Excel Charting for the Uninitiated
What Is a Chart?
How Excel Handles Charts
Embedded charts
Chart sheets
Parts of a Chart
Basic Steps for Creating a Chart
Creating the chart
Switching the row and column orientation
Changing the chart type
Applying chart styles
Applying a chart style
Adding and deleting chart elements
Moving and deleting chart elements
Formatting chart elements
Working with Charts
Moving and resizing a chart
Converting an embedded chart to a chart sheet
Copying a chart
Deleting a chart
Copying a chart’s formatting
Renaming a chart
Printing charts
Chapter 6: Working with Chart Series
Specifying the Data for Your Chart
Adding a New Series to a Chart
Adding a new series by copying a range
Adding a new series by extending the range highlight
Adding a new series using the Select Data Source dialog box
Adding a new series by typing a new SERIES formula
Deleting a Chart Series
Modifying the Data Range for a Chart Series
Using range highlighting to change series data
Using the Select Data Source dialog box to change series data
Editing the SERIES formula to change series data
Understanding Series Names
Changing a series name
Deleting a series name
Adjusting the Series Plot Order
Charting a Noncontiguous Range
Using Series on Different Sheets
Handling Missing Data
Controlling a Data Series by Hiding Data
Unlinking a Chart Series from Its Data Range
Converting a chart to a picture
Converting a range reference to arrays
Working with Multiple Axes
Creating a secondary value axis
Creating a chart with four axes
Chapter 7: Formatting and Customizing Charts
Chart Formatting Overview
Selecting chart elements
Common chart elements
UI choices for formatting
Adjusting Fills and Borders: General Procedures
About the Fill tab
Formatting borders
Formatting Chart Background Elements
Working with the chart area
Working with the plot area
Formatting Chart Series
Basic series formatting
Using pictures and graphics for series formatting
Additional series options
Working with Chart Titles
Adding titles to a chart
Changing title text
Formatting title text
Linking title text to a cell
Working with a Chart’s Legend
Adding or removing a legend
Moving or resizing a legend
Formatting a legend
Changing the legend text
Deleting a legend entry
Identifying series without using a legend
Working with Chart Axes
Value axis versus category axis
Value axis scales
Using time-scale axes
Creating a multiline category axis
Removing axes
Axis number formats
Working with Gridlines
Adding or removing gridlines
Working with Data Labels
Adding or removing data labels
Editing data labels
Problems and limitations with data labels
Working with a Chart Data Table
Adding and removing a data table
Problems and limitations with data tables
Chapter 8: Components That Show Trending
Trending Dos and Don’ts
Using chart types appropriate for trending
Starting the vertical scale at zero
Leveraging Excel’s logarithmic scale
Applying creative label management
Comparative Trending
Creating side-by-side time comparisons
Creating stacked time comparisons
Trending with a secondary axis
Emphasizing Periods of Time
Formatting specific periods
Using dividers to mark significant events
Representing forecasts in your trending components
Other Trending Techniques
Avoiding overload with directional trending
Smoothing data
Chapter 9: Components That Group Data
Listing Top and Bottom Values
Organizing source data
Using pivot tables to get top and bottom views
Using Histograms to Track Relationships and Frequency
Adding formulas to group data
Adding a cumulative percent
Using a pivot table to create a histogram
Emphasizing Top Values in Charts
CHapter 10: Components That Show Performance Against a Target
Showing Performance with Variances
Showing Performance Against Organizational Trends
Using a Thermometer-Style Chart
Using a Bullet Graph
Creating a bullet graph
Adding data to your bullet graph
Final thoughts on formatting bullet graphs
Showing Performance Against a Target Range
Part III: Advanced Dashboarding Concepts
Chapter 11: Developing Your Data Model
Building a Data Model
Separating the data, analysis, and presentation layers
Data Model Best Practices
Avoid storing excess data
Use tabs to document and organize your data model
Test your data model before building presentation components
Excel Functions for Your Data Model
Understanding lookup tables
The VLOOKUP function
The HLookup function
The SUMPRODUCT function
The Choose function
Working with Excel Tables
Converting a range to an Excel table
Converting an Excel table back to a range
Chapter 12: Adding Interactive Controls to Your Dashboard
Getting Started with Form Controls
Finding Form controls
Adding a control to a worksheet
Using the Button Control
Using the Check Box Control
Check box example: Toggling a chart series on and off
Using the Option Button Control
Option button example: Showing many views through one chart
Using the Combo Box Control
Combo box example: Changing chart data with a drop-down selector
Using the List Box Control
List box example: Controlling multiple charts with one selector
Chapter 13: Macro-Charged Reporting
Why Use a Macro?
Recording Your First Macro
Running your macros
Assigning a macro to a button
Enabling Macros in Excel 2013
Viewing the new Excel security message
Setting up trusted locations
Excel Macro Examples
Building navigation buttons
Dynamically rearranging pivot table data
Offering one-touch reporting options
Part IV: Pivot Table Driven Dashboards
Chapter 14: Using Pivot Tables
Introducing the Pivot Table
Anatomy of a pivot table
Creating the basic pivot table
Customizing Your Pivot Table
Changing the pivot table layout
Renaming the fields
Formatting numbers
Changing summary calculations
Suppressing subtotals
Removing all subtotals at one time
Removing the subtotals for only one field
Removing grand totals
Hiding and showing data items
Hiding or showing items without data
Sorting your pivot table
Examples of Filtering Your Data
Producing top and bottom views
Creating views by month, quarter, and year
Creating a percent distribution view
Creating a YTD totals view
Creating a month-over-month variance view
Chapter 15: Using Pivot Charts
Getting Started with Pivot Charts
Creating a pivot chart
Understanding the link between pivot charts and pivot tables
Limitations of pivot charts
Using conditional formatting with pivot tables
Customizing conditional formatting
Alternatives to Pivot Charts
Disconnecting charts from pivot tables
Create standalone charts that are connected to your pivot table
Chapter 16: Adding Interactivity with Slicers
Understanding Slicers
Creating a Standard Slicer
Formatting slicers
Controlling multiple pivot tables
Creating a Timeline Slicer
Using Slicers as Form Controls
Chapter 17: Using the Internal Data Model and Power View
Understanding the Internal Data Model
Building out your first data model
Using your Data Model in a pivot table
Using external data sources in your internal Data Model
Creating a Power View Dashboard
Creating and working with Power View charts
Visualizing data in a Power View map
Changing the look of your Power View dashboard
Part V: Working with the Outside World
Chapter 18: Integrating External Data into Excel Reporting
Importing Data from Microsoft Access
The drag-and-drop method
The Microsoft Access Export Wizard
The Get External Data icon
Importing Data from SQL Server
Passing Your Own SQL Statements to External Databases
Manually editing SQL statements
Running stored procedures from Excel
Using VBA to create dynamic connections
Chapter 19: Sharing Your Work with the Outside World
Securing Your Dashboards and Reports
Securing access to the entire workbook
Limiting access to specific worksheet ranges
Protecting the workbook structure
Linking Your Excel Dashboards to PowerPoint
Creating the link between Excel and PowerPoint
Manually updating links to capture updates
Automatically updating links
Distributing Your Dashboards via a PDF
Distributing Your Dashboards to SkyDrive
Limitations when publishing to the web

Excel® Dashboards and Reports, 2nd Edition

by Michael Alexander and John Walkenbach

About the Authors

Mike Alexander is a Microsoft Certified Application Developer (MCAD) and author of several books on advanced business analysis using Microsoft Access and Excel. He has more than 15 years experience consulting and developing Microsoft Office solutions. Michael has been named a Microsoft MVP for his ongoing contributions to the Excel community. In his spare time he runs a free tutorial site, www.datapigtechnologies.com, where he shares basic Access and Excel tips with the Office community.

John Walkenbach is a bestselling Excel author who has published more than 50 books on spreadsheets. He lives amid the saguaros, javelinas, rattlesnakes, bobcats, and gila monsters in southern Arizona — but the critters are mostly scared away by his clawhammer banjo playing. For more information, Google him.

Dedication

This is dedicated to the fans of DataPigTechnologies.com . . . all twelve of you.

Michael Alexander

Author’s Acknowledgments

My deepest thanks to Katie Mohr and Pat O’Brien, for all the hours of work put into making this book as clear as it can be. Thanks also to the brilliant team of professionals who helped bring this book to fruition. Finally, a special thank you goes to my family for putting up with all the time spent away on this project.

Michael Alexander

Publisher’s Acknowledgments

We’re proud of this book; please send us your comments at http://dummies.custhelp.com. For other comments, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.

Some of the people who helped bring this book to market include the following:

Acquisitions, Editorial, and Vertical Websites

Sr. Project Editor: Pat O’Brien

Acquisitions Editor: Katie Mohr

Copy Editor: Melba Hoppper

Technical Editor: Doug Steele

Editorial Manager: Kevin Kirschner

Vertical Websites Project Manager: Laura Moss-Hollister

Editorial Assistant: Annie Sullivan

Sr. Editorial Assistant: Cherie Case

Composition Services

Project Coordinator: Katie Crocker

Layout and Graphics: Jennifer Goldsmith, Christin Swinford, Erin Zeltner

Proofreaders: ConText Editorial Services, Inc., Susan Moritz

Indexer: Ty Koontz

Publishing and Editorial for Technology Dummies

Richard Swadley, Vice President and Executive Group Publisher

Andy Cummings, Vice President and Publisher

Mary Bednarek, Executive Acquisitions Director

Mary C. Corder, Editorial Director

Publishing for Consumer Dummies

Kathleen Nebenhaus, Vice President and Executive Publisher

Composition Services

Debbie Stailey, Director of Composition Services

Introduction

Business intelligence (BI) is what you get when you analyze raw data and turn that information into actionable knowledge. BI can help an organization identify cost-cutting opportunities, uncover new business opportunities, recognize changing business environments, identify data anomalies, and create widely accessible reports.

The BI concept is overtaking corporate executives who are eager to turn impossible amounts of data into useful knowledge. As a result of this trend, software vendors who focus on BI and build dashboards are coming out of the woodwork. Dashboards are ideal mechanisms for delivering this targeted information in a graphical, user-friendly form. New consulting firms touting their BI knowledge are popping up virtually every week. And even the traditional enterprise solution providers like Business Objects and SAP are offering new BI capabilities presented in a dashboard format.

So maybe you’ve been hit with dashboard fever? Or maybe you’re holding this book because someone is asking you to create BI solutions (that is, create a dashboard) in Excel.

Although many IT managers would scoff at the thought of using Excel as a BI tool to create a dashboard, Excel is inherently part of the enterprise-BI-tool portfolio. Whether IT managers are keen to acknowledge it or not, most of the data analysis and reporting done in business today is done by using a spreadsheet program. We see several significant reasons to use Excel as the platform for your dashboards and reports. They are as follows:

Familiarity with Excel: If you work in corporate America, you’re conversant in the language of Excel. You can send even the most seasoned senior vice-president an Excel-based presentation and trust he’ll know what to do with it. With an Excel dashboard, your users spend less time figuring how to use the tool and more time viewing the data.

Built-in flexibility: With most enterprise dashboards, the ability to analyze the data outside of the predefined views is either disabled or unavailable. In Excel, features such as pivot tables, drop-down lists, and other interactive controls (such as a check box) don’t lock your audience into one view. And because an Excel workbook contains multiple worksheets, the users have space to add their own data analysis as needed.

Rapid development: Using Excel to build your own dashboards can liberate you from assorted resource and time limitations from within an organization. With Excel, you can develop dashboards faster and adapt more quickly to changing business requirements.

Powerful data connectivity and automation capabilities: Excel is not the toy application some IT managers make it out to be. With its own native programming language and its robust object model, Excel can help to automate certain processes and even connect with various data sources. With a few advanced techniques, your dashboard can practically run on its own.

Little to no incremental costs: Not all of us can work for multi-billion dollar companies that can afford enterprise-level reporting solutions. In most companies, funding for new computers and servers is limited, let alone funding for expensive dashboard software packages. For those companies, Excel is frankly the most cost-effective way to deliver key business reporting tools without compromising too deeply on usability and function.

Excel contains so many functions and features that it’s difficult to know where to start. Enter your humble authors, spirited into your hands via this book. Here we show you how you can turn Excel into your own personal BI tool. With a few fundamentals and some of the new BI functionality Microsoft has included in this latest version of Excel, you can go from reporting data with simple tables to creating meaningful dashboards sure to wow everyone.

What You Need to Know

The goal of this book is to show you how to leverage Excel functionality to build and manage better presentations. Each chapter in this book provides a comprehensive review of Excel functions and features, and the analytical concepts that will help you create better reporting components — components that can be used for both dashboards and reports. As you move through this book, you’ll be able to create increasingly sophisticated components.

After reading this book, you’ll be able to:

Analyze large amounts of data and report those results in a meaningful way.

Get better visibility into data from different perspectives.

Add interactive controls to show various views.

Automate repetitive tasks and processes.

Create eye-catching visualizations.

Create impressive dashboards and What-If analyses.

Access external data sources to expand your message.

What You Need to Have

In order to get the most out of this book, it’s best that you have certain skills before diving into the topics highlighted in this book. The ideal candidate for this book will have the following:

Some experience working with data and familiarity with the basic concepts of data analysis such as working with tables, aggregating data, and performing calculations

Experience using Excel with a strong grasp of concepts such as table structures, filtering, sorting, and using formulas

Conventions in This Book

Take a minute to skim this section and become familiar with some of the typographic conventions used throughout this book.

Keyboard conventions

You need to use the keyboard to enter formulas. In addition, you can work with menus and dialog boxes directly from the keyboard — a method you may find easier if your hands are already positioned over the keys.

Formula listings

Formulas usually appear on a separate line in monospace font. For example, we may list the following formula:

=VLOOKUP(StockNumber,PriceList,2,False)

Excel supports a special type of formula known as an array formula. When you enter an array formula, press Ctrl+Shift+Enter (not just Enter). Excel encloses an array formula in brackets in order to remind you that it’s an array formula. When we list an array formula, we include the brackets to make it clear that it is, in fact, an array formula. For example:

{=SUM(LEN(A1:A10))}

note.eps Do not type the brackets for an array formula. Excel puts them in automatically.

Key names

Names of keys on the keyboard appear in normal type, for example Alt, Home, PgDn, and Ctrl. When you need to press two keys simultaneously, the keys are connected with a plus sign: for example, “Press Ctrl+G to display the Go To dialog box.”

Functions, procedures, and named ranges

Excel’s worksheet functions appear in all uppercase, like so: “Use the SUM function to add the values in column A.”

Macro and procedure names appear in normal type: “Execute the InsertTotals procedure.” We often use mixed upper- and lowercase letters to make these names easier to read. Named ranges appear in italic: “Select the InputArea range.”

Unless you’re dealing with text inside quotation marks, Excel is not sensitive to case. In other words, both of the following formulas produce the same result:

=SUM(A1:A50)

=sum(a1:a50)

Excel, however, will convert the characters in the second formula to uppercase.

Mouse conventions

The mouse terminology in this book is all standard fare: “pointing,” “clicking,” “right-clicking,” “dragging,” and so on. You know the drill.

What the icons mean

Throughout the book, icons appear to call your attention to points that are particularly important.

newfeature.eps This icon indicates a feature new to Excel 2013.

note.eps This icon tells you that something is important — perhaps a concept that may help you master the task at hand or something fundamental for understanding subsequent material.

tip.eps This icon indicates a more efficient way of doing something or a technique that may not be obvious. These icons will often impress your officemates.

on_the_web.eps This icon indicates that an example file is on the companion website: www.wiley.com/go/exceldr

caution.eps We use Caution icons when the operation that we’re describing can cause problems if you’re not careful.

cross_ref.eps We use the Cross-Reference icon to refer you to other chapters that have more to say on a particular topic.

How This Book Is Organized

The chapters in this book are organized into six parts. Each of these parts includes chapters that build on the previous chapters’ instruction. The idea is that as you go through each part, you will be able to build dashboards of increasing complexity until you’re an Excel dashboarding guru.

Part I: Getting Started with Excel Dashboards

Part I is all about helping you think about your data in terms of creating effective dashboards and reports. Chapter 1 introduces you to the topics of dashboards and reports, defining some of the basic concepts and outlining key steps to take to prepare for a successful project. Chapter 2 shows you how to design effective data tables. Chapter 3 shows you how you can leverage the sparkline functionality found in Excel 2013. Finally, Chapter 4 rounds out this section with a look at the various techniques that you can use to visualize data without the use of charts or graphs.

Part II: Introducing Charts into Your Dashboards

Part II provides a solid foundation in visualizing data using Excel charts. Chapter 5 starts with the basics, introducing you to Excel’s charting engine. Chapters 6 and 7 focus on formatting techniques that enable you to build customized charts that fit your distinct needs. After that, Part II takes you beyond basic chart-building with a look at some advanced business techniques that can help make your dashboards more meaningful. Starting with Chapter 8, we demonstrate how to represent trending across multiple series and distinct time periods. In Chapter 9, we explore how best to use charts to group data into meaningful views. And Chapter 10 demonstrates some of charting techniques that can help you display and measure performance against a target. By the end of this section, you will be able to effectively leverage Excel charts to synthesize your data into meaningful visualizations.

Part III: Advanced Dashboarding Concepts

In Part III, we offer an in-depth look at some of the key dashboarding concepts you can leverage to create a cutting–edge dashboard presentation. Chapter 11 shows you how to build an effective data model that provides the foundation upon which your dashboard or report is built. In this chapter, you discover the impact of poorly organized data and how to set up the source data for the most positive outcome. Chapter 12 illustrates how interactive controls can provide your clients with a simple interface, allowing them to easily navigate through and interact with your dashboard or report. Chapter 13 provides a clear understanding of how you can leverage macros to automate your reporting systems.

Part IV: Pivot Table Driven Dashboards

With Part IV, you find out how pivot tables can enhance your analytical and reporting capabilities, as well as your dashboards. In Chapter 14, we introduce you to pivot tables and explore how this Excel feature can play an integral role in Excel-based presentations. Chapter 15 provides a primer on building pivot charts, giving you a solid understanding of how Excel pivot charts work with pivot tables. Chapter 16 shows you how pivot slicers can add interactive filtering capabilities to your pivot reporting. Finally, Chapter 17 introduces you to the new internal Data Model and Power View features of Excel 2013.

Part V: Working with the Outside World

The theme in Part V is importing information from external data sources. Chapter 18 explores some of the ways to incorporate data that doesn’t originate in Excel. In this chapter, you learn how to import data from external sources, such as Microsoft Access and SQL Server, as well as create systems that allow for dynamic refreshing of external data sources. Chapter 19 wraps up this look at Excel dashboards and reports by showing you the various ways to distribute and present your work in a safe and effective way.

About the Companion Website

This book contains many examples, and the workbooks for those examples are available on the companion website that is arranged in directories that correspond to the chapters. You can download example files for this book at the following website:

www.wiley.com/go/exceldr

The example workbook files on the website aren’t compressed (installation isn’t required). These files are all Excel 2007–2013 files.

About the Power Utility Pak Offer

Toward the back of the book, you’ll find a coupon that you can redeem for a discounted copy of John Walkenbach’s award-winning Power Utility Pak — a collection of useful Excel utilities, plus many new worksheet functions. John developed this package using VBA exclusively.

You can also use this coupon to purchase the complete VBA source code for a nominal fee. Studying the code is an excellent way to pick up some useful programming techniques.

You can download a 30-day trial version of the most-recent version of the Power Utility Pak from John’s website:

http://spreadsheetpage.com

If you find it useful, use the coupon to purchase a licensed copy at a discount.

Reach Out

We’re always interested in getting feedback on our books. The best way to provide this feedback is via e-mail. Send your comments and suggestions to

mha105@yahoo.com

john@j-walk.com

Unfortunately, we’re not able to reply to specific questions. Posting your question to one of the Excel newsgroups is, by far, the best way to get such assistance.

Also, when you’re out surfing the web, don’t overlook John’s website (“The Spreadsheet Page”). You’ll find lots of useful Excel information, including tips and downloads. The URL is

http://spreadsheetpage.com

Now, without further ado, it’s time to turn the page and expand your horizons.

Part I: Getting Started with Excel Dashboards

Chapter 1: Introducing Dashboards

Chapter 2: Table Design Best Practices

Chapter 3: Using Excel Sparklines

Chapter 4: Chartless Visualization Techniques