+ Reply to Thread
Results 1 to 7 of 7

How to dynamically generate the Formula

  1. #1
    Registered User
    Join Date
    09-18-2009
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    25

    How to dynamically generate the Formula

    Hi,

    I need to apply the following formula in a single cell

    =(C3*C3)+(D3*D3)+(E3*E3)...


    Is there anyway to achieve this dynamically instead of manually tying the formula ?
    Last edited by simi; 01-04-2013 at 03:24 AM.

  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 dynamically generate the Formula

    One simple way to do is this,

    In C4 put this. =C3*C3. Drag across as mutch as you want. This will be a helper and hidden row.

    Then use something like this: =SUM(C4:CH4)
    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 Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to dynamically generate the Formula

    Also try the SUMSQ function. In your case
    Please Login or Register  to view this content.
    ( adapt range as needed) or somewhat more general
    Please Login or Register  to view this content.

  4. #4
    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 dynamically generate the Formula

    @ Pepe

    SUMQ I see this function for first time! I NEVER heard about this. Excellent!

    Which could be the problem that your second suggestion gives wrong result?

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to dynamically generate the Formula

    Use this in E4 and drag across

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-18-2009
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: How to dynamically generate the Formula

    Hi,

    I am sorry there is a typo error in the formula. The correct formula as follows
    =(C3*C7)+(D3*D7)+(E3*E7) ... +(Z3*Z7)

  7. #7
    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 dynamically generate the Formula

    post#3?....

+ 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