Consulting

Results 1 to 5 of 5

Thread: HOW TO ADD 2D NAMED RANGES WITH SAME DIMENSIONS?

  1. #1
    VBAX Regular
    Joined
    Jun 2019
    Posts
    50
    Location

    HOW TO ADD 2D NAMED RANGES WITH SAME DIMENSIONS?

    Hello, I have MULTIPLE named ranges with the same dimensions: 100 rows, 200 columns.
    I want to add all the named ranges together to one range. How do I do that?
    I have attached a easier version of what I am trying to do below- it is a subroutine.

    Also, if there is a better way to code it or make it look better please let me know.


    testing.xlsm

  2. #2
    What do you want to achieve precisely?
    Add the values of all the cells of all the named ranges? =SUM(rng1_,rng2_,rng3_)
    Or add the value of each individual cell of each individual named range? SUM(D2,G5,H2), SUM(E2,H5,I2), ....
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  3. #3
    VBAX Regular
    Joined
    Jun 2019
    Posts
    50
    Location
    Hello,
    I want to add each individual same cell location's value of each individual named range and put the sum of all of them into a range named SumOfNamedRanges.

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,875
    6 methods (4 macros and 2 formuale) in the attached.
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  5. #5
    VBAX Regular
    Joined
    Jun 2019
    Posts
    50
    Location
    p45cal, I cannot thank you enough. I am crying thank you so so much- you are amazing and this was exactly what I needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •