Table of Contents
Quick Links
What Is a Volatile Function?
The Benefits of Using Volatile Functions
The Drawbacks of Using Volatile Functions
How to Prevent Volatile Functions From Calculating Automatically
Stop All Volatile Functions From Calculating Automatically
Freeze a Volatile Time or Date Function
Copy and Paste the Cell Value
Examples of Volatile Functions
Home Software Tutorial Office Software Everything You Need to Know About Volatile Functions in Excel

Everything You Need to Know About Volatile Functions in Excel

Feb 06, 2025 pm 06:16 PM

  • What Is a Volatile Function?
  • The Benefits of Using Volatile Functions
  • The Drawbacks of Using Volatile Functions
  • How to Prevent Volatile Functions From Calculating Automatically
  • Examples of Volatile Functions

Of the hundreds of Excel functions, there a few that are known as volatile. In this article, we'll look at what volatile functions are, their pros and cons, how to deal with them if they're causing issues in your spreadsheet, and some of the more straightforward examples.

What Is a Volatile Function?

A volatile function is a function that recalculates every time a change is made to an Excel worksheet, or whenever an existing workbook is reopened. Going one step further, when a volatile function is recalculated, any cell dependent on that volatile function is also recalculated, and so is any cell that depends on that dependent—and so on!

In this example, we have used the NOW function, which shows the current date and time (more on this later). Any time a change is made within the spreadsheet, Excel re-evaluates that cell to see whether it needs to be updated with a new date or time.

Everything You Need to Know About Volatile Functions in Excel

Whichever volatile function you use, what you see in the cell can change, even if the function's arguments remain the same.

The Benefits of Using Volatile Functions

The greatest benefit—and also the primary function—of Excel's volatile functions is that they provide up-to-date information. This is useful if you're projecting a live spreadsheet onto a screen for an audience to see, like in a business meeting. It's also a handy tool if you have an Excel dashboard and want to monitor the situation as time passes, or if you're involved in finance and want to keep track of market changes.

The Drawbacks of Using Volatile Functions

Volatile functions get some bad press in many Excel tutorials and articles, mostly due to the way they impact the spreadsheet's performance. Adding a volatile function to a small spreadsheet is unlikely to result in any major issues. However, in worksheets with sizable data sets and many formulas, a single volatile function can slow the program's performance significantly.

In the worst-case scenario, it can make Excel crash, especially if you're using a low-memory computer, and you have lots of cells depending on the volatile function. Even on a powerful computer, using lots of volatile functions in one spreadsheet can make Excel run slowly.

Even Microsoft itself recommends you reduce the number of volatile functions you use to speed up your spreadsheet. More specifically, it suggests using alternative methods to get the same or similar outcomes, such as INDEX instead of OFFSET, or CHOOSE instead of INDIRECT.

How to Prevent Volatile Functions From Calculating Automatically

If, as mentioned above, a volatile function is causing performance issues, there are several ways to stop it from calculating automatically each time you make any changes to your workbook. First, we'll look at how to affect the whole workbook's volatile functions, and then we'll look at other ways to turn individual volatile functions into regular functions.

Stop All Volatile Functions From Calculating Automatically

The first option is to change the calculation settings in Excel. This won't change how the functions themselves work, but it will affect when they are calculated. To do this, click the "Calculation Options" button in the Formulas tab on the ribbon, and choose "Manual."

Everything You Need to Know About Volatile Functions in Excel

This changed setting instantly applies to all spreadsheets you already have open, as well as all workbooks you open subsequently, until you change it back. Also, cells containing volatile functions that have not updated automatically due to this change will be reformatted with strikethrough (also known as a stale value). This is to remind you that the information in that cell is not up-to-date.

Now, the volatile functions will only be calculated when you click either "Calculate Now" to calculate the entire workbook and all open workbooks, or "Calculate Sheet" to calculate the active sheet. Both options can be found in the Formula tab on the ribbon. You can also use the F9 Excel keyboard shortcut to perform the same action as Calculate Now, or Shift F9 to perform the same action as Calculate Sheet.

Everything You Need to Know About Volatile Functions in Excel

Freeze a Volatile Time or Date Function

If you have a volatile time or date function in your spreadsheet, meaning it updates automatically with your computer's time and date, you can turn it into a frozen time or date.

To do this, double-click the cell containing the function, place your cursor on the part of the formula containing the time or date function, and press F9. This will then turn the time or date into a serial number, and when you press Enter, it'll convert that serial number into a static time or date.

Remember, though, that this won't update when the time or date changes, and it won't adopt the strikethrough formatting, as it's no longer a volatile function.

Copy and Paste the Cell Value

Another way to turn a volatile function into a standard value is to copy the cell containing the result of the volatile function, and paste the value only in the same cell.

For example, if you have a cell containing a random number generated through a volatile function, select the cell, press Ctrl C, and then press Ctrl Shift V in the same cell. This will paste the volatile random number as a fixed random number, and because the cell is already correctly formatted, the value will appear exactly as it did when it was volatile.

