Excel Outside the Box: Unbelieveable Excel Techniques from Excel MVP Bob Umlas
By Bob Umlas
4.5/5
()
About this ebook
Related to Excel Outside the Box
Related ebooks
VBA for Excel: Programming VBA Macros - The Easy Introduction for Beginners and Non-Programmers Rating: 3 out of 5 stars3/5PowerPivot Alchemy: Patterns and Techniques for Excel Rating: 3 out of 5 stars3/5Supercharge Excel: When you learn to Write DAX for Power Pivot Rating: 5 out of 5 stars5/5Excel Dashboards and Reports Rating: 5 out of 5 stars5/5Power BI for the Excel Analyst: Your Essential Guide to Power BI Rating: 0 out of 5 stars0 ratingsMrExcel XL: The 40 Greatest Excel Tips of All Time Rating: 4 out of 5 stars4/5Excel 2021 Rating: 4 out of 5 stars4/5Excel Macros For Dummies Rating: 3 out of 5 stars3/5Excel Guide for Success Rating: 5 out of 5 stars5/5Guerilla Data Analysis Using Microsoft Excel Rating: 0 out of 5 stars0 ratingsM Is for (Data) Monkey: A Guide to the M Language in Excel Power Query Rating: 4 out of 5 stars4/5The Ultimate Guide To Microsoft Excel Vba For Beginners And Seniors Rating: 0 out of 5 stars0 ratingsMrExcel 2022: Boosting Excel Rating: 0 out of 5 stars0 ratingsThe Ultimate Guide To Master Excel Features & Formulas. Become A Pro From Scratch in Just 7 Days With Step-By-Step Instructions Rating: 0 out of 5 stars0 ratingsExcel 2019 Bible Rating: 5 out of 5 stars5/5Advanced Analytics with Excel 2019: Perform Data Analysis Using Excel’s Most Popular Features Rating: 4 out of 5 stars4/5Your Excel Survival Kit 2nd Edition: Your Guide to Surviving and Thriving in an Excel World Rating: 0 out of 5 stars0 ratingsExcel 2016 Hands-On Lab Rating: 0 out of 5 stars0 ratingsMrExcel 2024: Igniting Excel Rating: 0 out of 5 stars0 ratingsMrExcel LX The Holy Grail of Excel Tips: Covers Excel Backwards and Forwards Rating: 0 out of 5 stars0 ratingsExcel 2016 For Dummies Rating: 4 out of 5 stars4/5Excel 2019 Intermediate: Excel Essentials 2019, #2 Rating: 0 out of 5 stars0 ratingsData Analysis with Excel: Tips and tricks to kick start your excel skills Rating: 0 out of 5 stars0 ratingsExcel for the CFO Rating: 3 out of 5 stars3/5Exploring Microsoft Office: The Illustrated, Practical Guide to Using Office and Microsoft 365 Rating: 0 out of 5 stars0 ratingsExcel Mastery: From Basics to Power User – Unlock Your Full Potential: Your Guide to the Digital World, #2 Rating: 0 out of 5 stars0 ratings
Enterprise Applications For You
QuickBooks Online For Dummies, 2025 Edition Rating: 5 out of 5 stars5/5Scrivener Superpowers Rating: 0 out of 5 stars0 ratingsExcel All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsQuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsExcel Dashboards & Reports For Dummies Rating: 4 out of 5 stars4/5Some Future Day: How AI Is Going to Change Everything Rating: 0 out of 5 stars0 ratingsBitcoin For Dummies Rating: 4 out of 5 stars4/5Microsoft Excel 365 Bible Rating: 0 out of 5 stars0 ratingsExcel VBA Programming For Dummies Rating: 4 out of 5 stars4/5QuickBooks 2024 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsCompTIA Project+ Study Guide: Exam PK0-005 Rating: 0 out of 5 stars0 ratingsQuickBooks 2021 For Dummies Rating: 0 out of 5 stars0 ratingsDragon NaturallySpeaking For Dummies Rating: 0 out of 5 stars0 ratingsExcel 2021 Rating: 4 out of 5 stars4/5Scrivener For Dummies Rating: 4 out of 5 stars4/5QuickBooks Online For Dummies Rating: 0 out of 5 stars0 ratingsSalesforce.com For Dummies Rating: 3 out of 5 stars3/5Learning Microsoft Endpoint Manager: Unified Endpoint Management with Intune and the Enterprise Mobility + Security Suite Rating: 0 out of 5 stars0 ratingsMicrosoft Copilot For Dummies Rating: 0 out of 5 stars0 ratingsLearning AWS Rating: 4 out of 5 stars4/5Excel Macros For Dummies Rating: 3 out of 5 stars3/5Enterprise AI For Dummies Rating: 3 out of 5 stars3/5Microsoft 365 Excel For Dummies Rating: 0 out of 5 stars0 ratingsMicrosoft Power Platform A Deep Dive: Dig into Power Apps, Power Automate, Power BI, and Power Virtual Agents (English Edition) Rating: 0 out of 5 stars0 ratingsSQL 101 Crash Course: Comprehensive Guide to SQL Fundamentals and Practical Applications Rating: 5 out of 5 stars5/5Agile Project Management: Scrum for Beginners Rating: 4 out of 5 stars4/5
4 ratings0 reviews
Book preview
Excel Outside the Box - Bob Umlas
Introduction
There are many Excel books out there, why did I write this one? My daily work involves writing custom applications using Excel, and there are many problems I’ve had to think through to come up with a solution in Excel. I’ve used these solutions many times in my applications. I have not found any books or articles which described similar issues and solutions, yet it is hard to imagine that Excel developers in other companies hadn’t also come up against these issues. So, given the feedback from my previous book (This isn’t Excel, it’s Magic
), I thought it was time for another book to help the already-advanced Excel developer get past these hurdles.
So many times I’ve seen a data validation list contain many blanks at the bottom of the list (which was fixed in Excel 2010!), or with gaps, like this:
OTB001507.jpgwhen it should look like this:
OTB001508.jpgEven if the source contains those gaps. I describe how to fix that (and so many more things) in this book.
I show a lot of involved formulas but I decipher them step by step so they’re no longer so formidable, like this array-entered one, for example:
=INDEX(A:A,SMALL(IF(ISNA(MATCH($A$1:$A$12,$C$1:$C$9,0)),ROW($1:$12),),ROW(A2)))
This book is aimed at the company’s already-expert Exceller, elevating him/her to the next level.
–Bob Umlas
Chapter 1 - Techniques
1-A Dilemma with Relative References
Figure 1 and Figure 2 show a simple worksheet normally and with formulas showing:
OOB0001.tifFigure 1
OOB0002.tifFigure 2
Assume this goes on for hundreds of rows.
Also assume you discovered that most of the formulas are wrong – you really wanted those cells which refer to Data to be 3 rows down. That is, in cell D1 you wanted the reference to be to cell M20, not M17. How can you fix it? There’s nothing to replace – replacing 17 with 20 certainly won’t help. You can’t fix the first one and fill down because of the cells which are not of a like formula – for example, filling down would destroy the formula in cell D4. Figure 3 is what you want, how can you get there?
OOB0003.tifFigure 3
The answer (well, one answer, anyway) is to switch to R1C1 format. Yes, it actually does have a really good use! It’s done here in the File menu, Options.
OOB0004.tifFigure 4
How does that help? Look at the underlying formulas here:
OOB0006.tifFigure 5
See those [16]’s? All you need to do is change them to [19]’s, with the result shown below:
OOB0007.tifFigure 6
When you switch back to A1 notation (uncheck R1C1) you have this:
OOB0008.tifFigure 7
And you’re done! But wait – here’s an entirely different approach which also works well. First, create a new sheet, say that’s Sheet4. It will remain empty for this process, but will serve an important function as you will soon see. Change the above formulas by changing the reference from Data to Sheet4, as seen here:
OOB0009.tifFigure 8
And afterwards as you see here:
OOB0010.tifFigure 9
Now go to Sheet4, select cells M1:M3, Insert cells (Home tab), shifting down:
OOB0011.tifFigure 10
Return to the main sheet and look at the formulas:
OOB0012.tifFigure 11
Now change Sheet4 back to Data and you’re done:
OOB0013.tifFigure 12
2-Build a Formula with a Formula
Look at the worksheet in Figure 13 on the next page.
You can see that some information from Sheet2 is being picked up on Sheet1 via an INDIRECT formula. A quick look at Sheet2 (nothing special) in Figure 14.
Why use INDIRECT? Perhaps the information on Sheet2 may be cut/pasted elsewhere, but you are interested in the data in A1:A22, regardless of how information may be moved around.
What’s the issue? Look at the formulas in Sheet1 in Figure 15.
The problem is, how can you create these formulas without typing each one (or without reverting to creating a VBA procedure!)? You can’t fill the formula down from A1, because it’s all text, and the formula will stay the same. The answer lies in building the formula with a formula. Let’s see what this means (Figure 16).
Notice that the formulas in column A seem to be the same as the previous screenshot, but look at what’s in the formula bar! You are looking at ==INDIRECT(
Sheet2!A
&ROW(A1)&)
which is the formula you want to be in cell A1, but entirely built as a string except the reference to ROW(A1) to give us the one you want.
Figure 13
OOB0015.tifFigure 14
OOB0016.tifFigure 15
OOB0017.tifFigure 16
OOB0018.tifFigure 17
becomes
OOB0019.tifFigure 18
and then
OOB0020.tifFigure 19
becomes
OOB0021.tifFigure 20
This becomes what you see in cell A1. Now when this formula is filled down, the ROW(A1) becomes ROW(A2), etc. and you have what you need. However, this is not ready for use – it’s not an INDIRECT formula, it’s a text string containing the word INDIRECT, etc. What’s left to do is copy/paste special values. I like doing it this way especially since after the fill down, my hand is on the mouse.
Right-click the border of the selection and drag away (anywhere), and then drag the selection right back to where it started. This is what you see when you right-click drag the border away without letting go of the mouse:
OOB0022.tifFigure 21
When you drag back, before letting go you see Figure 22:
OOB0023.tifFigure 22
When you let go you’ll see this:
OOB0024.tifFigure 23
And the highlighted option is the feature you use to get this:
OOB0025.tifFigure 24
It doesn’t look like anything changed, but look at the formula bar – it’s no longer a text string. However, the formulas in column A need to be coerced into formulas. This can be easily done by replacing =
with =
. Replacing =
with =
