+ Reply to Thread
Results 1 to 8 of 8

COUNTIFS and SUMPRODUCT Problem/Frustration

  1. #1
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    COUNTIFS and SUMPRODUCT Problem/Frustration

    See attachment file. I am trying to calculate the number of times a name appears from Column N during the specific year (2014 or 2015) of the many dates contained in Column A. I just cannot come up with the correct formula or syntax. I have figured out how to do this based on the manual entries in the blue cells. Just can't figure out the formulas to plug into the pink cells. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    I think this may be what you're looking for:

    =SUMPRODUCT((N2:N26=D26)*(A2:A26 >= D27)*(A2:A26 <= D28))

    This is an array formula, so enter the formula and confirm it with CTRL + SHIFT + ENTER. You'll know you've done it correctly if Excel puts {} around your formula. Cheers!

  3. #3
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    I see how that works in the blue cells, but what I am trying to create are formulas for the pink cells that will dynamically update as more row data for 2015 are added. Thanks!

  4. #4
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    We can use the same principle to achieve that. Let's make your Trips-2014 box say 2014, and Trips-2015 say 2015. Now we can use those to match against the year for column A:

    =SUMPRODUCT(($N$2:$N$26=$A33)*(YEAR($A$2:$A$26)=B$32))

    Again, it is an array formula. That should work in any cell in your pink table to return the correct answer, even if you add year or street names.

  5. #5
    Forum Contributor
    Join Date
    05-13-2012
    Location
    Eagle River, Alaska
    MS-Off Ver
    Excel 2010
    Posts
    145

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    Perfect!!! Thanks!!

  6. #6
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    Quote Originally Posted by npatridge View Post
    Again, it is an array formula.
    You shouldn't need CTRL+SHIFT+ENTER for either of those formulas. Typically SUMPRODUCT doesn't need "array entry" except with certain functions like TRANSPOSE or IF constructions
    Audere est facere

  8. #8
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Re: COUNTIFS and SUMPRODUCT Problem/Frustration

    Dang it, I keep doing that. Thanks, daddylonglegs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] CountIfS and SUMPRODUCT need help
    By rschoenb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2014, 11:21 PM
  2. [SOLVED] Sumproduct/countifs
    By mahat in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-21-2014, 10:30 PM
  3. How to convert countifs to sumproduct
    By Dzana in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-25-2013, 12:37 PM
  4. COUNTIFS and SUMPRODUCT help
    By Stacy1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-19-2013, 02:35 PM
  5. Using SUMPRODUCT instead of COUNTIFS
    By SymphonyTomorrow in forum Excel General
    Replies: 12
    Last Post: 11-18-2011, 05:01 PM

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