Excel tips

Useful advice for interacting with Excel for Spark

Optimize spreadsheets

Workbook construction

  • Minimize the number of worksheets.

  • Remove unnecessary external links or break them all together to reduce the chance of intended behaviors.

  • For large static tables, use paste valuesarrow-up-right for any formulas to eliminate unnecessary calculations.

  • For calculations that are repeated, try to reference the calculation once rather than having it repeated many times in the workbook.

  • Try to keep the last cellarrow-up-right on each Excel sheet as close to A1 as can to minimize file sizes.

  • Try to keep a cell consistently a string or a number. Where this tends to occur would be around:

Function usage

Tips for optimizing performance obstructions (from Microsoft)

To improve general performance, we recommend reviewing Microsoft's Tips for optimizing performance obstructionsarrow-up-right. Key takeaways for Spark users include:

Excel worksheet with three colums, column A has 8 cells with values 1 through 8, column B contains the formula `=SUM($A$1:$A1)` dragged down through all 8 cells. Cell C1 contains the formula `=A1` and C2 contains the formula `=C1+A2`
Image courtesy of learn.microsoft.com

Define Named Ranges

Named Rangesarrow-up-right enable cell(s) to be referred to as a Name in formulas. These are important for Spark because they are used to identify cells with certain behaviors like inputs and outputs.

Use the Name box

This creates a Name that can be used on every worksheet (Workbook scope).

  1. Select the target cell(s).

  2. Type the name in the Name Box.

Use the New Name dialog (Ctrl+Alt+F3)

The New Name dialog to edit the name scope and add a comment to the Name.

  1. Select the target cell(s).

  2. From the Ribbon, choose the Formulas tab and click Define Name.

  3. The New Name dialog appears.

Use the Name Manager (Ctrl+F3)

The Name Manager can also be used to create, edit, delete, filter Names.

  1. Select the target cell(s).

  2. Click the Ribbon Formula tab and select Name Manager.

  3. A list of the currently defined Names on the workbook can be edited.

  4. Click New which presents the same dialog box as Excel tips.

Create from Selection (Ctrl+Shift+F3)

Create from Selection makes it very easy to define a large block of names using a formula.

  1. Put the Xinput names beside the values.

  2. Click the Ribbon Formula tab and select Create from Selection.

  3. In this case because the proposed the names for the Named Ranges are on the left, choose Left column.

  4. In this example, 4 Xinputs should be created.

Identify cells with Data Validation

From the Home tab in the ribbon, click the Find & Select menu and choose Data Validation. The cells with Data Validation will be selected. To make it easier to identify these cells, apply a color fill to the selected ranges.

Lookup optimizations

If performing large lookups, consider sorting the lookup column and using XLOOKUP(). See the example below.

Excel performance resources

Additional Excel resources

Last updated