+ Reply to Thread
Results 1 to 4 of 4

Sumproduct with certain conditions

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Sumproduct with certain conditions

    Hi All,

    Can someone help me with regards to the formula i am using or can you guys give me another idea?
    So here's my problem:

    I have set of customers that will be removed in the system. And the customers has partners that i need to check if it will be remove from the system as well.

    customer.JPG


    From column AT to AY, these are the data extracted data that i need to us in order to validate the results.
    Column AR is my formula.
    Column AS is the one who check if the customers of the external partner is active. (1 = Active, Blank = Not Active)

    FIRST SCENARIO: As you can see, the BP partner (AAA) is linked to Customer 3 with different country, Distribution Channel and division and is acting as the BP partner also.


    Partner.JPG


    Hence, if this is the scenario then the output should be MFD Selected (meaning we will only delete it on the Selected country of the customer 1)


    Selected.JPG

    SECOND: If the BP Partner is linked to another customer but has country, Distribution Channel and division, then the output should be = Just Unlink


    Selected.JPG

    THIRD: If the BP Partner is linked to other customer but the customer is already deleted(if the output in column AS = Blank) , then output should be "X".

    X.JPG

    My formula is actually working on the last two scenario but i have to add the first Scenario which is to MFD Selected..

    Hope someone can help me with the formula.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sumproduct with certain conditions

    Try
    AR6=IF(AU6="US",IF(AL6="YES","",IF(AND(INDEX(AS:AS,MATCH(AE6,AT:AT,0))=1,COUNTIFS(AJ:AJ,AJ6)=SUMPRODUCT((AY:AY=AJ6)*(AS:AS=1))),"X",IF(INDEX(AS:AS,MATCH(AE6,AT:AT,0))="","X","Just Unlink"))),"MFD SSA")

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Sumproduct with certain conditions

    Hi Ankur,

    For the country,i will not only be US. And using the formula, i am geteing just unlink - it should be MFD SSA Thanks for your help.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sumproduct with certain conditions

    Ok AF column's cell should be match with AU column's cell ? If yes then try

    AR6=IFERROR(IF(AU6=AF6,IF(AL6="YES","",IF(AND(INDEX(AS:AS,MATCH(AE6,AT:AT,0))=1,COUNTIFS(AJ:AJ,AJ6)=SUMPRODUCT((AY:AY=AJ6)*(AS:AS=1))),"X",IF(INDEX(AS:AS,MATCH(AE6,AT:AT,0))="","X","Just Unlink"))),"MFD SSA"),"")

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ** You will need to press F9 key for calculating result, It is just because you have selected whole range.

+ 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. SUMPRODUCT with conditions
    By Steve_Courts in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2013, 05:33 AM
  2. sumproduct with if conditions
    By Unnati in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2012, 03:53 AM
  3. [SOLVED] Help with sumproduct with two conditions
    By pstewart in forum Excel General
    Replies: 1
    Last Post: 08-21-2012, 03:24 PM
  4. Sumproduct 4 conditions
    By learnerabc in forum Excel General
    Replies: 2
    Last Post: 11-15-2010, 03:42 AM
  5. SUMPRODUCT with TWO Conditions
    By Akarupert in forum Excel General
    Replies: 2
    Last Post: 05-24-2010, 04:10 PM
  6. Sumproduct with conditions?
    By voraciousV in forum Excel General
    Replies: 1
    Last Post: 02-07-2009, 02:33 AM
  7. sumproduct three conditions
    By Scire in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2006, 01:25 PM
  8. Sumproduct with two conditions(or more)
    By hellZg8 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-03-2006, 01:55 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