+ Reply to Thread
Results 1 to 3 of 3

Calculating Sum with Multiple Field Criteria

  1. #1
    Registered User
    Join Date
    02-16-2006
    Posts
    3

    Question Calculating Sum with Multiple Field Criteria

    I have a spreadsheet with the following values:

    A B
    01-JAN-06 John Smith
    01-JAN-06 Jane Doe
    01-FEB-06 John Smith
    09-FEB-06 John Smith
    etc.

    Either in the same or new worksheet, I want to calculate the number of times "John Smith" and "JAN" appear in the same row, "Jane Doe" and "JAN", "John Smith" and "FEB", etc.

    The expected results would appear as follows:

    January
    John Smith 1
    Jane Doe 1

    February
    John Smith 2
    Jane Doe 0

    What is the formula needed to accomplish this?

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    SUMPRODUCT will work.

    =SUMPRODUCT(--(MONTH($A$1:$A$4)=1),--($B$1:$B$4="John Smith"))

    Just change the condition for MONTH to equal the correct month number as needed. (i.e. Jan=1, Feb=2, March =3 etc...). You could refer to the names in cells rather than typing in the text ="John Smith" also.

    Does that help?

    Steve

  3. #3
    Registered User
    Join Date
    02-16-2006
    Posts
    3
    Yup, that helps. Found the answer in the Microsoft Support Forum in between my post and your reply.

+ 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