+ Reply to Thread
Results 1 to 6 of 6

Count the number of times a data appear based on multiple criteria between 2 dates

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    45

    Count the number of times a data appear based on multiple criteria between 2 dates

    Hi,

    I need to build a spreadsheet based on the submitted data of our lead source. Below is my problem:

    I need to count how many times A2 appear on K:K based on Status in A:A between the date in B4 and B5 . I'm always getting an error when I used countifs and sumproduct and not sure how to proceed.

    The Attached spreasheet is just a sample but it will be a database that I need to do.

    This is the formula I'm trying to use but getting error
    =countifs(K1:K4, A2, F1:F4, B1,J1:J4 <=B4, J1:J4>=B5)

    Thank you for anyone who will answer this.
    Attached Files Attached Files
    Last edited by lati2008; 09-22-2021 at 03:51 PM. Reason: Solved

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Count the number of times a data appear based on multiple criteria between 2 dates

    1. Are you still running 2007? If you have upgraded, please update your profile as this may make a difference in the solution provided
    2. We are unable to manipulate data in a picture. Please read the banner at the top of this page and supply a sample worksheet and mocked up solution so we clearly understand your needs.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    45

    Re: Count the number of times a data appear based on multiple criteria between 2 dates

    Hi,

    I already update my post and attached a spreadsheet. Please kindly help.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Count the number of times a data appear based on multiple criteria between 2 dates

    Are you still running 2007 as asked earlier. Your answer will help to determine the correct solution.

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    45

    Re: Count the number of times a data appear based on multiple criteria between 2 dates

    This is already answered by Geoff.

    Correct formula will be:

    =COUNTIFS($K:$K, $A$2,$I:$I, ">="&B4,$I:$I, "<="&B5,$F:$F, B1)

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Count the number of times a data appear based on multiple criteria between 2 dates

    This formula should work, but only after you change your dates from Text to actual Dates (numbers).

    =COUNTIFS(K2:K4, A2, F2:F4, B1,J2:J4,">=" & B4, J2:J4, "<=" & B5)

+ 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. Replies: 3
    Last Post: 09-22-2021, 05:16 PM
  2. count number of unique dates based on criteria
    By SammyN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2020, 07:21 AM
  3. Replies: 4
    Last Post: 10-05-2019, 07:30 AM
  4. [SOLVED] Count the number of times data meats a criteria
    By Terry-J in forum Excel General
    Replies: 6
    Last Post: 05-11-2016, 12:45 PM
  5. [SOLVED] Count number of entries based on multiple criteria
    By jturner12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-05-2015, 09:52 AM
  6. Replies: 1
    Last Post: 02-21-2014, 09:09 PM
  7. Count number of cells based on multiple criteria
    By Cumberland in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2007, 11:28 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