Simplify your Excel formulas with named constants
Takeaway: If use a constant in your Microsoft Excel workbook formulas, such as sales tax or car mileage allowance, then check out how using a named constant can save yourself considerable time.
Do you use a constant in your Microsoft Excel workbook formulas, such as sales tax or car mileage allowance? If so, you know that if the value changes, you have to manually make the change where it appears in every single formula in your workbook.
You can save yourself considerable time searching for and updating those formulas by creating a named constant. For example, suppose employees are reimbursed $0.37 per mile for car travel. To create a named constant for all formulas that calculate mileage allowance, follow these steps:
- Press [Ctrl][F3].
- Enter MileageAllowance in the Names In Workbook text box.
- In the Refers To text box, enter the following formula:
=.37
- Click Add and then click OK.
Now you can use the named constant in a formula. For example, if the number of miles for car travel is entered in B10, the formula for Mileage Reimbursement would be: =B10*MileageAllowance.
If the allowance changes to $0.40 per mile, you would follow the following steps to change the constant where it appears in every formula in your workbook:
- Press [Ctrl][F3].
- Select MileageAllowance.
- In the Refers To text box, enter the following formula:
=.4
- Click Add and then click OK.
You'll be amazed by how much time named constants will save you with your workbook formulas.
Miss a tip?
Check out the Microsoft Excel archive, and catch up on our most recent Excel tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.
Print/View all Posts Comments on this article
SponsoredWhite Papers, Webcasts, and Downloads
- Live Webcast: Simplified IT with Software-as-a-Service (SaaS) ZDNet
- Webcast: How to Get the Most Out of Microsoft Windows Deployments with Intelligent iSCSI Storage Dell EqualLogic
- Software Testing 3.0: The Continuing Evolution of Software Testing LogiGear
- Live Webcast: Exchange Archiving: Avoid Journaling & Stubbing Traps and Stop the Domino Effect Mimosa Systems
- Tangled Web: Undercover Threats, Invisible Enemies MessageLabs
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET

