+ Reply to Thread
Results 1 to 7 of 7

SUMIFS with Multiple Criteria

  1. #1
    Registered User
    Join Date
    08-09-2019
    Location
    London, England
    MS-Off Ver
    Not sure, one of the latest ones
    Posts
    2

    SUMIFS with Multiple Criteria

    Hi,

    I work for a Fashion company. We have different departments in bags (day, evening and leather) and stores are given a grade in each department which relates to how many options of bags the store gets. The store then has planned sales by department.

    I have simplified the sheet I am working on (have attached). In this example I have a list of stores and their grade in Day Bags, Eve Bags and Leather. I also have their planned sales for Day bags, Eve bags and Leather.

    In the Planned Sales tab I want to sum the planned sales by grade, which is a sumifs. However, I want it to be able to find Day bags, Eve bags and Leather bags itself. So I have the below formula for the day bags grade 1 planned sales for example:

    =SUMIFS(INDEX(GRADINGS!B:H,,MATCH('PLANNED SALES'!E4,GRADINGS!B3:H3,0)),GRADINGS!C:C,'PLANNED SALES'!D5)

    This formula pulled back the correct planned sales for day bags. However, I also need it to find Grade columns by itself, which is where I am stuck. So for Day bags in the above formula I told it to look at column C:C in the 'Gradings' sheet (and then only sum if it says Grade 1). However, I need it to find the day bag column itself and then only sum if 1.

    Please can anyone help with this? I have given the formula I got stuck on but it might well be that I am using the wrong formula and it is something completely different!

    Thank you in advance for your help.
    Attached Files Attached Files
    Last edited by AliGW; 08-09-2019 at 12:15 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: SUMIFS with Multiple Criteria

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I will do it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: SUMIFS with Multiple Criteria

    You can use this instead:
    =SUMPRODUCT((GRADINGS!$C$4:$C$9='PLANNED SALES'!$D5)*(GRADINGS!$D$3:$H$3='PLANNED SALES'!E$4)*GRADINGS!$D$4:$H$9)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: SUMIFS with Multiple Criteria

    Change your heading in cell C3 of the Gradings sheet to GRADE DAY, then you can use this formula in cell E5 of the Planned Sales sheet:

    =SUMIFS(INDEX(GRADINGS!$B:$H,,MATCH(E$4,GRADINGS!$B$3:$H$3,0)),INDEX(GRADINGS!$B:$H,,MATCH("GRADE "&E$4,GRADINGS!$B$3:$H$3,0)),$D5)

    Copy this across and down as required.

    Hope this helps.

    Pete

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: SUMIFS with Multiple Criteria

    Ah yes! I got that one wrong. Undercomplicating things... just for a change.

  6. #6
    Registered User
    Join Date
    08-09-2019
    Location
    London, England
    MS-Off Ver
    Not sure, one of the latest ones
    Posts
    2

    Re: SUMIFS with Multiple Criteria

    Hi Pete,

    Thank you so much!! This worked

    I wonder if you know the below also...

    In the attached sheet in columns P-S I am working out *** sales. But I have done it quite manually, adding on each individual formula as I go down. Is there a quicker way to *** in this example, where one formula would work for cell Q3 and you could drag it down?

    Thanks in advance!

    Lauren
    Attached Files Attached Files

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: SUMIFS with Multiple Criteria

    I think the easiest way is to put this formula in Q3:

    =SUM(L$2:L3)

    then copy down and across.

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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