+ Reply to Thread
Results 1 to 3 of 3

Summing multiple sheets with a "contains" formula

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    Ohio, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Summing multiple sheets with a "contains" formula

    Hey guys. I apologize in advance if this is answered in the forums - very happy if I'm directed to a previous response. I was not able to find after extensive searching, but that may be due to my searching abilities!
    I am working on an audit project with multiple sheets and the input is very similar, but some of the bookkeeping has extra entries after the company names. I am using a function: =SUMPRODUCT(SUMIF(INDIRECT("'"&A2:A3&"'!A2:A10"),C2,INDIRECT("'"&A2:A3&"'!B2:B10")))
    but this will only work if the name is EXACTLY the same on each sheet. Is there a way to =sumproduct if the name contains a portion of the search term on the 1st sheet? Example attached. Trying to sum all sheets for 'Sample Co 1' but 2nd sheet has extra characters after this name.

    The time savings would be incredible if I do not have to manually change the company names to match! Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Summing multiple sheets with a "contains" formula

    Simple, just add a wildcard (i.e.) * which means any character and any length of character. So adding * in the end of the Criteria will do that trick to you


    =SUMPRODUCT(SUMIF(INDIRECT("'"&$A$2:$A$3&"'!A2:A10"),C2&"*",INDIRECT("'"&$A$2:$A$3&"'!B2:B10")))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-29-2011
    Location
    Ohio, US
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Summing multiple sheets with a "contains" formula

    sixthsense - thanks a ton! my screenname is also my experience level LOL

+ 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. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  2. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  3. "The "sheets" method from the "_Global" object have failed."
    By mankit87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2011, 08:53 AM
  4. Complex "VLOOKUP" type of formula over multiple sheets
    By tsparacino in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2011, 03:06 PM
  5. Simple summing of multiple "like" categories
    By Caltrop in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-16-2005, 08:04 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