When we are building dashboards in Excel, we often want to build links between worksheets or spreadsheets. To do that we can use hyperlinks. This was kind of a life changing concept to me because it allowed you to build and style your own buttons into whatever shape, size and format you wanted.
I’m going to leave this GIF image with you to teach you how you can do this in a few easy steps. Enjoy!
Building an Excel customer receivables dashboard came to me when I realized that most companies seem to really make use of their invoice information to look at their customer credit performance. Reviewing how your customers are doing in terms of making their payments plays a significant role in having a successful company because this is your lifeline for actually getting the bills payed. This cash flow plays an integral part in the business and also allows your company to grow.
So, What Does This Dashboard Do Exactly?
The customer receivables dashboard allows you to load up your customer contact information (from your customer table) as well as load up your invoice details and due dates (from your invoice detail or invoice table) and provides you with an easy to use interface that allows you to select any customer (using a drop down validation list based on the customer table information that you loaded into the table) and will immediately display your customer’s main contact information as well as the breakdown of their past due invoices. This will provide you with information like number of past due invoices, total past due invoice amount, oldest invoice and matching customer PO number to that invoice and finally the breakdown and distribution of late invoices based on age group (1-30 days, 31-60 days, 61-90 days and greater than 90 days). I’ve also included a neat graph that will show you the distribution of past due invoices based on aging category. Finally within the centre portion of the dashboard you’ll notice that the invoice aging category with the highest value of past due invoices will display the percentage of the total past due invoices.
I’ve included a quick video of the dashboard being used to give you an idea of how the dashboard works and whether or not this is something that may be useful to you.
I know what you’re thinking. The title of this post is a sad attempt at stringing together an English phrase that actually makes sense (i.e. Excel Formulas Not Working). To that I say, you’re absolutely right! Nevertheless, it seems that the majority of people out there are searching for this exact statement on Google. For that reason, I am going to leave it and I’m also going to try to put together a comprehensive series of blog posts that can answer this question – or this statement rather. We’ve all come across the dreaded situation. We put together a massive spreadsheet and start looking at the results of our calculations and formulas only to realize that the results are incorrect. Now you’re thinking, well what is the problem? In this first of several posts we are going to look at what Tech Republic says is the most important thing to teach your Excel users and that is absolute and relative cell referencing. This post will give you a solid idea of why your formulas may be failing or may just be not giving you the results you expected and at the same time cover the basics of absolute and relative cell referencing so you can understand what the heck you’re doing.
Relative, Mixed and Absolute Cell Referencing: The Reason Why Your Excel Formula Didn’t Auto Fill or Copy As You Expected
I know sounds brutally boring, right? It kind of is really; but if you understand how this works, you’ll save yourself a lot of time trying to figure out why your formulas aren’t producing the results you were expecting. This is one of the first things you want to learn about Excel before you start using formulas as it will save you tons of time in the future. Alright let’s get into the less than exciting details and then look at the fun stuff.
What Exactly Does Cell Referencing Even Mean?
Literally and in the most laymen terms cell referencing means to reference a cell from your current cell. This allows you to make the contents of a cell dynamic meaning if someone updates cell A1 and you are referring to that cell in cell C5, cell C5 will update to reflect the changes made to A1. Let’s look at an example and check out the step by step process.
A STEP BY STEP HOW TO ON CELL REFERENCING
(1) Notice that our formula in cell F3 is (=D3*E3 – here we are referencing cell D3 and E3) – which simply translates to multiply the contents of D3 by E3 (225 * $68.60). The result in cell F3 is then $15, 435.67.
(2) The beautiful thing about cell referencing is that now if we change the value of one of the cells being referenced (let’s say the on hand quantity- column D), this will change the result in cell F3 automatically. Notice that the value in cell D3 is currently 225.
(3) Let’s change the value of cell D3 to 200 – notice the red circle for point 3 that the value has now changed.
(4) Now that we’ve updated cell D3, because the formula in F3 remains the same (D3*E3) our result will be dynamic and change to reflect the new multiplication of values between D3 and E3 (=200*$68.60) which gives us $13, 720.59.
That is cell referencing in a nutshell. Instead of doing a multiplication of two values and re-populating cell F3 every time based on the changes that are made for cell D3 and E3, we can easily refer to those two cells so that we don’t need to manually calculate the change in our inventory value.
Alright, now that we’ve covered cell referencing in general, let’s look at the different types. We’ve got relative, mixed and absolute cell referencing.
Relative Cell Referencing
By default your formulas use relative cell referencing (it’s important that you understand that this is the default setup in Excel and that there will be times where you will need to make your formula not relative). What this means is that if you copy your formulas to other cells the references will simply be offset exactly by the same number of rows and columns that you moved your formula (Microsoft did a great job at explaining this here).
BREAKDOWN OF RELATIVE REFERENCING
(1) Enter your formula in cell F3 (=D3*E3).
(2) Hit Enter to process the formula.
(3) Use small square in bottom right hand corner of cell F3 to copy/auto fill formula to next cell (drag).
(4) Now that you are on cell F4 – the formula bar shows that the formula was copied over.
(5) Notice that the column and the row of each cell reference is offset exactly by the number of cells that we moved and copied the formula (F3 to F4 – 1 row down to row 4 – D4 * E4).
Mixed Cell Referencing
When we are talking about mixed cell referencing, here we are referring to both relative and absolute referencing in one formula/cell. This means that a part of the formula will always be referencing a specific range or a cell when copied or moved (absolute referencing) and part of the formula will be referencing a dynamic or a changing range or cell (relative referencing). As an example, as you copy and paste your formula, you may want to always refer to column A but at the same time want to make sure that you change rows as you paste your formula to new cells. In order to do that, you are going to place a dollar sign in front of the column character that you are dealing with – $A1. Let’s have a look.
CLICK IMAGE TO SEE ANIMATED GIF
BREAKDOWN OF MIXED REFERENCING
(1) Enter your formula in cell F3 (=$D3*$E3) – the dollar sign before the column of each reference means we want it to stay the same. So we will continue to reference column D and E when the formula is copied but the row reference will change as we move down a row.
(2) Type Ctrl + C (in windows) to copy the formula from F3.
(3) Paste the formula into cell G4. The reason that I changed columns is because I wanted to show you that even though we moved over a column (offset of 1 column), we continued to refer to column D and E in our formula – but notice that our row offset itself accordingly (new formula in G4 = $D4*$E4).
Note: If we had not put the $ in front of D and E, our new formula in G4 would have been =E4*F4 giving us an entirely different and unexpected answer.
Absolute Cell Referencing
Absolute cell referencing is the complete opposite of relative cell referencing. When we develop a formula and add the $ symbol before both the column and row reference, the formula is said to be absolute. This means that no matter what, when we copy the formula from one cell to the next, we are always going to reference the exact same cells and ranges that were initially outlined in the originating cell. For example cell F3=$D$3*$E$3 – if we copy this to cell G4, G4 will equal the exact same thing (=$D$3*$E$3). This ultimately means that our result will be the exact same for F3 and G4. A good example of when to use this is if we have a storage fee per cubic feet in a cell and we want to calculate the storage fees based on the total cubic feet used of each item (I’m just sticking with inventory theme here to keep things consistent). Let’s take a look at this example.
BREAKDOWN OF ABSOLUTE REFERENCING
(1) Enter your formula in cell H3(=G3*$M$2) – the dollar sign before the column M and row 2 means we are going to refer to this specific cell when the formula is copied. Because our first cell reference G3 has no absolute reference on row or column, when we move down only one row, we will stay in the same column but change rows (offset down 1 row) hence now referencing G4.
(2) Copy the data down the column by double clicking the small square in the bottom right hand corner of H3.
(3) Double check cell H4 and you’ll notice that we are still referencing cell $M$2 but we’ve changed our first value/cell reference to G4.
Practical Examples: Situations and Solutions to Excel Formulas Not Working as a Result of Cell Referencing
To really try and drive this concept home, we are going to go over a few different examples so that we can see what happens when we don’t apply the proper referencing syntax. This will hopefully teach you enough so that you no longer have to be worried about your formulas not working as a result of cell referencing.
Don’t be Lazy – When Not to Use Relative Referencing or When to Pick up the Slack and Start Using those $ $igns
There comes a time as an Excel user where you need to step away from just using the standard Excel default cell referencing. When the time comes you’ll need to make sure to use those dollar signs. As you can see in our example below, we forgot to make the reference to cell M2 absolute. As a result, because we copied our cell one row down (the new cell column remained the same as the previous), we moved our reference one row down as well to M3.
The Solution: Before you copy the contents of H3 over to new cells, be sure to make the storage fee an absolute reference. In this case our formula in H3 should then be as follows (H3=G3*$M$2). You should know this by now but if you are still asking why does G3 not have any dollar signs, it’s because we know that as we move to H4, we also want to move the reference to G4 (as the row changes in the cell that contains the formula, we want the row to change on the reference for the cubic feet column/field). Technically, we should make G3 have an absolute column of $G but because we are not copying the formula to another column we can get away with this.
You’re Not Making Any Money With Those Dollar Signs – When Not to Use Absolute Referencing
Alright so it’s one thing to forget to use the absolute reference (using dollar signs) but it’s also important to know when not to use them. In this scenario we are going to look at when and why it’s important not to make your cell references absolute. In the image below, you’ll notice that when we make our formula in F4 absolute, and we drag that formula to F11, every cell from F5 to F11 calculates $D$3*$E$3 instead of changing rows to multiply the Qty On Hand by the Unit Price for each record.
The Solution: Again, it’s important to look at what you are looking for in terms of a result and this will determine what you need to do for the referencing. In our case, we’ve made both of the cell references in F3 absolute (again the dollar sign before a row/column reference makes it absolute) and we’ve copied that formula by double clicking the small box in the bottom right hand corner of the cell (TIP: this will fill your current column down as far as data exists to the right or left columns). Because both the column and row references were absolute, our formula remained the exact same multiplying D3 by E3 for each of the cells. To fix this, we need to remove the absolute referencing by selecting each individual reference in F3 and hitting F4 until no dollar signs exist in our equation. This will of course make our formula relative (REMINDER: relative referencing is the default) which will allow us to copy this formula down and ensure that we multiply QTY ON HAND by UNIT PRICE for each row/record in our data set. It’s important to note that we don’t need to make the column reference absolute here because we are not copying the formula into a cell that is outside our current column. This is because relative to our original cell, we have not moved over to the left or right a column – the next part of this section should explain this in detail with a screen shot.
We Can’t Always Operate on a Hybrid – When You Need to and When You Don’t Need to Use Mixed Referencing
In this example I’m going to show you a situation where you need to use mixed referencing to ensure you get the result that you are looking for – this is the same example as above but bare with me. This is kind of an uncommon situation but let’s pretend like we had two columns for Total On Hand Value (OHV2 being the second column). In this column, we want to ensure that we have the same result as we have in F4 which is by the way (a relative reference to D4*E4). If we were to copy the relative formula from F3 (D3*E3) to G4, the formula in G4 would be E4*F4 which would not give us the total on hand value as we expected (this is because we moved 1 row down and 1 column right – as opposed to just 1 row down which was the case in cell F4). Let’s look at how this works:
F3= D3*E3 ——Copied to G4 ——–G4=E4*F4 (G4 is located exactly 1 row down and 1 column right of cell F3)
D3 therefore has to move 1 row down and 1 column right when the reference is relative. That means G4 will reference E4.
E3 will also move 1 row down and 1 column right when the reference is relative. That means G4 will reference F4.
The final formula in G4 therefore becomes E4*F4.
Using a relative reference in F3 and copying it to cell F4 would work. This is a situation where mixed referencing is not required because we are copying our cell formula and pasting it in the same column (F4 is 1 row down from F3 and no columns to the right or left which means that each of our references in our formula will also only move 1 row down when copied).
The Solution: To make sure we get this right (so G4 is the result of D4 multiplied by E4), we need to use a mixed reference in F3 so that we make our columns absolute (rows will remain relative) which will then allow us to copy the formula to G4 and get the result we are looking for (G4=$D4*$E4). Below provides the example of the correct answer/result.
Make sure you have a look at the table below our data set. This outlines each reference method iteration that we can have in F3 and how it will effect the result if it is copied to G4. The table also explains how the formula works (formula instruction column) for each iteration. You may want to keep this screen shot as a quick reference to how cell referencing works.
Summary and Closing Thoughts on Excel Formulas Not Working and Cell Referencing
I think that about covers all of the bases to make sure that when you are using formulas that you are also using the correct referencing method. The biggest thing to keep in mind is how you would like your formula to be copied over and what cells you’ll want your formula to reference in the cell that you are pasting to. If you understand and apply these concepts, you’ll be sure to rule out your Excel formula not working as a result of incorrect cell referencing.
If you enjoyed this post and found it useful, please do share with your peeps! Also, I don’t often get many comments but I’d love to hear your thoughts on what other problems you experience when it comes to formulas not working so PLEASE DO LEAVE A COMMENT!!!
I’m looking forward to adding other articles to this Excel Formula Not Working series and I hope you are too.
This is an incredibly easy and simple tip and an Excel navigation shortcut that I quite honestly had no idea existed until just recently. I’ve always used Ctrl + left/right/down/up arrow to quickly get to the top/bottom of my current columns or start/end of my current row. That being said this tip is great if you are a heavy mouse user and just love to click things- so here it is. When you are on any cell, you can double click the top/left/bottom/right of your cell to get literally to the beginning or end of that row or column. You need to make sure that you have the 4 point cursor available when hovering over either of the sides of your cell. Here is a quick gif image to show you how this works. Note that the image below is only showing you how to navigate from top to bottom (and from bottom to top) of a column but you can you with the left or right hand sides of the cell to go to the beginning of the row or to the end of the row.
I hope you enjoy this tip as much as I did and I already forget where I came across this but it could be a life changer for some of you and I hope it is.
I recently purchased a copy of Chandoo’s The VLOOKUP Book and realized that it was the first piece of material that I had read that covered pretty much all of the bases when it came to the Vlookup formula and other lookup formulas in general. Because I was able to learn something from this book I figured you may be able to benefit from purchasing the book. Since I believe in Chandoo’s products and what he is doing, I decided to become an affiliate (the links in this post are affiliate links) and to provide you with some insight as to whether or not it may be something that you are interested in. I will say that although the book is not perfectly written, it does a great job at showing all of the available options that you can use to run lookup formulas in Excel.
My hope in this post is to provide you with an overview on what this book has to offer. Let’s get started with our 11 reasons and if you have any questions about the book or about the Vlookup formula in general, please feel free to leave any comments or to email me at brad@bradedgar.com.
By the way please be patient with the page slider below, it does take a little bit of time to load.
You’ll Learn How to use Vlookup to Lookup a Value and Find Corresponding Information About that Value
REASON # 2
You’ll Learn What the True vs. False Portion of the Vlookup Statement Truly Means and How To Use it
REASON # 3
You’ll Learn How to Use the IFERROR and IFNA Formulas with Vlookup to Display Any Value you Please If Your Formula Doesn’t Not Find a Match
REASON # 4
You’ll Learn How to Find the Second Item in a Lookup List When there Are Multiple Items
REASON # 5
You’ll Learn How to Use LOOKUP and HLOOKUP Formulas
REASON # 6
You’ll Learn the Benefits and How to Use Excel Tables with the VLOOKUP Formula – This Will Save You Time and Effort
REASON # 7
You’ll Learn How to Use Wildcards (abbreviated queries) with the Vlookup Formula Using *
REASON # 8
You’ll Learn How to Use Vlookup with Data Validation Lists, Name Ranges, Tables To Build Slick Dashboards
REASON # 9
You’ll Learn How to Preform Lookup Formulas When the Data That you Are Looking for is to the Left of Your Lookup Column
REASON # 10
You’ll Learn How to do Lookups Based on Multiple Conditions By using Formulas like SUMIF, SUMPRODUCT, INDEX MATCH, AND SUM and you Will Also Learn the Best Method.
REASON # 11
You’ll Learn How to Use Helper Columns with Vlookup to Find the Results You Are Looking For.