+ Reply to Thread
Results 1 to 9 of 9

SUM with formulas inside

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    SUM with formulas inside

    Is there a way to sum for formulas.
    I want to sum the formula shown in the screenshot.

    I know it can be done using another row to calculate, and then using a simple SUM, but wanted to know if it was possible to have formulas inside SUM.

    Capture.PNG
    Last edited by Un-Do Re-Do; 12-01-2020 at 06:28 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUM with formulas inside

    You don't make it clear whether you want to do that for individual pairs of x and y or for all of them in one formula, but you can use this in H1 for the first pair:

    =SUM(2*B1,B2^2)

    then copy across as required.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: SUM with formulas inside

    Thanks for the quick response.
    It is for all of them, and without copying across, so just in one cell.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: SUM with formulas inside

    Then this:

    =SUM(2*(B1:F1)+(B2:F2)^2)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: SUM with formulas inside

    That actually gives an error. #VALUE! is the result.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUM with formulas inside

    You can use this array* formula:

    =SUM(2*B1:F1,B2:F2^2)

    *Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual Enter.

    Hope this helps.

    Pete

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: SUM with formulas inside

    Apols. I forgot to mention that it's an array formula.

  8. #8
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: SUM with formulas inside

    Wow, it actually works.
    Thanks to both for the answer.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUM with formulas inside

    Of course they work !!

    Glad to help, and thanks for the rep.

    Pete

+ 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] Find and Replace for Inside Formulas
    By VICEROY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2013, 01:03 AM
  2. Protect formulas inside a TABLE
    By jjorolancleofe in forum Excel General
    Replies: 0
    Last Post: 02-01-2013, 05:30 PM
  3. Formulas inside Excel Charts
    By jeskit in forum Excel General
    Replies: 4
    Last Post: 04-11-2011, 05:01 AM
  4. code to add formulas to a range with previous formulas appearing inside the new one
    By Excel-o-ratoR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2010, 06:02 AM
  5. Multiple formulas inside a formula
    By greenie in forum Excel General
    Replies: 4
    Last Post: 04-27-2010, 08:08 PM
  6. Varibles inside formulas!
    By jonaslol in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-19-2007, 06:47 AM
  7. Evaluating References inside Formulas
    By Stevo2k5 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2007, 05:13 PM

Tags for this Thread

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