+ Reply to Thread
Results 1 to 3 of 3

Dynamic COUNT range based on day of year

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Dynamic COUNT range based on day of year

    On the attached spreadsheet, I am trying to count (in cell B2) the cells in each columnthat match the reference in column A. (in this example, there are two entries for Actongate)

    I would like the column range to be dynamic and equal the column heading specified in cell A1 i.e. I would like to be able to change the date in cell A1 and the count range in the formula automatically adapts and returns the column count from the specified date.

    Hopefully that's clear but please let me know if not and thanks in advance
    Attached Files Attached Files

  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,604

    Re: Dynamic COUNT range based on day of year

    Put this formula in B2:

    =COUNTIF(INDEX($D$2:$ND$278,,MATCH($A$1,D$1:ND$1,0)),$A2)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: Dynamic COUNT range based on day of year

    Fantastic - Thanks for the speedy response

+ 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. IRR formula with dynamic year range
    By eastpak in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-28-2017, 07:29 AM
  2. [SOLVED] sumproduct to count year values in range based on another cell year value
    By mr_mango81 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-04-2017, 12:46 AM
  3. Count # of inquiries based on year they inquired on - what formula ?
    By Coin in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-25-2013, 11:33 AM
  4. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM
  5. [SOLVED] Count if in a range by year
    By Ryleigh in forum Excel General
    Replies: 4
    Last Post: 07-12-2012, 10:13 AM
  6. Excel 2007 : Count based on year in a row of dates
    By Dadoo in forum Excel General
    Replies: 10
    Last Post: 01-24-2011, 10:08 PM
  7. count dates within range by year and month
    By Isaiah25 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-04-2005, 06: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