+ Reply to Thread
Results 1 to 3 of 3

VBA to sum values from multiple sheets error

  1. #1
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    VBA to sum values from multiple sheets error

    I have the following code below that will sum the values from multiple sheets based on a specific group ID. in the attached example i have group "1-1" in cell I12 with 2 values in cells K25 & K27. the next group is "1-2" ub cell I35 with its values in cells K48 & K50, the 3rd group repeats ID "1-1" with additional values. The code will sum the values for similar group ID's. So the values for group 1 & 3 will be combined on the "DATA CHECK" worksheet.

    The issue i have is the there is additional text in column I from worksheet "1-30" that is being copied over to the "DATA CHECK" worksheet. currently if i keep everything as it is (with the duplicated text), the code works fine. But if the text if column I is changed or the text on the DATA CHECK worksheet is changed the code stops working correctly.

    Basically i would like the text not to be copied over and only the values to be summed per their corresponding group ID.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA to sum values from multiple sheets error

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Re: VBA to sum values from multiple sheets error

    Thank you! That was it!

+ 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. Replies: 9
    Last Post: 10-16-2017, 03:25 AM
  2. [SOLVED] Update values on 1 sheet with values from multiple source sheets
    By Jean Claude Baptiste in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2017, 04:56 PM
  3. Error Searching across multiple sheets sum values
    By MrArlington in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2016, 06:53 PM
  4. Replies: 1
    Last Post: 10-01-2013, 02:41 AM
  5. Replies: 5
    Last Post: 09-25-2013, 12:31 AM
  6. Copy Values only from Multiple Wkbs all sheets into 1 wokbook same sheets
    By katkins0429 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2013, 11:40 AM
  7. Search and Delete Across Multiple Sheets According to Values in Sheets
    By Tyler_Durden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2009, 04:40 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