+ Reply to Thread
Results 1 to 6 of 6

Need a formula that can count the number of times a name appears in a certain date range

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    Oregon
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Need a formula that can count the number of times a name appears in a certain date range

    Hi everyone! I am an intermediate/advanced Excel user, but I can't figure this one out. I assume I use a COUNTIF function, but I have tried many different formulas and nothing is working. The data in this spreadsheet is dynamic, so I can't use specific small cell ranges. I need to be able to find out how many times a name i H1-H1000 is listed in the date range (The J column) 06/01/16-06/30-16. Can anyone help?
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    07-13-2015
    Location
    Quebec, Canada
    MS-Off Ver
    2013
    Posts
    232

    Re: Need a formula that can count the number of times a name appears in a certain date ran

    A pivot table could do that for you, perhaps even with a helper column. If you don't wish to use this, there is a formula that could work:

    =COUNTIFS(H1:H1000,"Ben Hoffman",J1:J1000,"<="&date(2016,6,30),J1:J1000,">="&date(2016,6,1))

  3. #3
    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: Need a formula that can count the number of times a name appears in a certain date ran

    Try

    =COUNTIFS(H:H,X1,J:J,">=" & X2,J:J,"<=" & X3)

    X1 =name
    X2=Start Date
    X3=End Date

  4. #4
    Registered User
    Join Date
    07-18-2016
    Location
    Oregon
    MS-Off Ver
    Professional Plus 2010
    Posts
    5

    Re: Need a formula that can count the number of times a name appears in a certain date ran

    Thanks for the quick replies! Unfortunately, I have already trie #1, and #2 didn't work either. I am seriously stumped-- there has to be a way to do this.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a formula that can count the number of times a name appears in a certain date ran

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL file will have about 20 rows worth of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    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: Need a formula that can count the number of times a name appears in a certain date ran

    Post a sample file. Given your description, both formulae should work.

    Spotted: The date field is Date +Time: you need to separate into a date-only field

    e,g Z2=int(J2) formatted as date

    or try

    =sumproduct((h2:h1000)=X1)*(int(j2:j1000)>=x2)*(int(j2:j1000)<=x3))

    To upload file, click "Go Advanced" then scroll down to "Manage Attachments"

+ 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] Count the number of times a date appears in a range
    By uhtfgy in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 07-12-2015, 05:53 AM
  2. count the number of times a number appears in a specific range
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:01 AM
  3. Replies: 6
    Last Post: 03-14-2013, 08:08 AM
  4. [SOLVED] Want to count the number of times a particular letter appears within a range
    By dwhite30518 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2013, 01:24 PM
  5. [SOLVED] formula to count how many times a word appears in a row for a date
    By Megatronixs in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-27-2012, 03:57 AM
  6. How to count the number of times a date appears in a column
    By smellsgood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2010, 07:09 AM
  7. How to count the number of times a date appears in a column
    By smellsgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2010, 06:35 AM
  8. Count how many times a number appears within a range of two numbers
    By Maristar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2009, 10:56 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