Examples of Volatile Functions

Here are some of Excel's most basic volatile functions:

Name

Syntax

What It Does

NOW

=NOW()

Returns the serial number for the current date and time, turns the cell into a customized number format, and then turns the serial number into the current date and time in standard Excel form.

TODAY

=TODAY()

Returns the serial number for the current date, turns the cell into a date number format, and then turns the serial number into the current date.

RAND

=RAND()

Returns a random number between 0 and 1.

RANDBETWEEN

=RANDBETWEEN(a,b)

Returns a random number between values a and b, as determined by the values or cell references you add to the formula.

Excel also has some more advanced volatile functions, such as OFFSET and INDIRECT. To use these, head to Excel, click the "fx" icon next to the formula bar, and use Excel's Insert Function guide to give them a try.

Everything You Need to Know About Volatile Functions in Excel


As well as limiting the number of volatile functions you use in Excel to ensure your workbook's performance, there are many other ways to speed up your spreadsheet, including reducing the formatting, simplifying your formulas, and compressing any images.

The above is the detailed content of Everything You Need to Know About Volatile Functions in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to Create a Timeline Filter in Excel How to Create a Timeline Filter in Excel Apr 03, 2025 am 03:51 AM

In Excel, using the timeline filter can display data by time period more efficiently, which is more convenient than using the filter button. The Timeline is a dynamic filtering option that allows you to quickly display data for a single date, month, quarter, or year. Step 1: Convert data to pivot table First, convert the original Excel data into a pivot table. Select any cell in the data table (formatted or not) and click PivotTable on the Insert tab of the ribbon. Related: How to Create Pivot Tables in Microsoft Excel Don't be intimidated by the pivot table! We will teach you basic skills that you can master in minutes. Related Articles In the dialog box, make sure the entire data range is selected (

You Need to Know What the Hash Sign Does in Excel Formulas You Need to Know What the Hash Sign Does in Excel Formulas Apr 08, 2025 am 12:55 AM

Excel Overflow Range Operator (#) enables formulas to be automatically adjusted to accommodate changes in overflow range size. This feature is only available for Microsoft 365 Excel for Windows or Mac. Common functions such as UNIQUE, COUNTIF, and SORTBY can be used in conjunction with overflow range operators to generate dynamic sortable lists. The pound sign (#) in the Excel formula is also called the overflow range operator, which instructs the program to consider all results in the overflow range. Therefore, even if the overflow range increases or decreases, the formula containing # will automatically reflect this change. How to list and sort unique values ​​in Microsoft Excel

If You Don't Rename Tables in Excel, Today's the Day to Start If You Don't Rename Tables in Excel, Today's the Day to Start Apr 15, 2025 am 12:58 AM

Quick link Why should tables be named in Excel How to name a table in Excel Excel table naming rules and techniques By default, tables in Excel are named Table1, Table2, Table3, and so on. However, you don't have to stick to these tags. In fact, it would be better if you don't! In this quick guide, I will explain why you should always rename tables in Excel and show you how to do this. Why should tables be named in Excel While it may take some time to develop the habit of naming tables in Excel (if you don't usually do this), the following reasons illustrate today

How to Format a Spilled Array in Excel How to Format a Spilled Array in Excel Apr 10, 2025 pm 12:01 PM

Use formula conditional formatting to handle overflow arrays in Excel Direct formatting of overflow arrays in Excel can cause problems, especially when the data shape or size changes. Formula-based conditional formatting rules allow automatic formatting to be adjusted when data parameters change. Adding a dollar sign ($) before a column reference applies a rule to all rows in the data. In Excel, you can apply direct formatting to the values ​​or background of a cell to make the spreadsheet easier to read. However, when an Excel formula returns a set of values ​​(called overflow arrays), applying direct formatting will cause problems if the size or shape of the data changes. Suppose you have this spreadsheet with overflow results from the PIVOTBY formula,

How to Use the PIVOTBY Function in Excel How to Use the PIVOTBY Function in Excel Apr 11, 2025 am 12:56 AM

Quick Links The PIVOTBY Syntax

Excel MATCH function with formula examples Excel MATCH function with formula examples Apr 15, 2025 am 11:21 AM

This tutorial explains how to use MATCH function in Excel with formula examples. It also shows how to improve your lookup formulas by a making dynamic formula with VLOOKUP and MATCH. In Microsoft Excel, there are many different lookup/ref

How to change Excel table styles and remove table formatting How to change Excel table styles and remove table formatting Apr 19, 2025 am 11:45 AM

This tutorial shows you how to quickly apply, modify, and remove Excel table styles while preserving all table functionalities. Want to make your Excel tables look exactly how you want? Read on! After creating an Excel table, the first step is usual

How to Use Excel's AGGREGATE Function to Refine Calculations How to Use Excel's AGGREGATE Function to Refine Calculations Apr 12, 2025 am 12:54 AM

Quick Links The AGGREGATE Syntax

See all articles