+ Reply to Thread
Results 1 to 8 of 8

Countifs based on date range and value of cells in a column

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    466

    Countifs based on date range and value of cells in a column

    Hello,

    I am having issues with the formula below I created, the middle portion of the formula has a COUNTIFS ">=9", I am trying to calculate a count of numbers greater than 9 between a date range, then divide that by the total count of all numbers in that same date range and multiple that by 100.

    I am getting a too few arguments at the ">=9".

    =COUNTIFS('Survey Data'!AV2:AV1000000,'Survey Data'!Z2:Z1000000,">="&A2,'Survey Data'!Z2:Z1000000,"<="&B2,'Survey Data'!AV2:AV1000000,">=9")/COUNTIFS('Survey Data'!AV2:AV1000000,'Survey Data'!Z2:Z1000000,">="&A2,'Survey Data'!Z2:Z1000000,"<="&B2)*100

    I appreciate any help.

    Nick

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Countifs based on date range and value of cells in a column

    COUNTIFS takes a series of pairs of range, criteria. You start with an extra range, as though you were using SUMIFS. You probably need to delete that part.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Countifs based on date range and value of cells in a column

    You don't have a condition term following your first range - you just have:

    ... 'Survey Data'!AV2:AV1000000 ...

    in both COUNTIFS functions. Are you getting confused with the SUMIFS function, where you would have the sum_range before the (condition_range and condition) pairs ?

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    466

    Re: Countifs based on date range and value of cells in a column

    Thanks 6StringJazzer, what would be the best way to count based on a date range like I have but only count the values that are >=9?

  5. #5
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    466

    Re: Countifs based on date range and value of cells in a column

    Yeah Pete, I always have trouble with Countif & Sumifs

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

    Re: Countifs based on date range and value of cells in a column

    Jeff has given you the answer - delete the parts that he shows in red.

    Hope this helps.

    Pete

  7. #7
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    466

    Re: Countifs based on date range and value of cells in a column

    Got it, thank you both!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Countifs based on date range and value of cells in a column

    You're welcome and thanks for the rep!

+ 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. Replies: 2
    Last Post: 09-30-2022, 09:28 AM
  2. [SOLVED] Countifs based on cell value and date range
    By nickpavlov in forum Excel General
    Replies: 2
    Last Post: 06-25-2022, 06:35 PM
  3. [SOLVED] COUNTIFS - Count certain cells based on date and symbol
    By mempien in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-01-2020, 11:26 AM
  4. [SOLVED] Modification to formula to add a column based on date range and type in other cells.
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-28-2017, 04:48 PM
  5. Sum multiple cells in one column based on date range in another column
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2017, 09:19 AM
  6. [SOLVED] COUNTIFS within a date range but only if a second column meets a specified criteria
    By HeathWilD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2012, 01:14 AM
  7. Count cells based on date range in another column
    By TFTAJLLYMXZP@spammotel.com in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-05-2005, 04:06 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