Guest User

Untitled

a guest
Oct 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. =SUMPRODUCT((B1+1)^ROW(INDIRECT("1:"&B2)))
  2.  
  3. Public Function vini(x As Long, N As Long)
  4. Dim i As Long
  5. For i = 1 To N
  6. vini = vini + (x + 1) ^ i
  7. Next i
  8. End Function
  9.  
  10. Public Function summation(lower As Long, upper As Long, summand As String)
  11. Dim i As Long
  12. Dim total As Long
  13. Dim original As String
  14. Dim temporal As String
  15. total = 0
  16. For i = lower To upper
  17. temporal = Replace(summand, "i", i)
  18. total = total + Evaluate(temporal)
  19. Next i
  20. summation = total
  21. End Function
  22.  
  23. =summation(lower bound, upper bound, summand)
Add Comment
Please, Sign In to add comment