+ Reply to Thread
Results 1 to 5 of 5

Sumif formula with 2 match conditions

  1. #1
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    70

    Sumif formula with 2 match conditions

    Hi All,

    I want result using sumif formula with 2 match conditions or with alternate function to get the desire result.

    I have attached file with 2 sheets inside... in first (sheet name Example) is given example and other is source data (sheet name TB)

    Request to help to resolve. For any query, pls. revert on.

    Thanks in Advance.

    Regards,

    Vijay
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Sumif formula with 2 match conditions

    Use SUMIFS, not SUMIF.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Sumif formula with 2 match conditions

    Hi Vijay,

    SUMIF(s) does not work with mixed arrays, I have used:
    =SUMPRODUCT((TB!$D$3:$O$3=$C$12)*(TB!$C$5:$C$10=$B14)*(TB!$D$4:$O$4=C$13)*(TB!$D$5:$O$10))

    and DO NOT USE MERGE CELL, I have un-merged and typed company names so they can be matched.

    See if this is okay

    Blessing
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Sumif formula with 2 match conditions

    Unmerge your "Company" cells

    =SUMPRODUCT((TB!$D$5:$O$10)*(TB!$D$4:$O$4=Example!C$13)*(TB!$C$5:$C$10=Example!$B14)*(TB!$D$3:$O$3=Example!C$12))
    Last edited by JohnTopley; 02-03-2016 at 08:32 AM.

  5. #5
    Registered User
    Join Date
    11-24-2013
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    70

    Re: Sumif formula with 2 match conditions

    Hi Khalidngo,

    Its working. Thanks for your valuable help.

    Regards,

    Vijay

+ 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] SUMIF or SUMPRODUCT multiple conditions formula
    By KK1234 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2015, 07:01 AM
  2. SumIf Index Match - 4 conditions (failing miserably! :(
    By Keelin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2014, 07:26 AM
  3. Replies: 15
    Last Post: 02-26-2014, 05:56 PM
  4. [SOLVED] SUMIF + AND formula two conditions
    By Kagesen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2014, 05:58 AM
  5. [SOLVED] Formula SUMIF with two conditions on a different sheet
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2013, 09:22 AM
  6. SUMIF or an array formula - matching multiple conditions
    By Jason_2112 in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 06:03 PM
  7. [SOLVED] Using multiple conditions in formula like countif(), sumif()
    By 0-0 Wai Wai ^-^ in forum Excel General
    Replies: 14
    Last Post: 11-10-2005, 04:10 PM

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