+ Reply to Thread
Results 1 to 8 of 8

consolidate/sum ranges cell for cell

  1. #1
    Registered User
    Join Date
    12-11-2019
    Location
    london
    MS-Off Ver
    2007
    Posts
    50

    consolidate/sum ranges cell for cell

    Hi Again guys,

    I have another question.

    I have a Workbook with a master sheet and a button to import four sheet from another workbook.
    I would like to consolidate a specific range in sheet two of the newly imported four sheets and consolidate and sum range B3:Z9 cell for cell not as a full range and and paste them into B3:Z9 in the master sheet.

    e.g cell SheetB3 + SheetB3 = Put in B3 in master and so on for B4, B5....

    Another problem is that sometimes 2 x four sheet is imported and sometime 3 x four sheet is imported.
    the range is always the same, however sheet name of the four is always different and the number of sheets imported can vary.

    I was thinking about doing it like this.

    Please Login or Register  to view this content.

    However I don't think this is the way to go.
    Help is really appreciated
    Last edited by Kaizan; 03-12-2020 at 07:23 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: consolidate/sum ranges cell for cell

    If a number of sheets before import is constant (say 3) and you import new sheets to be inserted after already existing sheets you may use:

    Please Login or Register  to view this content.
    If a number of sheets before import varies and you import new sheets to be inserted after already existing sheets you may use:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    12-11-2019
    Location
    london
    MS-Off Ver
    2007
    Posts
    50

    Re: consolidate/sum ranges cell for cell

    Hi Kaper,

    Thank you could you also advise on the actual consolidation ?

    Thanks



    E.g

    Please Login or Register  to view this content.

    Sum all cells, cell for cell for a specific range to a already existing master sheet called "Resources" from the sheets For i = sheetsbeforeimport + 1 To Worksheets.Count
    Last edited by Kaizan; 03-13-2020 at 05:37 AM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: consolidate/sum ranges cell for cell

    Is there already something in cells G11 etc in "Master" sheet?
    if so, I'd probably do it this way:
    Please Login or Register  to view this content.
    If G11 is empty the above shall also work, but I'd probably insert in G11 a 3d-sum through all added worksheets formula, copy to all needed cells and then copy and paste special as values only.

    It is all the time a bit vague, because there is no sample attachment file (see yellow box above first post) :-)

  5. #5
    Registered User
    Join Date
    12-11-2019
    Location
    london
    MS-Off Ver
    2007
    Posts
    50

    Re: consolidate/sum ranges cell for cell

    Thanks Kaper.. For better transperancy I added:

    I have a lot of sheets in a workbook named SomethingA - Resources SomethingB - Resources SomethingC - Resources etc...................

    I am trying to sum a specific range inside every one of these sheets which will change variable before the dash in the name and the amount of sheet will change. I would like the sum to appear in a sheet called "Resources" which i the first sheet in the workbook. My code so far after using you initial idea:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: consolidate/sum ranges cell for cell

    see yellow box

  7. #7
    Registered User
    Join Date
    12-11-2019
    Location
    london
    MS-Off Ver
    2007
    Posts
    50

    Re: consolidate/sum ranges cell for cell

    Sorry about that actually thought it was attached
    Attached Files Attached Files

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: consolidate/sum ranges cell for cell

    Sorry, I cant see sample data and expected result in sample file

+ 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. pivot table to multiple consolidate ranges
    By indub in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 06-12-2018, 01:00 PM
  2. [SOLVED] Consolidate the set of cell contents to single cell
    By Sekars in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2017, 08:00 AM
  3. [SOLVED] Use 2 Different Named Cell Ranges To Return Values From 1 Of the Ranges In Formula
    By DESSTRO in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-20-2017, 08:37 PM
  4. Troubleshoot macro to consolidate ranges
    By Ppsych in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 03:01 PM
  5. [SOLVED] consolidate data, dynamic ranges
    By Excel GuRu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2006, 09:50 AM
  6. Need to consolidate multiple ranges
    By Excel GuRu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 09:15 AM
  7. [SOLVED] Consolidate Ranges into 1 Workbook
    By John in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2005, 11:15 AM

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