+ Reply to Thread
Results 1 to 4 of 4

SUM IF Function from 25 sheets

  1. #1
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    SUM IF Function from 25 sheets

    Hi,

    I have some 25 sheets in a workbook where I need to sum based on a criteria
    I have attached the sample file for reference:

    Regards
    Arvind
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: SUM IF Function from 25 sheets

    Quote Originally Posted by aravindhan_31 View Post
    Hi,

    I have some 25 sheets in a workbook where I need to sum based on a criteria
    I have attached the sample file for reference:

    Regards
    Arvind
    Your file attached.

    .
    Attached Files Attached Files

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUM IF Function from 25 sheets

    see: http://www.mcgimpsey.com/excel/threedsumif.html

    SUMPRODUCTS are generally best avoided if used in large volumes and/or when used in Volatile context (ie using INDIRECT)

    Personally I would advise you create a list on sheets Test1:Test6 that correlates to the list on Master File, eg:

    Group sheets Test1:Test6, then:

    Test1!AA1: ='Master File'!A2
    copy down

    then

    Test1!AB1: =SUMIF(F:F,$AA1,H:H)
    copy down

    Then, ungroup sheets and set:

    'Master File'!B2: =SUM(Test1:Test6!AB1)
    copy down

    Less elegant than Sumproduct but significantly more efficient when the former is to be used en masse or Volatile.
    Last edited by DonkeyOte; 05-31-2009 at 08:01 AM. Reason: reworded

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: SUM IF Function from 25 sheets

    aravindhan_31,

    See the attached workbook "SUMIF thru sheets - aravindhan_31 - SDG10.xls" with macro "SUMIFSheets".

    Then run the "SUMIFSheets" macro.
    Attached Files Attached Files
    Last edited by stanleydgromjr; 05-31-2009 at 08:20 AM.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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