+ Reply to Thread
Results 1 to 2 of 2

How do you find out the number of occurences of a category between two dates?

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    London
    MS-Off Ver
    Microsoft Office 10
    Posts
    1

    Question How do you find out the number of occurences of a category between two dates?

    Hi Forum experts,

    Grateful if you could tell me the formula that I need to use to calculate, e.g. the number of people who have eaten an apple (other options -apple, orange and peach) between 18th August 2019 to 2nd October? The results then appear in a table on a separate worksheet.

    So there is 1 column labelled fruit, with the different fruit written in text. Then there is another column labelled date with the various dates that each person ate the fruit. So I need to find out how many people ate the 3 pieces of fruit within the time period.

    Best wishes

    Claudine
    Last edited by AliGW; 01-08-2020 at 08:54 AM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How do you find out the number of occurences of a category between two dates?

    =countifs(fruitrange,"Apple",daterange, ">="&43695,daterange, "<="&43740)


    if fruits are a1:A100, dates are b1:b100 and c1 contains 18 Aug 19 (as a date) and c2 contains 2 Oct 19 as a date, and c3 contains apple
    =countifs(a1:a100,c3,b1:b100,">="&c1,b1:b100,"<="&c2)

+ 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. Need to find the number of dates between two repair dates with condition
    By prirosmail in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2018, 04:05 PM
  2. [SOLVED] VBA "Scripting.Dictionary" Word Occurences under each category
    By manofcheese in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-23-2015, 03:37 PM
  3. Replies: 1
    Last Post: 03-24-2014, 12:37 PM
  4. [SOLVED] Need to find the maximum number of occurences relative to the next cell
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2013, 08:00 AM
  5. Re--organizing Data from Cell Range: List all occurences under one category label
    By dmarzo1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2013, 09:36 AM
  6. [SOLVED] How to find the smallest number for each category
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2013, 01:13 PM
  7. [SOLVED] Calculating number of occurences based on dates
    By Henrik Fritsche in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2006, 11:15 AM

Tags for this Thread

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