+ 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 2007
    Posts
    125

    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
    Excel 2007
    Posts
    15,158

    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 2007
    Posts
    125

    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)

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