+ Reply to Thread
Results 1 to 5 of 5

How to multiply a range of values without creating a new column

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to multiply a range of values without creating a new column

    Hi, I have a column called A1: A1000, whose values are the monthly return of a stock. My task is to get the value of: (1+A1)*(1+A2)*(1+A3)* ... * (1+A1000).

    It is easy if I create a new column equal to 1+A1, 1+A2, ... 1+A1000, and then use the product() function. But is there a clever way that I don't need to create a new column and can also get the (1+A1)*(1+A2)*(1+A3)* ... * (1+A1000) value? This is really helpful if no more columns need to be added.

    Many thanks for your advice.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to multiply a range of values without creating a new column

    Hi

    Maybe

    =SUM(A:A)+COUNTA(A:A)


    Edit: OR do you mean?

    =SUM(A:A)*COUNTA(A:A)
    Last edited by Fotis1991; 08-01-2012 at 02:45 AM. Reason: Edit
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to multiply a range of values without creating a new column

    How about an array formula..

    =PRODUCT(1+A1:A1000)

    Confirm with Ctrl+Shift+Enter not just Enter
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to multiply a range of values without creating a new column

    Quote Originally Posted by Ace_XL View Post
    How about an array formula..

    =PRODUCT(1+A1:A1000)

    Confirm with Ctrl+Shift+Enter not just Enter
    This is a super answer. Job done! thanks a lot

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to multiply a range of values without creating a new column

    If you wrap PRODUCT() in SUMPRODUCT() you avoid having to use Ctrl+Shift+Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to 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