- •Table of Contents
- •About the Author
- •Dedication
- •Foreword
- •Acknowledgments
- •Why Does Office 365 Have Better Features?
- •Which Version of Office 365 Has Power Pivot?
- •Why Do I Have to Sign in to Excel?
- •How Can I Use Excel on Dual Monitors?
- •How Can I Open The Same Workbook Twice?
- •Find Icons on the Ribbon
- •Where is File, Exit?
- •Where Are My Macros?
- •Customizing the Ribbon
- •Go Wide
- •Minimize the Ribbon to Free Up a Few More Rows
- •Use a Wheel Mouse to Scroll Through The Ribbon Tabs
- •Why Do The Charting Ribbon Tabs Keep Disappearing?
- •Use Dialog Launchers For More Choices
- •Icon, Dropdowns, and Hybrids
- •Zoom is at the Bottom
- •Make Your Most-Used Icons Always Visible
- •The Excel 2003 Alt Keystrokes Still Work (If You Type Them Slowly Enough)
- •Use Keyboard Shortcuts to Access the Ribbon
- •Why Do I Have Only 65,536 Rows?
- •Which File Format Should I Use?
- •Why Does The File Menu Cover The Entire Screen?
- •How Do I Close The File Menu?
- •Increase the Number of Workbooks in the Recent Files List
- •Change All Print Settings in Excel
- •I Just Want The Old Print Preview Back
- •Get Quick Access to Formatting Options Using the Mini Toolbar
- •What Is Protected Mode?
- •Use a Trusted Location to Prevent Excel’s Constant Warnings
- •My Manager Wants Me to Create a New Expense Report from Scratch
- •Open a Copy of a Workbook
- •Open Excel with Ctrl+Alt+X
- •Have Excel Always Open Certain Workbook(s)
- •Set up Excel Icons to Open a Specific File on Startup
- •Use a Macro to Customize Startup
- •Control Settings for Every New Workbook and Worksheet
- •Excel Says I Have Links, But I Can Not Find Them
- •Automatically Move the Cell Pointer After Enter
- •Return to the First Column After Typing the Last Column
- •Enter Data in a Circle (Or Any Pattern)
- •How to See Headings as You Scroll Around a Report
- •How to See Headings and Row Labels as You Scroll Around a Report
- •Why is the Scrollbar Slider Suddenly Tiny?
- •Why Won’t My Scrollbar Scroll to My Charts?
- •Jump to the Edge of the Data
- •Jump to Next Corner of Selection
- •Ctrl+Backspace brings the Active Cell into View
- •Zoom with the Wheel Mouse
- •Copy a Formula to All Data Rows
- •A Faster Way To Paste Values
- •Quickly Turn a Range on Its Side
- •Quickly Rearrange Rows Or Columns
- •Quickly Copy Worksheets
- •Use Group Mode to Change All Worksheets
- •Find Text Numbers
- •Why Can’t Excel Find a Number?
- •Mix Formatting In A Single Cell
- •Enter a Series of Months, Days, or More by Using the Fill Handle
- •Have the Fill Handle Fill Your List of Part Numbers
- •Teach Excel to Fill A, B, C
- •Add Total to the End of Jan, Feb, ... Dec
- •Put Date & Time in a Cell
- •Use Excel as a Word Processor
- •Add Excel to Word
- •Use Hyperlinks to Create an Opening Menu for a Workbook
- •Spell check a Region
- •Stop Excel from AutoCorrecting Certain Words
- •Use AutoCorrect to Enable a Shortcut
- •Why Won’t the Track Changes Feature Work in Excel?
- •Simultaneously Collaborate on a Workbook with Excel Web App
- •How to Print Titles at the Top of Each Page
- •Print a Letter at the Top of Page 1 and Repeat Headings at the Top of Each Subsequent Page
- •How to Print Page Numbers at the Bottom of Each Page
- •How to Make a Wide Report Fit to One Page Wide by Many Pages Tall
- •Add a Printable Watermark
- •Print Multiple Ranges
- •Add a Page Break at Each Change in Customer
- •Save My Worksheet as a PDF File
- •Send an Excel File as an Attachment
- •Save Excel Data as a Text File
- •Close All Open Workbooks
- •I Just Closed an Unsaved Workbook
- •Roll Back to an AutoSaved Version
- •Have Excel Talk to You
- •Enter Special Symbols
- •What Do All the Triangles Mean?
- •Why does Excel Insert Cell Addresses When I Edit In a RefEdit Box?
- •F4 Repeats Last Command
- •Print all Excel Keyboard Shortcuts
- •Create a Personal Macro Workbook
- •Macro to Toggle Positive to Negative
- •Assign a Macro to a Shortcut Key
- •Assign a Macro to a Toolbar Icon
- •Use a Macro to Change Case to Upper, Lower, or Proper
- •Get Free Excel Help
- •Start a Formula with = or +
- •Three Methods of Entering Formulas
- •Why Does Excel 2013 Look Like A Slot Machine?
- •Use Parentheses to Control the Order of Calculations
- •Long Formulas in the Formula Bar
- •Copy a Formula That Contains Relative References
- •Copy a Formula While Keeping One Reference Fixed
- •Create a Multiplication Table
- •Calculate a Sales Commission
- •Simplify the Entry of Dollar Signs in Formulas
- •Learn R1C1 Referencing to Understand Formula Copying
- •Create Easier-to-Understand Formulas with Named Ranges
- •See All Named Ranges at 39% Zoom
- •Use Named Constants to Store Numbers
- •Total Without Using a Formula
- •Add or Multiply Two Columns Without Using Formulas
- •Type 123 to Enter 1.23
- •Join Two Text Columns
- •Concatenate Several Cells
- •Join Text with a Date or Currency
- •Break Data Apart Using Flash Fill
- •Parse Data using Text to Columns
- •Excel Is Randomly Parsing Pasted Data
- •I Lose Leading Zeroes From CSV Files
- •Open CSV File With Dates in D/M/Y Format
- •Handle Dates in YYYYMMDD format
- •My G/L Software Uses a Trailing Minus for Negative Numbers
- •Parse Data With Leader Lines
- •Parse Multi-Line Cells
- •Change Smith, Jane to Jane Smith
- •Convert Numbers to Text
- •Fill a Cell with Repeating Characters
- •CLEAN Hasn’t Kept Up With The Times
- •Add the Worksheet Name as a Title
- •Use AutoSum to Quickly Enter a Total Formula
- •AutoSum Doesn’t Always Predict My Data Correctly
- •Use the AutoSum Button to Enter Averages, Min, Max, and Count
- •Ditto The Formula Above
- •The Count Option of the AutoSum Dropdown Doesn’t Appear to Work
- •Total the Red Cells
- •Automatically Number a List of Employees
- •Automatically Number the Visible Rows
- •Discover New Functions Using the fx Button
- •Get Help on Any Function While Entering a Formula
- •Use F9 in the Formula Bar to Test a Formula
- •Quick Calculator
- •When Entering a Formula, You Get the Formula Instead of the Result
- •Highlight All Formula Cells Using Conditional Formatting
- •You Change a Cell in Excel but the Formulas Do Not Calculate
- •Calculate One Range
- •Why Use the Intersection Operator?
- •Understand Implicit Intersection
- •Find the Longest Win Streak
- •Add B5 On All Worksheets
- •Consider Formula Speed
- •Exact Formula Copy
- •Calculate a Loan Payment
- •Calculate Many Scenarios for Loan Payments
- •Back into an Answer Using Goal Seek
- •Create an Amortization Table
- •Do 40 What-if Analyses Quickly
- •Random Walk Down Wall Street
- •What-If For 3 Or More Variables
- •Rank Scores
- •Round Numbers
- •Round to the Nearest $0.05 with MROUND
- •Round Prices to the Next Highest $5
- •Round 0.5 towards Even Per ASTM-E29
- •Separate the Integer From the Decimals
- •Why Is This Price Showing $27.85000001 Cents?
- •Calculate a Percentage of Total
- •Calculate a Running Percentage of Total
- •Use the ^ Sign for Exponents
- •Raise a Number to a Fraction to Find the Square or Third Root
- •Calculate a Growth Rate
- •Find the Area of a Circle
- •Figure Out Lottery Probability
- •Help Your Kids with Their Math
- •Convert Units
- •XOR Only Works Correctly for Two Values
- •Find the Second Largest Value
- •Format Every Other Row in Green
- •\Use IF to Calculate a Bonus
- •IF with Two Conditions
- •Tiered Commission Plan with IF
- •Display Up/Down Arrows
- •Stop Showing Zeroes in Cell Links
- •Count Records That Match a Criterion
- •Build a Table That Will Count by Criteria
- •Sum Records That Match a Criterion
- •Can the Results of a Formula Be Used in SUMIF?
- •Calculate Based on Multiple Conditions
- •Avoid Errors Using IFERROR
- •Use VLOOKUP to Join Two Tables
- •Every VLOOKUP Ends in False
- •Lookup Table Does Not Have to Be Sorted
- •Beware of #N/A from VLOOKUP
- •Add New Items to the Middle Of Your Lookup Table
- •Consider Naming the Lookup Table
- •Remove Leading and Trailing Spaces
- •Your Lookup Table Can Go Across
- •Copy a VLOOKUP Across Many Columns
- •INDEX Sounds Like an Inane Function
- •You Already Know MATCH, Really!
- •INDEX Sounds Like an Inane Function - II
- •VLOOKUP Left
- •Fast Multi-Column VLOOKUP
- •Speed Up Your VLOOKUP
- •Return the Next Larger Value in a Lookup
- •Two-Way Lookup
- •Combine Formulas into a Mega-Formula
- •Combine Two Lists Using VLOOKUP
- •Watch for Duplicates When Using VLOOKUP
- •Return the Last Entry
- •Return the Last Matching Value
- •Sum All of the Lookups
- •Embed a Small Lookup Table In Formula
- •I Don’t Want to Use a Lookup Table to Choose One of Five Choices
- •Is there Something More Flexible than CHOOSE?
- •Lookup Two Values
- •Add Comments to a Formula
- •Create Random Numbers
- •Randomly Sequence a List
- •Play Dice Games with Excel
- •Generate Random Without Repeats
- •Calculate a Trendline Forecast
- •Forecast Data with Seasonality
- •Build a Model to Predict Sales Based on Multiple Regression
- •Switching Columns into Rows Using a Formula
- •SUM a Range that is C5 Rows Tall Using OFFSET
- •Replace Volatile OFFSET with INDEX
- •How Can You Test for Volatility?
- •Whatever Happened to the @@ Function?
- •Tables Are Like a Database in Excel
- •Dealing with Table Formulas
- •Rename Your Tables
- •Charts , VLOOKUP & Pivots Expand With The Table
- •Before Deleting a Cell, Find out if Other Cells Rely on It
- •Calculate a Formula in Slow Motion
- •Which Cells Flow into This Cell?
- •Color all Precedents or Dependents
- •Monitor Distant Cells
- •Auditing Worksheets with Inquire
- •Use Real Dates
- •How Can I Tell If Have Real Dates?
- •Convert Text Dates to Real Dates
- •Format Dates
- •Format Dates As Quarters or Weeks
- •Display Monthly Dates
- •Add a Column to Show Month or Weekday
- •Calculate First of Month
- •Calculate the Last Day of the Month
- •Calculate Invoice Due Dates
- •Calculate Receivable Aging
- •NOW, or TODAY?
- •Find the Last Sunday Of the Month
- •Calculate Work Days
- •Calculate Work Days for a Farmers Market
- •Calculate Age in Years, Months, Days
- •Coerce an Array of Dates from 2 Dates
- •Use Real Times
- •Strangeness of Time Formatting
- •Convert Time to Decimal Hours
- •Calculate with Time
- •Enter Minutes and Seconds
- •Convert Text to Time
- •Can Excel Track Negative Time?
- •Fill Blanks With Value Above
- •See Formulas in Excel 2013
- •Create a Bell Curve in Excel
- •Change from Lower to Upper Case in Excel
- •Spell Out Numbers in Excel
- •Copy Macro Code from the Internet Into an Add-In
- •Return Data from a Webservice in Excel 2013
- •Add New Functions to Excel with Fast Excel SpeedTools Extras
- •=SUM(B1:B5) is Better Than =B1+B2+B3+B4+B5
- •How to Set up Your Data for Easy Sorting and Subtotals
- •How to Fit a Multiline Heading into One Cell
- •No Tiny Blank Columns Between Columns
- •How to Sort Data
- •Sort Days of the Week
- •Sort a Report into a Custom Sequence
- •Sort All Red Cells to the Top of a Report
- •Sort Pictures With Data
- •Quickly Filter a List to Certain Records
- •Use Search While Filtering
- •Filter by Selection
- •Use AutoSum After Filtering
- •Filter Only Some Columns
- •Find the Unique Values in a Column
- •Use Advanced Filter
- •Replace Multiple Filter Criteria with a Single Row of Formulas
- •Add Subtotals to a Data set
- •Use Group & Outline Buttons to Collapse Subtotaled Data
- •Manually Apply Groups
- •Group Report Sections
- •Copy Just Totals from Subtotaled Data
- •Sort Largest Customers to the Top
- •Select 100 Columns in Subtotals
- •Enter a Grand Total of Data Manually Subtotaled
- •Add Other Text to the Subtotal Lines
- •Subtotals by Product Within Region
- •Format the Subtotal Rows
- •My Manager Wants a Blank Line After Each Subtotal
- •Subtotal One Column and Count Another Column
- •Can You Get Medians?
- •Horizontal Subtotals
- •Be Wary
- •Send Error Reports
- •Help Make Excel Better
- •Remove Blank Rows from a Range
- •Remove Blanks from a Range While Keeping the Original Sequence
- •Double Space Your Data Set
- •Use Find to Find an Asterisk
- •Use an Ampersand in a Header
- •Hide Zeros & Other Custom Number Formatting Tricks
- •Use Consolidation to Combine Two Lists
- •Combine Four Quarterly Reports
- •Find Total Sales by Customer by Combining Duplicates
- •Remove Duplicates
- •Preview Remove Duplicates Without Removing Them
- •Protect Cells That Contain Formulas
- •Find Differences In Two Lists
- •Number Each Record, Starting at 1 for a New Customer
- •Deal with Data in Which Each Record Takes Five Physical Rows
- •Add a Customer Number to Each Detail Record
- •Use a Built-in Data Entry Form
- •Cell AutoComplete Stopped Working
- •Data Cleansing with Flash Fill in Excel 2013
- •Flash Fill was there and is now Gone
- •Flash Fill Was Not Perfect
- •Flash Fill Won’t Fill Numbers
- •Flash Fill and Dates
- •Flash Fill and Ambiguous Data
- •Use a Pivot Table to Summarize Detailed Data
- •Your Manager Wants Your Report Changed
- •Add or Remove Fields from an Existing Pivot Table
- •Summarize Pivot Table Data by Three Measures
- •Why Does the Pivot Table Field List Keep Disappearing?
- •Move or Change Part of a Pivot Table
- •See Detail Behind One Number in a Pivot Table
- •Use Multiple Value Fields as a Column or Row Field
- •Update Data Behind a Pivot Table
- •Why do I Get a Count Instead of a Sum?
- •Convert Your Data to a Table Before Adding Records
- •Create a Flattened Pivot Table for Reuse
- •Replace Blanks in a Pivot Table with Zeros
- •Collapse and Expand Pivot Fields
- •Specify a Number Format for a Pivot Table Field
- •Preserve Column Widths
- •Show Yes/No in a Pivot Table
- •Pivot Table Format Defaults
- •Format Pivot Tables with the Gallery
- •None of the 46,273 Built-In Styles Do What My Manager Asks For
- •Select Pivot Table Parts For Formatting
- •Apply Conditional Formatting to a Pivot Table
- •Can I Save Formatting in a Template?
- •Manually Re-sequence the Order of Data in a Pivot Table
- •Present a Pivot Table in High-to-Low Order by Revenue
- •Excel 2016 Sometimes Auto-Groups Daily Dates to Month
- •Group Daily Dates by Month in a Pivot Table
- •Create a Year-Over-Year Report
- •Group by Week in a Pivot Table
- •Limit a Pivot Report to Show Just the Top 5 Customers
- •Build a Better Top Five Using Groups
- •Build a Better Top Five with A Filter Hack
- •Build a Better Top 5 Using the Data Model
- •Limit a Report to Just One Region
- •Create an Ad-Hoc Reporting Tool
- •Create a Report for Every Customer
- •Create Pivot Charts
- •Add Visual Filters to a Pivot Table or Regular Table
- •Run Many Pivot Tables From one Slicer
- •Filter Dates Using a Timeline in Excel 2013 & Newer
- •Group Employees Into Age Bands
- •Create a Frequency Distribution
- •Grouping 1 Pivot Table Groups Them All
- •Reduce Size 50% Before Sending
- •Drag Fields to the Pivot Table
- •Create a Report That Shows Count, Min, Max, Average, Etc.
- •Better Calculations with Show Values As
- •Pivot Ranks Don’t Match RANK()
- •Calculated Fields in a Pivot Table
- •Add a Calculated Item to Group Items in a Pivot Table
- •Group Text Fields to Build Territories
- •Calculations Outside of Pivot Tables
- •Show Customer Account & Name
- •Show Months with Zero Sales
- •Create a Unique List of Customers with a Pivot Table
- •Use a Pivot Table to Compare Two Lists
- •Use a Pivot Table When There Is No Numeric Data
- •Fix Misspelled Customer Names
- •Create a Pivot Table from Access Data
- •What Happened to Multiple Consolidation Ranges in Pivot Tables?
- •What are the Products in Power BI And How Can I Get Them?
- •Know if You Have 32-Bit or 64-Bit Excel
- •Load and Clean Data with Power Query
- •Power Query is Easier to Learn than VBA Macros
- •I Have More than 1,048,576 Rows of Data
- •Load a List of File Names into Excel
- •Load a Folder of CSV Files into a Single Excel Worksheet
- •My Headings Repeat Every 60 Rows
- •Fill in Blanks with Values from Above
- •Use Power Query to Clean Data Already in Excel
- •Pivot from Multiple Tables in Excel 2013 Data Model
- •Reporting from the Smaller Side of the Relationship
- •Use Joiner Tables Between Tables
- •Five Reasons to Use Power Pivot
- •Why Isn’t Power Pivot Tab in the Ribbon?
- •Get Excel Data Into Power Pivot
- •Open the Power Pivot Window
- •Define Relationships Between Tables
- •Sort Month Name by Month Number
- •Create a Calendar Table
- •The Formulas are called DAX
- •Adding Calculations In the Power Pivot Grid
- •Refer to a Related Table in a Formula
- •Creating the Power Pivot Table
- •Building the Pivot Table
- •Feature X Won’t Work in Power Pivot
- •Replace Calculated Fields with DAX
- •Calculate() is Like SUMIFS()
- •Unapply a Filter Using DAX
- •Unfilter Using Time Intelligence
- •Convert Power Pivot to Formulas
- •January Actuals and February Plan
- •Power View Is Replaced with Power BI
- •Power BI Transforms Excel Data into Interactive Dashboards
- •First POwer BI Step: Get a Free Account for Power BI
- •Optional Step 1: Take the Sample Dashboards for a Spin
- •Use Q&A to Investigate Your Data
- •Click a Dashboard Element to Open the Underlying Report
- •Click in one Chart to Filter Other Charts
- •Enable Drill-Down Mode
- •Sorting is Hidden Behind More Options
- •Optional Step 2: Connect to an Existing Service
- •Download Power BI Desktop to Your Computer
- •Prepare Your Excel Data for Power BI
- •Add a Calendar Table
- •Three Icons in Power BI Desktop
- •In Power BI Desktop, the Power Query Tools Are Called Get Data
- •Load Your Excel Data to Power BI Desktop
- •In Power BI Desktop, the Power Pivot tools are called Modeling
- •Define Relationships in Power BI Desktop
- •Classify Your Geography Fields in Power BI Desktop
- •Prevent Power BI from Adding Up Year Fields
- •Sort This by That
- •Define Synonyms in Power BI Desktop
- •Hide Columns So They Can't Be Chosen
- •Three Ways to BUild Visualizations in a Report
- •FOrmatting a Chart
- •Add Lines using Analytics
- •Adding More Visualizations to a Page
- •It is Insanely Easy to Build a Hierarchy
- •Open Source Visualizations
- •Every Chart is a Slicer For Other Charts
- •A Report Can Have Multiple Pages
- •Using Maps in Power BI Desktop
- •Three Types of Filters
- •Where is the Top 10 Filter?
- •Add Titles, Logos, & Embelishments
- •Don't Forget to Save Your File!
- •Share Your Dashboard to Power BI in the Cloud
- •Use Quick Insights
- •View Your Report in a Browser
- •Q&A Works on Dashboards, Not Reports
- •Share a Dashboard With Your Manager
- •Wait a Second - a Sharing Link? Isn't this Dangerous?
- •Consume Your Dashboard Using Power BI Mobile
- •What Does All Of This Cost?
- •How Do I Update My Dashboard Every Day?
- •That's All For Power BI In This Book
- •Put a Pivot Table on a Map In Excel 2013 Power Map
- •Tricks for Navigating the Map in Power Map
- •Fine-Tuning Power Map
- •Creating a Video from Power Map
- •Use an Alternate Map for Power Map
- •Filtering in Power Map
- •Excel Data to Mailing Labels in Word
- •Excel 2013 Allows Slicers on Regular Tables
- •Use Power Query to Load Many Web Pages
- •Create a Chart with One Click
- •Teach Excel Your Favorite Chart
- •Move a Chart
- •Copy a Chart Detached from the Data
- •Add New Data to a Chart
- •Excel 2013 Offers Easy Chart Formatting
- •Begin Excel 2010 Formatting on Design
- •The Chart Layout Tab Is Missing in Excel 2013
- •Formatting Charts in Excel 2010 with Layout
- •Legend At the Top
- •The 2010 Format Dialog Box is a Task Pane in 2013
- •Display an Axis in Millions
- •Select Anything on a Chart to Format
- •The Format Dialog Box Offers a New Trick
- •Use Meaningful Chart Titles
- •Avoid 3-D Chart Types
- •Prevent the Drop to Zero
- •Explode One Slice of the Pie
- •Move Small Pie Slices To Second Chart
- •Add a Trendline to a Chart
- •See Detail on Large & Small Data Points
- •Chart Two Series with Differing Orders of Magnitude
- •Hide Subtotals From Chart in Excel 2013
- •Create Pivot Charts from Detail Data in Excel 2013
- •Use Formulas for Chart Labels in Excel 2013
- •Interactive Chart to Show One Customer
- •Tie the Chart Title to a Cell
- •Excel 2016 Adds a Waterfall Chart
- •Use an Invisible Series to Float Columns
- •Use Rogue Series for Shading
- •Two Stacked, One Clustered Column
- •Conditional Format a Chart
- •Scatter Charts are Versatile But Require a Different Workflow
- •When do I Use Which Chart Type?
- •Track Sales Leads with a Funnel Chart
- •Create Tiny Charts with Sparklines
- •Sparklines Are Not Scaled Together
- •What is the Win Loss Sparkline For?
- •Labeling Sparklines
- •Shade the Normal Range in a Sparkline
- •Convert a Table of Numbers to a Visualization
- •Control Values for Each Icon
- •Add Icons to Only the Good Cells
- •Use the SIGN Function for Up/Flat/Down Icon Set
- •Data Bars Options
- •Comparative Histogram
- •Select Every Kid in Lake Wobegon
- •There is a Font Optimized for Excel
- •Show Checkmarks in Excel
- •Add Bullets to Excel
- •Use the Border Tab in Format Cells
- •Remove Borders from Filled Cells
- •Double Underline a Grand Total
- •Why Did the Colors Change in Excel 2013?
- •Where Are My Excel 2003 Colors?
- •Transform Black-and-White Spreadsheets to Color by Using a Table
- •Fit a Slightly Too-Large Value in a Cell
- •Turn Off Wrap Text in Pasted Data
- •Delete All Pictures in Pasted Data
- •Prevent Long Text from Spilling
- •Show Two Values in a Split Cell
- •For Each Cell in Column A, Have Three Rows in Column B
- •Show Results as Fractions
- •Better Scientific Notation
- •Fill a Cell with Asterisks
- •I type 152 and get 1.52
- •Use Cell Styles to Change Formats
- •Move Columns by Sorting Left to Right
- •Move Columns Using Insert Cut Cells
- •Move Rows or Columns with Shift Drag
- •Select All Cells Using the Keyboard
- •Change the Width of All Columns with One Command
- •Copy Column Widths to a New Range
- •Copy Row Heights
- •Use White Text to Hide Data
- •Hide Values Using a Number Format
- •Hide and Unhide Data
- •Group Columns Instead of Hiding Them
- •Hide Error Cells When Printing
- •Unhide All Sheets
- •Very Hide a Worksheet
- •Organize Your Worksheet Tabs with Color
- •Copy Formatting to a New Range
- •Copy Without Changing Borders
- •Power Up Format Painter
- •Fill Formatting
- •Change All Red Font Cells to Blue Font
- •Replace Partially Bold Cells
- •Change the Look of Your Workbook with Document Themes
- •Create Your Own Theme
- •Bring Back the Office 2010 Colors And Shiny Objects
- •Change the Background of a Worksheet
- •Add a Printable Background to a Worksheet
- •Remove Hyperlinks Automatically Inserted by Excel
- •Select a Hyperlink Cell Without Following the Hyperlink
- •Pasted URLs Don’t Become Hyperlinks
- •Debug Using a Printed Spreadsheet
- •Change the Appearance of Cell Comments
- •Control How Your Name Appears in Comments
- •Force Some Comments to ALWAYS Be Visible to Provide a Help System
- •Change the Comment Shape to a Star
- •Add a Pop-up Picture of an Item in a Cell
- •Add a Pop-up Picture to Multiple Cells
- •Build Reports Where Columns in Each Section 1 Don’t Line Up
- •Paste a Live Picture of a Cell
- •Add Formatting to Pictures in Excel
- •Remove Picture Background
- •Inserting a Screen Clipping
- •Draw an Arrow to Visually Illustrate That Two Cells Are Connected
- •Add Connectors to Join Shapes
- •Circle a Cell on Your Worksheet
- •Draw Perfect Circles
- •Add Text to Any Closed Shape
- •Place Cell Contents in a Shape
- •Rotate a Shape
- •Create Dozens of Lightning Bolts
- •Make a Logo into a Shape
- •Draw Business Diagrams with Excel
- •Choose the Right Type of SmartArt
- •Use the Text Pane to Build SmartArt
- •Change a SmartArt Layout
- •Format SmartArt
- •Switch to the Format Tab to Format Individual Shapes
- •Use Cell Values as the Source for SmartArt Content
- •Add WordArt to a Worksheet
- •Chart and SmartArt Text Is Automatically WordArt
- •Excel 2013 Offers an Excel App Store
- •Add a Dropdown to a Cell
- •Configure Validation to “Ease up”
- •Use Validation to Prevent Duplicate Data Entry
- •Use Validation to Create Dependent Lists
- •Add a ToolTip to a Cell to Guide the Person Using the Workbook
- •Combine Validation with AutoComplete
- •Afterword
- •Index
148 |
POWER EXCEL WITH MR EXCEL |
|
|
Figure 369 Divide the row by 4. If the remainder isn’t 0 or 1, use green.
\USE IF TO CALCULATE A BONUS
Problem: My VP of Sales announced that we are paying a 2% bonus for all sales over $20,000 this month. How do I calculate the bonus?
Strategy: Use the IF function. The function has three arguments. The first argument is a logi- cal test. This is any expression that will result in a value of TRUE or FALSE. For example,
F2>20000 is a logical test. The next argument is a formula that should be used if the logical test is true. The final argument is a value or formula to be used when the logical test is not true. The for- mula =IF(F2>20000,0.02*F2,0) can be thought of
in these words, “If the revenue in F2 is greater Figure 370 An IF function calculates the bonus. than 20,000 then 2% of F2, otherwise 0.”
Additional Details: The formula will not pay a bonus for someone who sold exactly $20,000. If such a sale should get a bonus, then use =IF(F2>=20000,0.02*F2,0).
IF WITH TWO CONDITIONS
Problem: The CFO decided we should only pay the 2% bonus if a second condition is met. The GP% must be 50% or higher in addition to the sale being over $20,000.
Strategy: There are three common solutions to this problem: nesting IF statements, using AND, using boolean formulas. All three will be discussed here.
The most common solution is nesting one IF statement inside of another. The formula would be: =IF(F2> 20000,IF(I2>0.5,0.02*F2,0),0). This first checks if the revenue is over $20,000. The second argument holds a formula to use when the logical test is true. In this case, the second argument is another IF statement that checks to see if the GP% is over 50%.
PART 2: CALCULATING WITH EXCEL |
149 |
|
|
Figure 371 Using a second IF statement as the second argument.
Gotcha: Don’t forget to type the ,0) at the end of the formula. This will provide the third argument and closing parentheses for the first IF statement.
Imagine if you had to test for five conditions. The above approach becomes unwieldy, as the formula is =IF (Test1,IF(Test2,IF(Test3,IF(Test4,IF(Test5, Formula If True,0),0),0),0),0). Using AND will simplify the calculation.
The AND function will hold up to 255 logical tests. Separate each test with a comma. The AND function
will return TRUE if all of its arguments are TRUE. If any argument is false, then AND will return FALSE. 2 Use the AND() function as the logical test inside the IF statement. =IF(AND(F2>20000,I2>0.5),0.02*F2,0).
Figure 372 Using AND simplifies the IF statement.
If you see the power of AND, then you will appreciate the OR and NOT functions. The OR function takes up to 255 logical tests. If any one of the tests is TRUE, then OR will return TRUE.
The NOT function will reverse a TRUE to FALSE and a FALSE to TRUE. Students of logic design might remember that when you algebraically simplify a complex boolean expression, using NOT(OR()) might be the simplest way to create a test.
I’ve done my Power Excel seminars for thousands of people who use Excel 40 hours a week. 70% of those people suggest using multiple IF statements. 29.9% of those people suggest using AND. Only one person has ever suggested the following clever method.
This formula starts out calculating a 2% bonus for everyone: =F2*0.02. But then the formula continues with two additional terms. =F2*0.02*(F2>20000)*(I2>.5). Those additional terms must be in parentheses. Excel treats (F2>20000) as a logical test and will evaluate that expression to either TRUE or FALSE. As Excel is calculating the formula, one intermediate step will be =22810*0.02*TRUE*FALSE.
When Excel has to use TRUE or FALSE in an calculation, the TRUE is treated as a one. The FALSE is treated as a zero. Since any number times zero is zero, the logical tests at the end of the formula will wipe out the bonus if any one of the conditions is not true. =22810*0.02*1*0 becomes 0. In row 7, =21730*0.02*1*1 becomes $434.60 and a bonus is paid.
150 |
POWER EXCEL WITH MR EXCEL |
|
|
Figure 373 Multiplying by a logical test is equivalent to AND.
Additional Details: Excel treats TRUE as a 1 when you use an operator such as +-*/^ on the TRUE value. This does not happen when Excel is calculating functions. If you enter =SUM(A1:E1) and cells in that range contain a TRUE, the TRUE is ignored.
Gotcha: Don’t use this last method when you have an OR condition. Traditionally, AND is equivalent to multiplication and OR is equivalent to addition. While the multiplication concept works fine in Excel, the addition will end up paying a double-bonus: =F2*0.02*((Test1)+(Test2)) might end up with =F2*0.02*2 which is not what you want.
See Also: Learn to Use Boolean Logic Facts to Simplify Logic
TIERED COMMISSION PLAN WITH IF
Problem: I am calculating a commission based on a sliding scale. The rate is based on the size of the sale, using the table shown here.
Strategy: You can solve this with several IF statements or with the unusual form of the VLOOKUP function.
To use the IF function, it is important that you start looking for the largest category first. Say that a cell contains a sale of $21,000. Checking for F2>20000 would return a TRUE, but checking for F2>1000 would be TRUE as well. You need to start checking for the largest value. If the sale is not larger than that value, then move on to checking for smaller values.
Figure 374 Sales above $15K and less than $20K are paid at 1.25%.
In the formula below, the IF function is finding the correct rate. The result of the IF function is multiplied by the revenue in F2. This prevents you from having to enter *F2 five different times in the formula.
Figure 375 Five IF statements nested together.
The formula is =IF(F2>20000,0.02,IF(F2>15000,0.0125,IF(F2>10000,0.01,IF(F2>7500,0.0025,IF(F2>100 0,0.001,0)))))*F2.
PART 2: CALCULATING WITH EXCEL |
151 |
|
|
As the commission plan becomes more complex, you would have to keep adding more IF statements. The current limit is 32 IF statements nested together. As recently as Excel 2003, the limit was 7 IF statements. It does not take long before this method becomes unwieldy.
You’ll be learning more about VLOOKUP after about 15 more topics. Most VLOOKUP formulas in this book end with a FALSE to indicate a close match. Here is one case where a VLOOKUP that omits the FALSE can save the day.
To use a VLOOKUP, you have to reverse the order so that the largest lookup value appears at the end of the table. Add a beginning row with zero to handle the sales smaller than $1000. (Actually, depending on how you handle negative values, the negative values might need to be first.)
Figure 376 Lookup table where the values go from smallest to largest.
In the table above, a sale of $5000 is not found in the table. Using a typical VLOOKUP with
FALSE at the end would result in an #N/A 2 error. When you leave off the FALSE, Excel
will look for the value that is just smaller than 5000. In this case, it will return the 0.10% since 1000 is the level just smaller than $5000.
Figure 377 Leave off FALSE. Lookup finds the just- smaller value.
Additional Details: You might some day have a situation where you need Excel to find the value in the table that is just larger. You can not do this with VLOOKUP, but you can do it with MATCH. The last argument in MATCH can be 0 for exact match, 1 for the value just lower or -1 for the value just higher. Combine MATCH with INDEX to replicate a range-lookup where you want the just-higher value.
DISPLAY UP/DOWN ARROWS
Problem: I have a series of closing stock prices. If the price for the day goes up, I want to display an up symbol. If the price goes down, display a down symbol.
Strategy: Use an IF statement in combination with a Webdings or Wingdings font.
Most computers have at least four font faces composed of symbols. To easily browse the symbols, enter
=CHAR(ROW()) in cells A1:A256. Change the font for column A to Webdings or one of the three Wingdings fonts. As you browse through the symbols and see one that you would like, click on the symbol. Below is a possible arrow to use. You can see that this is in the Wingdings 3 font. From the row number, you know it is character code 199. From the formula bar, you can see that it is the C with a cedilla mark below.
152 |
POWER EXCEL WITH MR EXCEL |
|
|
Figure 378 Character 199 is a possibility.
If you are reading this and you have a Portuguese keyboard, you probably have a key with the cedilla C.
However, you will have to fly to France to find an E with a grave accent. You could try to master the art of holding down Alt while typing 0199 on the numeric keypad, or you could use CHAR(199).
Personally, for me, all of those are too much hassle and I won’t use the arrows shown above. Instead, I found the symbols that correspond to letters on my keyboard, so that I can easily type them in the formula.
Figure 379 These six symbols are all typeable on a U.S. keyboard.
The strategy is to write an IF statement that produces a 5 for positive and a 6 for negative. Then, format those cells to use the
Webdings font.
Use a formula such as =IF(B2>B3,5,6) to use the Webdings symbols. If you prefer the filled triangles from Wingdings 3, use =IF(B2>B3,”p”,”q”). Initially, you will get a column of 5 and 6.
Figure 380 The formula produces 5’s and 6’s.
Select column C and change the font to Webdings. Use Left alignment.
PART 2: CALCULATING WITH EXCEL |
153 |
|
|
Figure 381 Convert the column to Wingdings. |
|
Gotcha: If you ever need to edit the formula in C, it will appear in Webdings font and be unreadable in |
2 |
the cell. Use the Formula bar to see the real formula. |
If you want to display the arrows in green and red, change the font color of column C to green. Then use
Home, Conditional Formatting, Highlight Cells Rules, Equal to, 5. Open the Format dropdown and choose
Custom Format. On the Font tab, choose a bright red.
While Wingdings is a cool technique, an easier way to display Up/Down Arrows is "Use the SIGN Function for Up/Flat/Down Icon Set" on page 470
Alternate Strategy: You can avoid the IF statement and use a custom number format. Use a formula of =SIGN(B2-B3) in column C. This will return a negative one for days that the price went down, positive one for days when the price went up, and a zero for days where the price is unchanged.
Change the custom number format to [green]\r;[red]\s;. Change the font to Wingdings 3.
Figure 382 Forcing Excel to show r for positive and s for negative.
The custom number format is using three zones. The first zone is showing a lower case r in green for any positive number. The second zone is showing a lower case s in red for any negative number. The third zone is indicated by the final semi-colon and is blank, indicating no symbol for zero values. When you convert column C to Wingdings 3, you get the arrows shown.