+ Reply to Thread
Results 1 to 5 of 5

SUMIF function with mutiple SUM_RANGE values

  1. #1
    Registered User
    Join Date
    09-01-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    SUMIF function with mutiple SUM_RANGE values

    I have created a program to track rebar for a project. I created a lookup function to refrence information regarding the rebar. i have multiple rebar types in each section, and now I am trying to sum the amount of each type of rebar for each stage of the project. I tried to do use a SUMIF function as a tool but can not seem to get it to work. Here is a section of how the sheet is set up,

    I have each stage broken down into seperate sections as shown above, with all three stages on a seperate tab. The final tab I want to total all of the similar bars for each stage, the total h60 (E) bars for stage I for example. i am using =SUMIF('Stage I'!A:A,"=Totals!B5",'Stage I'!F6:F7) as my command. It works for a single SUM_RANGE value, but when I insert 'Stage I'!F6:F7,'Stage I'!F11:F14, etc in the SUM_RANGE value then I get a # VALUE! error. Can anyone help me sum the total number of bars for multiple sections?
    Attached Files Attached Files
    Last edited by shep85; 09-01-2010 at 01:10 PM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: SUMIF function with mutiple SUM_RANGE values

    I think in SumIf function the rows specified as first parameter and third parameter must be the same, for example try to write:
    =SUMIF('Stage I'!A6:A7,"=Totals!B5",'Stage I'!F6:F7)
    and so on.

    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    09-01-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: SUMIF function with mutiple SUM_RANGE values

    Thanks Antonio,
    yes that does work for a single SUM_RANGE value, but what it still wont work for multiple SUM_RANGE values.

    any thoughts?

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: SUMIF function with mutiple SUM_RANGE values

    You would do yourself a big favor if you changed your table to a database layout: One header row with a column for each field (substructure, bar, size, ...), and no blanks. Then all your formulas, or a pivot table, are easy.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMIF function with mutiple SUM_RANGE values

    Why couldn't

    =SUMIF('Stage I'!A:A,"=Totals!B5",'Stage I'!F:F)

    work?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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