Is UDF volatile or formulas?

ljubo_gr

Active Member
Joined
Dec 6, 2014
Messages
251
Office Version
  1. 2013
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:
Strange. It was FORMULATEXT() :eeek:
I had this formula in cell G3 to G752 =IF(A3=TRUE;"";FORMULATEXT(B3))
Thank You Rory Barry Joe, God Bless You
Thank you for great MrExcel!
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

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