Things have been hectic this week. I got a new laptop, with Window 8, and have spent hours installing software, and getting all my settings the way I like them.
I’ve also installed the latest version of Excel 2013, and am using it for my daily work, so there’s lots of new stuff to play with and learn. Continue reading “Add Picture to Excel Comment”
Are you still working on your budget for next year? I’ve just updated my budget template, and added a page on my website, to describe how it works.
The old version was created in 2002, so it was definitely time for an update! This is a simple budget layout, but might give you some ideas for working on your own workbook.
The Menu Sheet
There is a menu sheet at the front of the workbook, with two named cells – Location and Start Date. The information that you enter in those cells is used on the other sheets in the workbook.
There are four navigation buttons, to take you to the data entry sheets and the report sheets. And those sheets have a Menu button, to bring you back to the menu sheet.
Data Entry Sheets
When you’re in the planning phase, you can enter your budget categories and forecasts on the Forecast sheet.
Later, when you have Actual numbers, you can enter those on the Actual worksheet.
Year To Date Reports
To see how things are going, you can check the Year to Date report, which shows the Actual amounts, up to the current month, and Forecast amounts for the remaining months.
Conditional formatting colours the columns with Actual data, to it’s easy to see where it’s been entered.
Variance Report
The final report shows the variance between the forecast amounts and the actual amounts. Again, conditional formatting colours the columns with Actual data.
Download the Sample File
To see the details, and to download the sample file, please visit the Forecast vs Actual – Variance page on my Contextures website. The file is in Excel xlsm format, and the workbook contains macros.
Last week, I shared a tip for using a scroll bar to change the date range in a report. The scroll bar selects the end date for the report, and the columns to the left show the two previous months.
It works very nicely, without programming, and makes it easy to view a different date range.
scroll bar to change date range
Link Chart Title to Worksheet Cell
This week, we’ll add a chart that shows the data for the selected date range. Then, we’ll change the worksheet heading to a formula, so it shows the selected dates. Finally, we’ll link the chart title to the heading cells, so it also shows the selected dates.
Oops! You’ll notice that I forgot to change Axis Title, that was added at the left side of the chart. If you use one of the Quick Layout options for charts, watch for those little extras that they might add.
You can see the steps in the video, at the end of this post.
I forgot to change Axis Title at left side
Another Chart Title Example
You can see another example of linking a chart title to a worksheet cell in my post on pivot table report filters.
Instead of a simple link, you can use the IF function to affect the result, as in the formula shown below.
chart title formula with IF function
Watch the Chart Title Video
To see the steps for creating the chart, and adding the dynamic title, you can watch this short video tutorial.
This week, I’ve been working on some dashboards, and want to make it easy for people to select a date range for the report.
I experimented with drop down lists and slicers, and finally settled on a good old-fashioned scroll bar. You can click or drag the scroll bar to select an end date, and see three months of sales data, and the total.
Note: The technique does NOT require programming and is fairly easy to set up.
Choose Report Dates With Excel Scroll Bar
Scroll Bar Select the End Date
The scroll bar on the Summary sheet is linked to a named cell on another sheet, and that number is used in an INDEX / MATCH formula, to calculate the end date.
The date headings have formulas that show the selected end date, and the two prior months.
date headings have formulas
Get Data From a Pivot Table
The sales data is summarized in a pivot table, by report month, and region.
sales data is summarized in a pivot table
GetPivotData Formula
The summary table uses the GETPIVOTDATA function to pull the correct data, based on the region name and the date.
The IFERROR function returns a zero, if the data isn’t found in the pivot table.
GETPIVOTDATA function pulls the correct data
Download the Sample File
To download the sample file, and see the written instructions, please visit my Contextures web site: Select Date with Excel Scroll Bar
__________________
What’s a quick way to combine the items in two table? For example:
Table A has 3 items – Sugar, Coffee and Milk.
Table B has 2 items – Cans and Sticks.
Combine Table Items
How can you create a third table that has all the Table 1 items combined with each of the Table 2 items?
Sugar – Cans, Sugar – Sticks, etc.
third table has all item combinations
Use MS Query
I’ve done this type of item combining with programming before, but this time I used Microsoft Query, to do the work for me.
Add the two tables to the query, with no join line between them, and the results show each item in table 1 connected to each item in table 2.
two tables in MS Query with no join
Read the Details
To see the details for setting this technique up, and refreshing the results table, please visit the Cartesian Join in Excel Using MS Query page on my Contextures website.
The instructions on that show all the steps for creating the MS query, and then sending the query results to Excel, and finally, refreshing the table if the source data changes.
You can mock me if you want to, but every year I use my Excel Christmas planner to keep track of all the things I want to do, over the holiday season.
Holiday Budget sheet in Excel Holiday Planner Workbook
Where Are the Gifts?
I make a few tweaks to the planner every year, and in this year’s version there is a column to note where you hid a present, after you’ve brought it home.
That should prevent those Christmas Eve panics, while you try to find everything. Not that I’ve ever gone through that – I’m only thinking of you! 😉
Gift Ideas list in Excel Holiday Planner
Black Friday Shopping Plan
This year, the stores are even advertising Black Friday and Cyber Monday sales in Canada, so I’ll be able to use the Black Friday planning sheet, to find a few bargains.
Based on the prices that you enter, the worksheet calculates which store has the best price for each item, and which store has the most deals.
Note: If prices are the same at multiple stores, the first store will be shown in the “Best Price” column.
Price Comparison shopping list in Excel Holiday Planner
Download the Excel Christmas Planner
To download the file, you can visit the Excel Christmas Planner page on my Contextures website.
Happy Thanksgiving, and good luck finding those awesome Black Friday sales tomorrow and in the Cyber Monday sales!
Do you use the sparklines that were introduced in Excel 2010? Last week, I was building a dashboard, and wanted to show sparklines for expenses and revenue.
If you need to get a total in Excel, based on criteria, there are a few different ways that you could do it. Today, we’ll take a look at how DSUM and Excel Tables sum with multiple criteria.
Steve emailed me this week, to see if I could help with a lookup problem. He needed to find a discount rate in a lookup table, based on a product code and a date range.
Here is how I solved the problem in Excel 2010 (using fake data), and please let me know if you have a different solution.
Product Pricing Sheet
On a separate sheet, there is a list of products and their prices. This list is formatted as a named Excel table – tblProducts. The two columns in the table are also named – ProdCodeList and ProdPriceList.
Promotions Sheet
On another sheet, there is a list of the promotions that have been offered. This table is named tblPromotions, and each column is also named. We’ll use those names in the formulas.
In this table, I added an ID column at the left, and entered a unique number in each row. The existing Promo Code column has text entries, and for my solution I needed a numeric ID in each row.
Promotions table with ID column at left
Orders Worksheet
On the Orders sheet, a record is created for each new order, with the order date, product code and quantity entered. This table is named tblOrders.
NOTE: Because the formulas are being created in a table, you’ll see column references, like [@Qty], instead of cell references.
You can use an INDEX / MATCH formula to get the product price, based on the product code:
This formula returns a number from the PromoID column, if a promotion is found that matches the criteria:
Promo start date is on or before the order date
Promo end date is on or after the order date
Promo product code matches the order product code
If no matching promotion is found, the sum will be zero. Otherwise, the Promo ID will be the sum.
NOTE: This solution depends on there not being any overlaps in dates for a product promotion. Each promotion ends before another one for the same product begins.
Find the Promo Code
Once the Promo ID has been found, the Promo Code can be looked up, using INDEX and MATCH, based on the Promo ID.