+ Reply to Thread
Results 1 to 6 of 6

SUMIF with 2 (multiple) criteria

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    SUMIF with 2 (multiple) criteria

    I have this formula which works fine but I want to add another criteria....
    look for text C in cells M1:M1976 (these cells contain C 1, C 2, S 1, S 2, S3...)
    I want to sum only those with "C"

    =SUMIFS(Data!$Q$1:$Q$1976,Data!$B$1:$B$1976,"E",Data!$I$1:$I$1976,">=01/01/2018",Data!$I$1:$I$1976,"<=31/1/2018")

    Thank you

  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,780

    Re: SUMIF with 2 (multiple) criteria

    Try this:

    =SUMIFS(Data!$Q$1:$Q$1976,Data!$B$1:$B$1976,"E",Data!$I$1:$I$1976,">=01/01/2018",Data!$I$1:$I$1976,"<=31/1/2018",Data!$M$1:$M$1976,"C*")
    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 Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: SUMIF with 2 (multiple) criteria

    Thanks!

    Formula in cell B14 works

    =SUMIFS(Data!$Q$1:$Q$1976,Data!$B$1:$B$1976,"E",Data!$I$1:$I$1976,">=01/01/2018",Data!$I$1:$I$1976,"<=31/01/2018",Data!$M$1:$M$1976,"C*")

    Same formula in cell C14 (with slight changes in criteria...doesn't work )

    =SUMIFS(Data!$Q$1:$Q$1976,Data!$B$1:$B$1976,"E",Data!$I$1:$I$1976,">=01/01/2018",Data!$I$1:$I$1976,"<=31/01/2018",Data!$M$1:$M$1976,"S*")


    I must be doing something wrong

  4. #4
    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,780

    Re: SUMIF with 2 (multiple) criteria

    Well, possibly, but how would I know without seeing the workbook?

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  5. #5
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: SUMIF with 2 (multiple) criteria

    Thanks a lot...I got this working. Highly appreciate your help.

  6. #6
    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,780

    Re: SUMIF with 2 (multiple) criteria

    Pleased to hear it!

+ 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] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  2. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  3. Replies: 2
    Last Post: 01-23-2013, 06:25 AM
  4. Sumproduct/sumif/indirect across multiple workbooks, worksheets, multiple criteria
    By robgardner15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 02:35 AM
  5. SUMIF with multiple criteria?
    By platypus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2011, 07:10 PM
  6. SUMIF with multiple criteria, one criteria a specific string
    By Weasel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2008, 05:32 PM
  7. Multiple SUMIF Criteria
    By azazel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2005, 04:35 PM
  8. [SOLVED] SUMIF with multiple criteria for multiple columns to sum a single
    By SavageMind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 11:05 AM

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