+ Reply to Thread
Results 1 to 9 of 9

How to sum from multiple worksheets by matching unique codes

  1. #1
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    35

    How to sum from multiple worksheets by matching unique codes

    I tried using the Sumproduct(sumif(Indirect.... formula but this isn't giving me the result. Please suggest way forward.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    Note that the name for sheet RT2 has a leading space that the other sheets dont have

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    hmm OK, fix that and it looks like your formulas work now

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    Here is a shorter way to do what you wanted.
    1. Create a list of all your sheet names
    2. Give that list a range name (I used Sheets
    3. Use this...
    =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!A2:A40"),A2,INDIRECT("'"&Sheets&"'!C2:C40")))

  6. #6
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    35

    Re: How to sum from multiple worksheets by matching unique codes

    Hi,

    I have checked that and corrected the same as per your advice. However, the sum total of column C is generated but that in column D & E is showing Zero. can you please check and advice.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    Because your formula is not using column B as the search criteria, not column A

  8. #8
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    35

    Re: How to sum from multiple worksheets by matching unique codes

    That's okay my friend...I got it fixed. Thanks for your help.

    Regards
    Arnab

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: How to sum from multiple worksheets by matching unique codes

    Happy to help

+ 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. Indexing and Matching (I Think??) Against Multiple Worksheets Using Multiple Criterion
    By eNinjaInTraining in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-26-2016, 09:00 PM
  2. [SOLVED] Convert Y Codes from one column to another based on Unique Codes
    By ashishmehra2010 in forum Excel General
    Replies: 2
    Last Post: 10-06-2015, 09:49 PM
  3. Dirty Matching/Reconciliation codes for 2 workbooks or worksheets EXAMPLES WANTED!
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2014, 12:42 PM
  4. Replies: 8
    Last Post: 09-14-2013, 12:53 PM
  5. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  6. [SOLVED] Duplicate Matching With Multiple Criteria Across Multiple Worksheets
    By hoodric in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 09:17 AM
  7. matching codes between 2 item codes
    By JChan in forum Excel General
    Replies: 1
    Last Post: 10-15-2005, 01:05 AM

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