+ Reply to Thread
Results 1 to 11 of 11

Sum 2 Ranges and put resulta in other Range

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Sum 2 Ranges and put resulta in other Range

    Hi.
    I have a book with some records that i want to sum some values in 2 ranges and put the results in one other range, but i can't do this. I have:
    Please Login or Register  to view this content.

    This Works for a single cell, but i want for a range of cells. For exemple (This is like pseudocode....)

    Please Login or Register  to view this content.

    Get the ideia? It is possible to do it?
    Thanks.... and sorry my bad English
    Attached Files Attached Files
    Last edited by Burita; 07-04-2019 at 11:01 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sum 2 Ranges and put resulta in other Range

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Sum 2 Ranges and put resulta in other Range

    Hi,

    Assuming you have data in AA2 & AF2, and you want to sum in AG2,
    How about:

    Please Login or Register  to view this content.
    John.

    "I excel at jumping to conclusions"

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,288

    Re: Sum 2 Ranges and put resulta in other Range

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Re: Sum 2 Ranges and put resulta in other Range

    Hi again.
    Richard i already attach the file. Sorry...

    jomaor1 i put the code in the file but gives a error.
    I send the file with the error...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Re: Sum 2 Ranges and put resulta in other Range

    AliGW i already put the code between those tags.
    Thanks for remind me.

  7. #7
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,255

    Re: Sum 2 Ranges and put resulta in other Range

    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

  8. #8
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Re: Sum 2 Ranges and put resulta in other Range

    daboho,
    i put that code in my Project but gives a error "Out of Stack Space".
    I attatch the file with the new code.

    Thanks
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Re: Sum 2 Ranges and put resulta in other Range

    Please,
    someone give a help on this. I realy need it.

    Thanks

  10. #10
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Sum 2 Ranges and put resulta in other Range

    Please Login or Register  to view this content.

    maybe

  11. #11
    Registered User
    Join Date
    07-30-2015
    Location
    Portugal
    MS-Off Ver
    2010
    Posts
    20

    Re: Sum 2 Ranges and put resulta in other Range

    mohadin,
    this gives the total sum of the collumnA and collumnB int every cell in collumn C
    See attach.

    Thanks
    Attached Files Attached Files

+ 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. VBA: Get data from multiple sheet in sheet named RESULTa
    By vikim in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-08-2019, 04:02 PM
  2. Using a range to sum 2 other ranges
    By Straywire in forum Excel General
    Replies: 3
    Last Post: 08-23-2017, 02:51 PM
  3. Setting a Print range for 1 range within multiple ranges
    By DKsmash2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2016, 07:33 PM
  4. Match Value in range with value in another range & output third value -vlookup for ranges?
    By tomhardy1491 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-25-2015, 01:24 PM
  5. How to get a range from other ranges?
    By bebo021999 in forum Excel General
    Replies: 1
    Last Post: 07-25-2011, 03:48 AM
  6. Creating a Range from two specified Ranges
    By PeterWilliams in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2006, 07:10 PM
  7. How do I write formula to compare two values and pull the resulta.
    By Renee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-10-2005, 10:06 PM

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