ericwfrost
Registered User.
- Local time
- Today, 07:33
- Joined
- Mar 20, 2009
- Messages
- 22
I think that link is broken, unless you intended the NPV function?
http://support.microsoft.com/kb/268159
How about this? I realize this is really basic but it serves my purposes...
http://support.microsoft.com/kb/268159
How about this? I realize this is really basic but it serves my purposes...
Code:
'Simple "Excel" min and max functions
'these only work with integers and only compares two numbers
[EMAIL="'eric.frost@mp2kmag.com"]'eric.frost@mp2kmag.com[/EMAIL]
Public Function EMin(nVal1 As Integer, nVal2 As Integer) As Integer
If nVal1 <= nVal2 Then EMin = nVal1
Else: EMin = nVal2
End If
End Function
Public Function EMax(nVal1 As Integer, nVal2 As Integer) As Integer
If nVal1 >= nVal2 Then EMin = nVal1
Else: EMin = nVal2
End If
End Function