+ Reply to Thread
Results 1 to 6 of 6

SUMIF/AVERAGEIF with multiple ranges

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Thumbs up SUMIF/AVERAGEIF with multiple ranges

    This is what i was using,

    =AVERAGEIF($B$198:$B$240,B254,$C$198:$C$240)

    I want to add more sets of ranges and average ranges like this,

    =AVERAGEIF(($B$6:$B$48,$B$70:$B$112,$B$134:$B$176,$B$198:$B$240),B262,($C$6:$C$48,$C$70:$C$112,$C$134:$C$176,$C$198:$C$240))

    Which of course returns #VALUE!

    Help Please!!!
    Last edited by Cassi; 01-20-2010 at 05:19 PM.

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

    Re: SUMIF/AVERAGEIF with multiple ranges

    I think AVERAGEIFS() only allows one Range to Average, but you can have multiple criterias and criteria ranges...

    You may need to Average each range to each condition separately, then average all the averages.. or sum them and then average them all...
    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.

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

    Re: SUMIF/AVERAGEIF with multiple ranges

    If as it seems you have a pattern to the data, ie 43 rows "on" 21 rows "off" then you could possibly use AVERAGE array

    Please Login or Register  to view this content.
    also, if using XL2007 please update your profile accordingly as this can help people tailor solutions appropriately...

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Question Re: SUMIF/AVERAGEIF with multiple ranges

    I want to add another criteria to this formula. Right now it is only checking for ($B$6:$B$240=B262). I want it to also check for ($C$6:$C$240=C262).

    Is this possible?

    Thanks so much!

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

    Re: SUMIF/AVERAGEIF with multiple ranges

    Simple enough to adjust:

    Please Login or Register  to view this content.
    though in retrospect it would be better to split the tests into separate IFs to avoid unnecessary computations:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-20-2010
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: SUMIF/AVERAGEIF with multiple ranges

    Awesome, thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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