+ Reply to Thread
Results 1 to 2 of 2

Using SUMPRODUCT For Two Criteria AND Month of Year.

  1. #1
    Registered User
    Join Date
    08-05-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    53

    Using SUMPRODUCT For Two Criteria AND Month of Year.

    Hello again,

    I currently have a spreadsheet I am working on, which I have addapted from something somebody sent me. The slightly different format of it (it uses a UserForm) is that there are references to an ADMIN worksheet that holds the data to be populated according to what is required (i.e. adding toggle buttons or column data by entering a value in a cell. This is apparent in the formula to follow.

    I want to have a worksheet for each month of the year that summarises, from the Correspondence worksheet, what people have done. Here is what I have so far that works:
    =SUMPRODUCT(--(Correspondence!$B$36:$B$999=ADMIN!$B$15),--(Correspondence!$C$36:$C$999=Correspondence!$A$8)).

    Admin!B:B is a list of names for inclusion on a userform and spreadsheet cells.
    Correspondence!A8:A31 is a list of correspondence types.

    From row 36...
    Column A contains dates entered as dd/mm/yyyy, displayed as dd-mmmm-yyyyColumn B is a person's name, displayed as text Column C contains a type of correspondence submitted by the person on the date shown.

    The formula above works to count the rows with a person and a type of correspondence, however, I would like to add to this a criteria that only counts the data if within a certain month of the year.

    I cannot submit the file as it contains sensitive data but hopefully what i have provided will be a good start. I have tried all kinds of variations but cannot get the month bit to work.

    Thanks,
    Stu

  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: Using SUMPRODUCT For Two Criteria AND Month of Year.

    this is cross posted at mr excel where you have been given an answer
    http://www.mrexcel.com/forum/excel-q...-criteria.html
    I'm afraid your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    "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

+ 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