Closed Thread
Results 1 to 11 of 11

"Sigma" function in Excel?

  1. #1
    Registered User
    Join Date
    05-19-2010
    Location
    New Orleans, LA
    MS-Off Ver
    Excel 2003
    Posts
    2

    "Sigma" function in Excel?

    Hello everyone,

    I'm new to the forum and a novice at Excel functionality. I've run into a problem recently.

    So here's what I'd like to do:

    I would like Excel to sum the "sigma" function 1+2*(x-1) for x = 1,2,3,...,n.
    Hence, for x=1 to x=4, what I want is:
    [1+2*({1}-1)]+[1+2*({2}-1)]+[1+2*({3}-1)]+[1+2*({4}-1)] = 17

    Most importantly, I would like n to be a number that I directly input into another cell.
    Thus, if I input the n value into A1, I want Excel to calculate 1+2*(x-1) for x = 1, 2, 3,..., A1.

    Is there any way Excel can accomplish this?

  2. #2
    Registered User
    Join Date
    10-22-2007
    Location
    Mumbai, India
    MS-Off Ver
    MS Excel 2007
    Posts
    59

    Re: "Sigma" function in Excel?

    Hi, I of the simplest way would be creating your own function.

    Following are the steps to do it:

    Press Alt+F11 in your excel worksheet.
    You will see a visual basic window. On the left hand side, you will have a Project window where all the available sheets are listed down. Right click and insert a module and paste the below mentioned code in the module: (From Function to End Function only)

    Please Login or Register  to view this content.
    Save the file and enable the macros by going into Tools-Macros-Security-enable macros

    In the workbook now you can use your own created function named as Sigma.

    format would be: =Sigma(cell reference)
    Last edited by Roshan10043; 05-20-2010 at 05:05 AM.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: "Sigma" function in Excel?

    Hi, a non VBA solution could be

    =SUMPRODUCT(1+2*(ROW(INDIRECT("1:"&$A$1))-1))

    In A1 your maximum value (4 in the example).

    Hope it helps you.
    Last edited by canapone; 05-19-2010 at 08:22 AM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: "Sigma" function in Excel?

    Roshan10043,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    05-19-2010
    Location
    New Orleans, LA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: "Sigma" function in Excel?

    Quote Originally Posted by CANAPONE View Post
    Hi, a non VBA solution could be

    =SUMPRODUCT(1+2*(ROW(INDIRECT("1:"&$A$1))-1))

    In A1 your maximum value (4 in the example).

    Hope it helps you.
    Thanks! This seems to work perfectly. I'll have to learn more about how it works eventually, but for now, this is great.

  6. #6
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: "Sigma" function in Excel?

    ermmm

    anybody else notice the series?

    1=1 2=4 3=9 4=16 5=25

    sigma = a1^2
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: "Sigma" function in Excel?

    Hope I didn't inadvertently give the answer to what the spreadsheet was trying to figure out!

  8. #8
    Registered User
    Join Date
    03-21-2014
    Location
    Macomb Twp., MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: "Sigma" function in Excel?

    Hi,
    I'm trying to come up with a similar vba solution to.... Sigma from j=0 to i of: L((i-j)/i)*b*t. Any help?

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: "Sigma" function in Excel?

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  10. #10
    Registered User
    Join Date
    03-21-2014
    Location
    Macomb Twp., MI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: "Sigma" function in Excel?

    sorry about that! That was my first post and I already violated forum rules...

  11. #11
    Registered User
    Join Date
    10-17-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    1

    Re: "Sigma" function in Excel?

    thanks all ,I am looking for solutions of the same question.

Closed Thread

Thread Information

Users Browsing this Thread

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

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