+ Reply to Thread
Results 1 to 2 of 2

summation over many i's

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Portugal
    MS-Off Ver
    2013
    Posts
    1

    summation over many i's

    Good Afternoon.

    I want to do the following calculation on excel: Xn=(Sum from 0 to n) B^(n-i)*Yi.
    I know it's messy but (Sum from 0 to n) its like the summation sign from 0 until n, changing i and as a consequence, it will also change Yi and n may also be large.
    Ps: i already have calculated all Yi's ad have the B.

    I hope you guys can help.
    Thank you.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: summation over many i's

    First, I put B in B1 and n in B2. I put Yi in A2:A21 so n has a maximum of 20 in my sheet.

    To make the formula easier to follow, first I made 2 defined names
    Is =ROW(Sheet1!$A$1:INDEX(Sheet1!$A$1:$A$20, Sheet1!$B$2))
    Yis = =Sheet1!$A$2:INDEX(Sheet1!$A$2:$A$21,Sheet1!$B$2)

    "Is" simplifies to the numbers from 1 to n
    "Yis" adjusts to the specific Yi's based on what n is (B2)

    Then the formula (in C2) is simply

    =SUMPRODUCT($B$1^($B$2-Is)*ysi)

    I put the individual i calculations in column E to test it.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Summation (Σ) help?
    By satanisthesavior in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-24-2013, 02:50 PM
  2. Summation
    By Richard17 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-03-2012, 07:40 AM
  3. Summation
    By mbuckley56 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2010, 05:40 PM
  4. Summation
    By dparnes1 in forum Excel General
    Replies: 3
    Last Post: 01-08-2010, 11:04 AM
  5. Summation of n
    By HeirToPendragon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2008, 02:18 PM
  6. summation
    By conquertheworld in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2007, 10:39 AM
  7. Summation top x of y
    By BearingGuy in forum Excel General
    Replies: 2
    Last Post: 10-06-2006, 01:26 PM
  8. [SOLVED] Summation from a to b
    By jeblunk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2005, 10:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1