roscoe
Well-known Member
- Joined
- Jun 4, 2002
- Messages
- 1,062
- Office Version
- 365
- Platform
- Windows
- MacOS
Excel includes the builtin function SERIESSUM( x, n, m, coefficients ). All examples I have found show the coefficients as an array such as {1,1,1,1}.
I used that in the following on my spreadsheet: =SERIESSUM( C39, 1, 1, {1,1,1,1,1} ) and it works as desired.
However, I want to make a simpler version by putting this within a user defined function such as:
Seems easy enough...but VB throws an error that "{" is not a valid character. I've also tried it with application.seriessum but that fails also.
Ideas?
I used that in the following on my spreadsheet: =SERIESSUM( C39, 1, 1, {1,1,1,1,1} ) and it works as desired.
However, I want to make a simpler version by putting this within a user defined function such as:
VBA Code:
Function RateB(RateA)
RateB = SERIESSUM(RateA, 1, 1, {1,1,1,1,1} )
End function
Ideas?