+ Reply to Thread
Results 1 to 4 of 4

Dynamic Countif Across Columns

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    Dynamic Countif Across Columns

    I am basically looking to create a dynamic range for the countif function call. Basically, if I change my 'Time' parameter the range within the call will adjust accordingly. I am struggling to do this without VBA. Rather not code something if I don't have to. Any and all help is much appreciated!

    See the attached for a brief example.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Dynamic Countif Across Columns

    M3=sumproduct((a1:j1=m1)*(a2:j100=m2))

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Dynamic Countif Across Columns

    From what I understand in your sample sheet you should use: =COUNTIFS($A$1:$J$1,"<="&M1,$A$2:$J$2,$M$2)
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Dynamic Countif Across Columns

    Quote Originally Posted by PaulM100 View Post
    From what I understand in your sample sheet you should use: =COUNTIFS($A$1:$J$1,"<="&M1,$A$2:$J$2,$M$2)
    This is exactly what I needed! Thank you for your help!

+ 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. Convert Countif more dynamic
    By narsing18 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2017, 09:33 PM
  2. [SOLVED] Dynamic reference in COUNTIF
    By GIS2013 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-09-2016, 09:10 AM
  3. [SOLVED] Dynamic Unique List from multiple dynamic columns
    By JO505 in forum Excel General
    Replies: 7
    Last Post: 06-11-2015, 05:41 PM
  4. Using COUNTIF with a dynamic range
    By ruthjames in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-25-2013, 11:20 AM
  5. [SOLVED] Dynamic Table Range, Dynamic Columns
    By bimo in forum Excel General
    Replies: 6
    Last Post: 06-24-2013, 08:16 AM
  6. COUNTIF: dynamic range
    By BATISTAJM in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2013, 07:17 PM
  7. Dynamic Countif
    By Obespalov in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2005, 08:20 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