+ Reply to Thread
Results 1 to 4 of 4

Sum Product/Counting Problem (URGENT)

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    63

    Smile Sum Product/Counting Problem (URGENT)

    Good morning Excel world;

    I am totally stuck on this; and have been racking my brain, but it does not seem to work.

    the problem boils down to this; i got a table lets say with 5 rows.

    user number reason payment method
    1 fraud mastercard
    2 fraud mastercard
    3 fraud mastercard
    4 userquit mastercard
    5 fraud visa

    I want to count all the occurrences of mastercard, when the reason is not 'userquit', 'own request' or 's/e' .

    Lets say that cell A1 equals mastercard and sits on top of my table; I am puting the formula in B1; so i can have a count of mastercard next to it.

    Also the column Reason is subjected to data validation.

    =SUMPRODUCT((I$2:I$500=A1)*ISNA(MATCH(F$2:F$500,{"Own Request","S/E","Multiple"},0)))

    Row I is the payement type. Row F is the reason.

    Obviously I want the answer to the above; 3. Thanks for the help guys

    Also.... I need the formula to work over 500 rows.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Sum Product/Counting Problem (URGENT)

    A Pivot Table will give you the solution in a couple of seconds

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum Product/Counting Problem (URGENT)

    Try this:

    =SUMPRODUCT(--($I$1:$I$500=$A1),--(NOT(ISNUMBER(MATCH($F$1:$F$500,{"S/E","Multiple","Own Request"})))))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    07-06-2011
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Sum Product/Counting Problem (URGENT)

    Hey guys; thanks for the effort;

    Ended up using this

    =SUMPRODUCT((I$1:I$497=Y1)*ISNA(MATCH(F$1:F$497,{"Own Request","S/E","Multiple","sec check"},0)))


    JBeaucaire; kind of used what u put; but kept my origininal suggestions.

    arthurbr; that for the suggeston anyway; maybe next time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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