+ Reply to Thread
Results 1 to 4 of 4

Help with COUNTIF

  1. #1
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Help with COUNTIF

    Ok I am working on a very large sheet trying to count how many time a value appear in a given year.

    My work area covers A1:Q73052

    I want to count how many time a value lets say 1 is in column Q

    but at the same time I only want to count the value if it is in a given year lets say 2017 in column D

    so countif Q2:Q73052 = 1 and only if D2:D73052 = 2017

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help with COUNTIF

    hi MRozell. does column D contain a date or simply the year? if it's the former:
    =SUMPRODUCT(($Q$2:$Q$73052=1)*(YEAR($D$2:$D$73052)=2017))

    if it's the latter:
    =COUNTIFS($Q$2:$Q$73052,1,$D$2:$D$73052,2017)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with COUNTIF

    try with COUNTIFS()

    too late

  4. #4
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Help with COUNTIF

    Hi,

    Try countifs here

    =COUNTIFS(Q:Q,1,D:D,">=1/1/2017",D:D,"<=12/31/2017")

+ 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. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  2. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  3. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  4. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  5. COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  6. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM
  7. [SOLVED] COUNTIF in one colum then COUNTIF in another...???
    By JonnieP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2005, 11:06 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