Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function basDiv(Divd As Variant, Divr As Variant) As Long
Static MyDivr As Long
If (Divr = 0 And MyDivr <> 0) Then
GoTo Calc
End If
If (IsMissing(Divr) And MyDivr = 0) Then
MyDivr = 1
GoTo Calc
Else
MyDivr = Divr
End If
If (Divr = 0) Then
MyDivr = 1
End If
If (IsNull(Divr)) Then
MyDivr = 1
End If
If (IsNull(MyDivr)) Then
MyDivr = 1
End If
Calc:
basDiv = Divd / MyDivr
End Function