+ Reply to Thread
Results 1 to 4 of 4

SUMIFS duplicate criteria range query

  1. #1
    Registered User
    Join Date
    10-26-2010
    Location
    Truro, England
    MS-Off Ver
    Office 2010
    Posts
    4

    SUMIFS duplicate criteria range query

    Hi,
    I'm trying to create a file whose data changes depending on the drop down selected. This isn't a problem until I come to create a subtotal where I want to sumif or vlookup multiple criteria. I assumed that sumifs would be the answer but it seems to not work properly if I select the same criteria range repeatedly....
    I've attached a simple example of what I mean.

    The problem I have is that I am linking my excel file into a huge central excel file to pull out specific information and I am unable to amend the source data (it would be an easy fix if I could do this). I also do not want to create multiple worksheets and then total them up as this will make my file quite large itself - I'm essentially trying to create a reporting summary which can be used as a template and be adapted for other areas of the business.

    Can anyone help with the sumifs or is there a better way of subtotalling without amending the base data or creating named ranges?

    Thanks,

    Wes
    Attached Files Attached Files
    Last edited by wesmortimer; 01-20-2012 at 08:46 AM.

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

    Re: SUMIFS duplicate criteria range query

    Try:

    =IF(H2="Winter",SUMPRODUCT((SUMIF(A2:A13,E2:E5,B2:B13))),SUMIF(A2:A13,H2,B2:B13))
    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
    Registered User
    Join Date
    10-26-2010
    Location
    Truro, England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: SUMIFS duplicate criteria range query

    Excellent! Thanks NBVC!
    (I've never tried the sumproduct function before! So much to learn!)
    Cheers,
    Wes

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

    Re: SUMIFS duplicate criteria range query

    If you want to include, Spring, Summer and Autumn to your drop down list, then you can use:

    Please Login or Register  to view this content.
    Edit:

    Forgot to mention that you need to fill in the cells in D2:D13 with associated seasons...and they must be grouped together.
    Last edited by NBVC; 01-20-2012 at 09:34 AM.

+ 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