Save Your Excel Formulas

BY STANLEY ZAROWIN

Q. I develop lots of special formulas for different spreadsheet files. I’d like to store them in a workbook and call them up when needed. I know I can do that with macros, but I find the language they are written in (Visual Basic) confusing and hard to use. I want to keep it simple.

A. I’ll show you an easy way, but you really should not be resistant to macros; they are very powerful tools.

To save and store a formula, begin by typing it into a cell (for example, =A1+B1 ). Now press F2, which puts Excel in the edit mode. Hold down the Shift key, highlight the formula (see screenshot below) and copy (Ctrl+C) it to the Clipboard.

Now get out of the edit mode by pressing Esc, go to the toolbar and click on Insert and Name , evoking the Define Name screen. In the space next to Names in workbook , type in a name for your formula— add_it . Note that the name must be one word, so if you use more, connect them with an underline dash (_).

Place your cursor in the box below Refers to . It will contain a reference to the location of the formula; ignore it and paste (Ctrl+V) your formula (which is still in the Clipboard) into the box (see screenshot below). Click on OK .

Whenever you want to use the formula, place your cursor in the cell where you want the formula to appear and type an equal sign plus the name you gave to the formula ( =add_it ). It will be copied into the cell and ready to work.

 

SPONSORED REPORT

Cybersecurity threats proliferating for midsize and smaller businesses

This report details how SMBs can properly protect private information from breaches, design and implement a cybersecurity policy, and create safeguards for training and education.

QUIZ

Test yourself on these often confused words

The spelling checker on your word processing program can do only so much to flag problems. Your best insurance is to learn the troublesome words that trip up writers and use them correctly by the standards of formal, written English.