+ Reply to Thread
Results 1 to 6 of 6

Countif based on date range in adjacent column

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

    Countif based on date range in adjacent column

    Hello,

    I am missing something, I just can't see what.

    I want to count any cells with data in AC, if the adjacent column E:E is between the date range found on C3 and J3.


    =COUNTIFS('Survey Data'!AC:AC,'Survey Data'!E:E,">="&Summary!$C$3,'Survey Data'!E:E, "<="&Summary!$J$3)

    I am getting too few arguments, I just can't see what.

    I appreciate any help.

    Nick

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,938

    Re: Countif based on date range in adjacent column

    Are your dates real Excel dates and not text that look like dates?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Countif based on date range in adjacent column

    you have 2 ranges together , almost like a SUMIFS () , rather than a countifs( criteria_range1 , criteria1 , criteria_range2 , criteria2 ......)
    'Survey Data'!AC:AC,
    'Survey Data'!E:E,

    whats 'Survey Data'!AC:AC, doing ?

    countifs ('Survey Data'!E:E,">="&Summary!$C$3,'Survey Data'!E:E, "<="&Summary!$J$3 )


    if non blank TRY

    =COUNTIFS('Survey Data'!AC:AC, "<>", 'Survey Data'!E:E,">="&Summary!$C$3,'Survey Data'!E:E, "<="&Summary!$J$3)
    Last edited by etaf; 09-22-2021 at 06:31 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Countif based on date range in adjacent column

    i have added a spreadsheet - without the sheet names for simplicity
    =COUNTIFS('Survey Data'!AC:AC,'Survey Data'!E:E,">="&Summary!$C$3,'Survey Data'!E:E, "<="&Summary!$J$3)

    in A1
    =COUNTIFS(B:B, "<>", E:E,">="&$C$3,E:E, "<="&$J$3)
    Attached Files Attached Files

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

    Re: Countif based on date range in adjacent column

    Thank you etaf,

    =COUNTIFS('Survey Data'!AC:AC, "<>", 'Survey Data'!E:E,">="&Summary!$C$3,'Survey Data'!E:E, "<="&Summary!$J$3)

    This worked for me.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Countif based on date range in adjacent column

    you are welome

+ 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] COUNTIF values in a column based on date range in another column
    By RichPee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2018, 11:48 AM
  2. Replies: 3
    Last Post: 12-16-2015, 05:56 PM
  3. Sum based on date range by workdays in adjacent column
    By papasmurfuo9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 10:31 AM
  4. [SOLVED] Single column countif with moving range based on today's date
    By JonesyCC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2013, 02:45 PM
  5. Identify a range based on adjacent column....
    By Alex_Sal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2013, 07:56 AM
  6. Replies: 1
    Last Post: 01-05-2011, 05:18 PM
  7. Selecting range based on adjacent column
    By yaju1120 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2007, 10:41 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