Is UDF volatile or formulas?

ljubo_gr

Board Regular
Joined
Dec 6, 2014
Messages
244
Office Version
  1. 2016
Platform
  1. Windows
Hello dear MrExcel,

Is this formula volatile:


=IF(ISNUMBER(SUBSTITUTE(LEFT(SUBSTITUTE(REPLACE(B33;1;AGGREGATE(15;6;FIND({0\1\2\3\4\5\6\7\8\9};B33;FIND(" ";B33;SEARCH("cmr:";B33)+5));1)-1;"");" ";REPT(" ";20));20);".";"")+0);SUBSTITUTE(LEFT(SUBSTITUTE(REPLACE(B33;1;AGGREGATE(15;6;FIND({0\1\2\3\4\5\6\7\8\9};B33;FIND(" ";B33;SEARCH("cmr:";B33)+5));1)-1;"");" ";REPT(" ";20));20);".";"")+0;0)

Code:
=SUMPRODUCT(('sheet1'!$D$8:$D$1440<>"inventura")*('sheet1'!$D$8:$D$1440<>"pretakanje")*MMULT(--('sheet1'!$E$8:$L$1440=List!D33);{1;1;1;1;1;1;1;1}))>0

Or this UDF:
Code:
Function LastNumber(G As String) As Variant
  Dim X As Long, Num As Long, Words() As String
  Words = Split(G)
  LastNumber = ""
  For X = UBound(Words) To 0 Step -1
    Words(X) = Replace(Replace(Words(X), ".", ""), ",", ".")
    If Replace(Words(X), "-", "") & " " Like "[Ss][5-14][!0-9]*" Or Replace(Words(X), "-", "") Like "[Ss]1[0-2]*" Then
      LastNumber = ""
      Exit Function
    ElseIf Val(Words(X)) <> 0 Then
      LastNumber = Val(Words(X))
      Exit Function
    End If
  Next
End Function

Thanks!
 
Last edited by a moderator:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
None of those are volatile as far as I can see.
 
Upvote 0
None of those are volatile as far as I can see.
Rory, out of curiosity, what determines whether or not a non-VBA Excel formula is volatile or not?
 
Last edited:
Upvote 0
Typically it's only formulas that have don't take direct inputs for their calculations. e.g. OFFSET, INDIRECT, TODAY, NOW.
 
Upvote 0
I forgot one more from same sheet:
Code:
=SUMPRODUCT(ISERR(SEARCH("inventura";'sheetz1'!$D$8:$D$1440))*('sheetz1'!$E$8:$L$1440))

Isn't MMULT volatile?
 
Last edited:
Upvote 0
No MMULT isn't volatile. Why do you think any of these are volatile and what does a protected sheet have to do with volatility?
 
Upvote 0
Code:
=IF(LEN(N4)>8;"";"yaddayaddayaddayadda..200 char")

N4= big If and Sum formula"Allright"
Using 32bit Office2013,
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top