From the Not Just Numbers blog:
Do you have charts with titles that regularly need to be changed? Or text boxes in diagrams that need to be edited to reflect the numbers shown?
It is really easy to have these update automatically, but it is not obvious how you are supposed to do it in Excel.
Say you have several charts that feature in a monthly pack and each chart refers to the current month in its title. “Cumulative Profit to November 2014” for example.
In a normal cell we can create this sentence in a formula. If A1 contains the period-end date, then we can use the following:
=”Cumulative Profit to “&TEXT(A1,”mmmm yyyy”)
Unfortunately, we cannot just type a formula like that into a chart title or a text box, but we can do the next best thing.
We could type our function above into, say, cell B1, then go to edit the chart title or text box (so we can see the cursor ready for us to type). We can then click in the formula bar and type =B1. The chart title or text box will then always show the contents of cell B1.
No more editing charts each month!
We can use exactly the same technique in a text box, which might refer to this month’s sales figure (held in cell A2). Our function would be something like:
=”Your sales this month are “&TEXT(A2,”£#,0”)
Once the text in our charts and diagrams is automated like this, they can simply be an output from the numbers, requiring no manual input.
If you enjoyed this post, go to the top of the blog, where you can subscribe for regular updates and get two freebies “The 5 Excel features that you NEED to know” and “30 Chants for Better Charts”.