+ Reply to Thread
Results 1 to 4 of 4

Counting values if name matches

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Counting values if name matches

    Hi all,

    basically below is the sum i have to count the value of 1 for each time a name shows up and matches the word in the " "s. now what i need it to do is every time in cells E2:E99=x3(name) and matches a2:a99= assistance then it will count the values in j2:j99, but ofcourse i only want it to count the money in cells j2:j99 if the other 2 criteria have been met.


    =SUMPRODUCT(($E$2:$E$99=X3)*($A$2:$A$99="Assistance ") )


    sorry if im being to messy or vague


    kind regards


    ricky

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting values if name matches

    count or sum ?=SUMPRODUCT(($E$2:$E$99=X3)*($A$2:$A$99="Assistance "),j2:j29 ) will add up everything that meets the condition
    you could try
    for a count
    =SUMPRODUCT(($E$2:$E$99=X3)*($A$2:$A$99="Assistance ")*(j2:j29<>"" ))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Counting values if name matches

    I'm not sure I follow completely, but maybe this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If this is not what you need, perhaps you caould upload a sample of your workbook?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Counting values if name matches

    perfect thank you

+ 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