+ Reply to Thread
Results 1 to 3 of 3

Count number of values dependent between horizontal date range based on 2 date values

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Count number of values dependent between horizontal date range based on 2 date values

    Hi,

    I'm trying to count the number of the same values, "H" (in row 2), horizontally with a date range (row 1), dependent on 2 dates in other cells (B2 & C2), i.e count the number of "H" between the 2 dates within the date range horizontally above the data, as illustrated below.




    Crew Member Start Date Yr 1 End Date Y1 H 01-Dec-15 02-Dec-15 03-Dec-15 04-Dec-15 05-Dec-15 06-Dec-15 07-Dec-15 08-Dec-15 09-Dec-15
    MR SMITH 03-Aug-15 02-Aug-16 W W H H W W W W W

    Any help greatly appreciated.

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Count number of values dependent between horizontal date range based on 2 date values

    try..

    =COUNTIFS($D$1:$L$1,">=" &$B$2,$D$1:$L$1,"<=" & $C$2,$D$2:$L$2,"H")

  3. #3
    Registered User
    Join Date
    04-27-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Count number of values dependent between horizontal date range based on 2 date values

    John... Legend!

    Thanks

+ 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. Count Number of Unique Values within a Date Range
    By eepok in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 10:28 PM
  2. [SOLVED] Only Count Values between a Set Date Range
    By JasonMcQueen in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-15-2014, 09:20 AM
  3. [SOLVED] Would like to count cell values based on date criteria in a different range
    By sdavison in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-23-2013, 12:45 AM
  4. Replies: 4
    Last Post: 06-20-2011, 05:24 AM
  5. Replies: 4
    Last Post: 11-19-2010, 09:43 AM
  6. count unique values in columns based on date values
    By cclntn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2010, 06:16 PM
  7. [SOLVED] Count text values in a date range
    By Janet BN in forum Excel General
    Replies: 2
    Last Post: 06-18-2006, 11:30 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