+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT & COUNTIF in the same forumla

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    SUMPRODUCT & COUNTIF in the same forumla

    Hi,

    I am trying to determine how many cases raised in 2017 are showing as having a completed status. The data is on a different sheet ("Data"), and the date is in the format of 01/01/1900, but it is only the year detail I need to record.

    I have the following 2 formulas, but combining them is proving difficult.

    =SUMPRODUCT(1*(YEAR(Data!L2:L600)=2017))

    =COUNTIF(Data!N:N,"Completed")

    Is there a way to combine the two of them?

    Thank you!
    Last edited by caz6661; 02-05-2019 at 07:57 AM.

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

    Re: SUMPRODUCT & COUNTIF in the same forumla

    Try this:

    =SUMPRODUCT((YEAR(Data!L2:L600)=2017)*(Data!N2:N600="Completed"))

    Hope this helps.

    Pete

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: SUMPRODUCT & COUNTIF in the same forumla

    Please try

    =COUNTIFS(Data!N:N,"Completed",Data!L:L,">=1/1/2017",Data!L:L,"<1/1/2018")

    or
    =SUMPRODUCT((YEAR(Data!L2:L600)=2017)*(Data!N2:N600="Completed"))

  4. #4
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    Re: SUMPRODUCT & COUNTIF in the same forumla

    Perfect! This worked a charm. Thank you!!

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

    Re: SUMPRODUCT & COUNTIF in the same forumla

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. SumProduct and Indirect Forumla
    By Klmo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2017, 09:32 PM
  2. SUMPRODUCT forumla problems
    By Nate Westcott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2015, 03:04 PM
  3. Vb code or forumla for sumproduct
    By master sachin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2014, 01:00 PM
  4. sumproduct formula with either or
    By amberj32 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 07:04 PM
  5. CountIF Forumla
    By neil25 in forum Excel General
    Replies: 6
    Last Post: 06-17-2008, 08:20 AM
  6. [SOLVED] sumproduct forumla, but I want difference instead of sum
    By Jeff Wheeler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2006, 12:40 PM
  7. Forumla Help!countif?IF?If(AND? if(OR?
    By harpscardiff in forum Excel General
    Replies: 6
    Last Post: 01-19-2006, 06:45 AM

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