Custom Function to Increment Dates
Excel can easily add days to a date but months, quarters and years require a slightly different calculation. Here’s a single function that does all three.
(more…)
Excel can easily add days to a date but months, quarters and years require a slightly different calculation. Here’s a single function that does all three.
(more…)
Excel has an EOMONTH function that returns the end of month. You can hack this function to return the start of the month as well. I thought I would make it easy to return the first, last or middle of the month in one simple function.
(more…)
Excel does not have a rank function that returns sequential numbers. All Excel’s ranking functions can return duplicated ranking numbers. Here is a solution to creating a sequential ranking system with no duplicates.
(more…)
I have shared a running total formula for a formatted table many years ago. Here is a better solution that I have converted into a custom function.
(more…)
The default setting in Excel is for all cells to be locked. If you want users to input in a cell you must unlock that cell before you apply sheet protection. You can use a formula to identify locked and unlocked cells.
(more…)
The SORT function allows you to specify which column to sort by. You can also include a hierarchy to sort by more than one column.
(more…)Financial Functions Part Two "This accounting webinar series is one of the best for practical CPD hours. It focuses on things we actually use in our day-to-day work, like Excel models and useful tips, instead of theory or topics we may never touch depending on your area of expertise. It’s clear, easy to follow, and you come away with skills you can put into practice right away. Highly recommend it for anyone wanting CPD that’s actually helpful." 10/10C WalthewNovember 2024
Using textboxes by themselves can be a good way to add extra content to a spreadsheet. Combining a text box, an icon and an arrow with some colour may make it even better.
(more…)
A recent project required editing many formulas to insert an IF function to display the NA error in certain circumstances. Here’s how I did it.
(more…)Excel has re-badged one of the Calculation Options in the Formulas tab - see below. This is a change relating to the new Python capabilities. The middle option used to ignore Data Tables (a What If feature on the Data ribbon tab). The newly named Partial option also ignores Data Tables plus any Python calculations that may take a long time to calculate. Python calculations are done in the "cloud" and require an internet connection.
Having Actuals, Budget and Variances for each month going across the page is a very common reporting construct. Here is an easy way to sum the correct YTD values as the year progresses.
(more…)
If you want to automate journal descriptions or create sentences the TEXTJOIN function is your friend. It can combine words and insert the spaces for you.
(more…)
Print ranges can accept dynamic arrays. This means you can set up print ranges that automatically expand or contract based on dynamic array spill ranges.
(more…)It is always nice to open my email in the morning and receive these types of emails. I have wished Peter well in his retirement.
I have been using the tbl prefix for my formatted table names in Excel for a long time. There are a few good reasons I use it.
(more…)You can select a formatted table when you have a cell or range selected in the table by pressing Ctr + A. But that shortcut won’t work when creating a formula that refers to a formatted table. To select the table in a formula you must click a cell in the table and press Ctrl + Shift + Spacebar.
I frequently use the shortcut Ctr + ; to enter today’s date in a cell. I thought it would be useful to be able to enter yesterday’s date in a cell. I wrote a one-line macro to do it for me.
(more…)Hyperlinks in Excel are a great way to navigate around a file, but they can be easily broken if the sheet name changes. Try these solutions using a formula to create hyperlinks that don’t break so easily. In the image below there is a formula in cell C3 that creates a hyperlink to cell A1. Here is the formula. =HYPERLINK("#"&CELL("address",A1),"<link text>") Simply change the cell reference from A1 to whatever cell you want to link to. This works for a…
When joining parts of names together, you may want vary the characters you use to separate the name. Depending on the effect you may be able to use array syntax to control the characters and their location.
(more…)
If you need to have a drop-down list automatically adjust and remove items as they are selected, here’s one technique.
(more…)
Array syntax is a powerful feature in Excel. Array syntax allows you to create a list within your formulas which makes them self-contained. Typing array syntax is difficult as you need to use a combination of quotation marks, commas or semi-colons plus braces (curly brackets).
(more…)
I recently saw a post on LinkedIn about making a drop-down list for a hyperlink interface. It was using a range name and the ADDRESS function. I thought I could streamline it with the CELL and INDIRECT function.
(more…)
Excel has functions to count the number of rows and columns in a range. It doesn’t have a function to count the number of cells in a range. We can still perform the calculation with the COUNTA function.
(more…)It was a nice start to the day to receive this email this morning.
I recently saw a post of LinkedIn (from Patryk Samborski) that used the percentage symbol with the SEQUENCE function to produce a list of decimals and I thought I would have a play with that idea.
(more…)
I recently received a request to help with a salary packaging calculation. I thought I would share the solution and explain the technique to solve it. This is a case where we have a value we need to equal but don’t know the components that make it up. We are in effect working backwards to find the missing value.
(more…)
Averages are affected by outliers. If Bill Gates walks into a room the average net worth per person jumps substantially. In the Olympics some sports deduct the top and bottom scores before calculating the average score. Here’s a formula to do that in Excel. You need the subscription version of Excel for this solution.
(more…)You can close Excel down (with multiple files open) by double clicking the green Excel icon - top left of screen. This works for the other Office apps too. If you haven't saved a file Excel will ask if you want to. To close a single file down use the X on the top right of screen.
You can use conditional formatting to insert symbols in cells. You can also use formulas with emojis. using range names makes it even easier. To insert an emoji icon in a cell you can use press the Windows key and the full stop. This opens the Emojis dialog box. In this example we are going to insert three separate symbols in formulas. I have named each cell that has an emoji. A1 = Tick, A2 = Cross and A3 =…
The typical range reference looks something like A1:A10. You always refer to the top left cell followed by the colon followed by the bottom right cell of the range. Did you know Excel can handle you entering the last cell followed by the first and it corrects it for you?
(more…)