+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    17

    SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

    Hi,

    I'm trying to get a formula which examines three colums and counts where column A contains 'X', Column B contans 'Y' and Column C contains a date in July.

    I know this may be hard to comprehend, so I've attached a sample of the data with the table below which I wish to populate.

    I've tried both countifs and sumproducts but don't seem to be able to get it to work correctly.

    Any help would be greatly appreciated.

    Thanks,

    Dan
    Attached Files Attached Files
    Last edited by Bellio3105; 10-04-2012 at 05:41 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,479

    Re: SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

    Put this formula in G2:

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


    Format as currency with 2dp, then copy across and down to fill your table.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

    Ive just seen pete's response which doesnt need a helper col. Go with that!

    one way.

    as per your example, insert a helper column in Col a and in a2:
    Please Login or Register  to view this content.
    copy down then in h2
    Please Login or Register  to view this content.
    drag across and down .

    hope this helps
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  4. #4
    Registered User
    Join Date
    09-10-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

    Thanks for the quick help. Formula works perfect.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,138

    Re: SUMPRODUCT/COUNTIFS With 3 Variables Including 1 Date

    To count:

    G2: =SUMPRODUCT(--($B$2:$B$47=G$1),--(TEXT($A$2:$A$47,"mmmm")=$F2))

    To sum:

    G2: =SUMPRODUCT(--($B$2:$B$47=G$1),--(TEXT($A$2:$A$47,"mmmm")=$F2),($C$2:$C$47))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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