# Add Formulas To Smartart

April 26, 2021 - by Bill Jelen

Challenge: For Excel fans, the biggest disappointment with Excel 2007 SmartArt diagrams is that their text is static. You cannot have the text for a SmartArt diagram dynamically calculated by Excel.

Solution: As a workaround, you can use the SmartArt tools to build a diagram and then convert the diagram to shapes. You can then apply formulas to the shapes.

In Figure 78, a database query feeds individual sales figures in columns A:C. SUMIF formulas in G4:G6 show the current sales for each rep. RANK formulas in E4:E6 figure out which rep is in the lead. VLOOKUP formulas in F8:H10 combine an associate’s name and sales total. This report is functional, but it lacks visual interest.

Follow these steps:

1. Build a SmartArt diagram that has three shapes. Use dummy text of about the right length. Use the SmartArt tools to format the diagram. In Figure 79, the Format ribbon was used to resize the individual shapes.
2. Click inside the SmartArt but not on any shape. Press Ctrl+A to select all the shapes in the SmartArt diagram (Figure 80).
3. Press Ctrl+C to copy the shapes.
4. Click outside the SmartArt and press Ctrl+V to paste the shapes onto the worksheet.
5. Delete the original SmartArt diagram.
6. Click the first shape in the worksheet. Drag to select the text in the shape. Click in the formula bar, type =H8, and press Enter. The text in the selected shape changes to reflect the result of the formula in H8.
7. Repeat step 6 to assign =H9 to the second shape and =H10 to the third shape.

You now have something that looks like a SmartArt diagram, but the text for the shapes comes dynamically from the worksheet (Figure 81).

As the query in A:C updates with new sales, the formulas in E:H and thus the text in the diagram automatically update. While Mary was on a break, Ted made a \$395 sale. The worksheet updates as shown in Figure 82.

Summary: Although SmartArt in Excel 2007 cannot dynamically update, you can use SmartArt to create a diagram and then convert it to shapes and dynamic formulas.

Title Photo: Timon Klauser on Unsplash

This article is an excerpt from Excel Gurus Gone Wild.

###### Bill Jelen is the author / co-author of: MrExcel 2021 – Unmasking Excel

This is a 5th edition of MrExcel XL. Updates for 2021 include: LAMBDA, LET, Power Query Fuzzy Match, Sort & Filter in Sheet View, Cut-out people, Save object as image, STOCKHISTORY, Wolfram Alpha Data Types, Custom Data Types from Power Query, Weather data types, bilingual spreadsheets, Performance improvements, Unhide multiple worksheets, Action pen, Collapsible task panes, LET function to re-use calculations, store formulas using LAMBDA, Recursive LAMBDA, Branching LAMBDA, Lambda to return a picture, Excel function quick reference.