+ Reply to Thread
Results 1 to 4 of 4

what are volatile functions

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    what are volatile functions

    What are volatile functions and why would I want to activate them in the code below?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: what are volatile functions

    That function is passed everything it needs to calculate a result, so there is no need to make it volatile, and doing so will just slow the workbook down.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,833

    Re: what are volatile functions

    You might find this interesting: http://www.decisionmodels.com/calcsecretsi.htm

    IMO, making a UDF volatile is a "band-aid" covering the programmer who did not want to code the UDF correctly. As shg points out, this UDF seems well coded and does not need to be volatile.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: what are volatile functions

    1 sum(--(match(A1:A15,A1:A15,)=row(A1:A15))) as CSE returns the same
    2 the code is not so good. it would be much better at first do: range=array

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 06-19-2015, 07:27 AM
  2. Volatile Functions causing issues
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-21-2014, 10:40 AM
  3. Replies: 3
    Last Post: 08-04-2014, 11:13 AM
  4. Volatile Functions needed for Roulette
    By Nickmsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-06-2013, 07:57 PM
  5. [SOLVED] COUNTIFS Volatile or Non-Volatile?
    By sinspawn56 in forum Excel General
    Replies: 8
    Last Post: 12-25-2012, 12:01 PM
  6. Volatile functions across books
    By jcarlosd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2008, 05:46 AM
  7. Restricting the Automatic Recalculation of Volatile Functions
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-29-2005, 11:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1