|
|
Calculating Sum Series
Greetings,
I can't seem to find a formula to do series of sums. I would like to
calculate the following series:
For n = 0 to n=B1/B3
sum: (A1+(A2*n))*A3
Thank you for your help.
Deluth
|
|
0
|
|
|
|
Reply
|
Utf
|
4/21/2010 6:51:01 AM |
|
"deluth" <deluth@discussions.microsoft.com> wrote:
> I can't seem to find a formula to do series of sums.
> I would like to calculate the following series:
> For n = 0 to n=B1/B3
> sum: (A1+(A2*n))*A3
I responded to your posting in the same "discussion group" 11 hours earlier.
I wrote....
Well, you could write the following UDF. Note that the variable names a1,
a3, etc do not have to match the cell names. I use them just to help you
relate to the above formula. You can call the UDF from Excel with any cells;
for example: =mysum(A1,A3,A6,B1,B3)
However, note that the series sum can be reduced to a single algebraic
formula. So instead of the UDF, you can write:
=A6* (A1*(B3-B1+1) + A3*(B3-B1)*(B3-B1+1)/2)
which can be simplified further to:
=A6 * (B3-B1+1) * (A1+A3*(B3-B1)/2)
UDF....
Option Explicit
Function mysum(a1 As Double, a3 As Double, _
a6 As Double, b1 As Double, b3 As Double) _
As Double
Dim s As Double, n As Double
s = 0
For n = 0 To b3 - b1
s = s + (a1 + (a3 * n)) * a6
Next
mysum = s
End Function
|
|
0
|
|
|
|
Reply
|
Utf
|
4/21/2010 7:03:01 AM
|
|
|
1 Replies
630 Views
(page loaded in 0.038 seconds)
Similiar Articles: Calculating Sum Series - microsoft.public.excel.miscGreetings, I can't seem to find a formula to do series of sums. I would like to calculate the following series: For n = 0 to n=B1/B3 sum... Calculating a Series - microsoft.public.excel.miscPlease help me put together a function to calculate a sum series as follows: For n = 0 to n=(B3-B1): sum ((A1 + (A3*n)) * A6) Thank you, Delut... automatic sum calculation of cell values - microsoft.public.word ...Calculate the sum of the values in a field - Access - Office.com Use the DSum function in Access to calculate the sum of the values in a field in VBA code, macros, or ... sum in two tables to calculate QOH - microsoft.public.access ...Calculating Sum Series - microsoft.public.excel.misc sum in two tables to calculate QOH - microsoft.public.access ... Calculating Sum Series - microsoft.public.excel.misc ... Add Calculated Series in SSRS not there - microsoft.public ...Calculating Sum Series - microsoft.public.excel.misc Is there any way to calculate weight (ounces into pounds ... how do i weight a ... of the time, we only know how to ... How to calculate a coloured cell as a number for a sum ...Calculating Sum Series - microsoft.public.excel.misc... a1, a3, etc do not have to match the cell ... the following formula in place: =IF(SUM ... Calculate a moving average - microsoft.public.excel.misc ...Calculating Sum Series - microsoft.public.excel.misc I would really like to use the functionality "Add Calculated Series" when I right-click eg. Pivot Table Help - Gross Margin % & % of Sales - microsoft ...calculate percent of a col in pivot report - microsoft.public ... Pivot Table Help ... Calculating Sum Series - microsoft.public.excel.misc Pivot Table Help - Gross Margin ... Auto sum / total 2 fields in a record - microsoft.public.access ...Calculating Sum Series - microsoft.public.excel.misc Auto sum / total 2 fields in a record - microsoft.public.access ... Calculating Sum Series - microsoft.public.excel ... Simplify Weighted Average Formula - microsoft.public.excel ...Calculating Sum Series - microsoft.public.excel.misc Greetings, I can't seem to find a ... How to Calculate Weighted Average | eHow.com When you need to average data ... How to Calculate SeriesWhen you need to add up a set of numbers in a pattern, whether it's geometric or arithmetic in nature, you can use simple formulae to find the sum rather than adding ... How to Calculate the Sum of a Geometric Series | eHow.comA geometric series is a sequence of numbers created by multiplying each term by a fixed number to get the next term. For example, the series 1, 2, 4, 8, 16, 32 is a ... How do you calculate the sum of an infinite series? - Yahoo! AnswersBest Answer: Most of the time, we only know how to approximate the overall value of the series by adding together some number of it's terms until we are ... Calculating the Sum of a series - Physics Help and Math Help ...Homework & Coursework Questions > Calculus & Beyond ... [tex]\sum_{k=1}^{\infty}(\frac{1}{5^k}-\frac{1}{k(k+1)})[/tex] Now by partial ... Your last two series do not ... Calculating sum of a series of numbers using C | Crazy Programmer ...If you want to calculate the sum of a series of numbers. Let’s starts with a very simple series i.e. . Here is how you can do it. This code will ask for ... 7/21/2012 11:28:49 PM
|
|
|
|
|
|
|
|
|