+ Reply to Thread
Results 1 to 2 of 2

Calculate how many occurrences in a given month, when multiple dates are in single cell

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    Illinois
    MS-Off Ver
    MS Office
    Posts
    1

    Calculate how many occurrences in a given month, when multiple dates are in single cell

    I have a list of teachers requesting days off, and I want to run a total of how many subs I will need for each teacher in a given month, but the dates are listed in a text string in one cell. I am trying to get a formula that will split the dates, and then count number of occurrences in each month.

    For example, can I calculate how many days in November 'Jess' has requested off,

    Name Sub Dates
    John Yes 10/25/19, 11/12/19
    Max No 11/12/19
    Jess Yes 10/15/19,11/15/19,12/15/19
    Max No 11/12/19
    Jess Yes 11/13/19,12/15/19

    Thank you!
    Attached Images Attached Images

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    UK
    MS-Off Ver
    various
    Posts
    1,863

    Re: Calculate how many occurrences in a given month, when multiple dates are in single cel

    with the above table being in A1:C6 (with row being headers) something like the below *might* work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where E2 holds Name of interest (e.g. Jess), and F1 the Month of interest - e.g. Nov-19
    obviously if you add more names in Col E, and months in row 1 (G1 etc) you can copy across to generate more results.

    I say *might* as there appear to be some duplicates in your dates and unclear to me, given lack of expected results, as to whether or not these need to be ignored

    as-is the above, for Jess, would generate 1 day in Oct-19, 2 days in Nov-19 & Dec-19.
    Last edited by XLent; 10-23-2019 at 09:54 AM. Reason: removed COLUMN reference and replaced with inline array to avoid possible confusion re: circular references

+ 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] Need formula to calculate days in each month across multiple Start and End dates
    By Ochimus in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-25-2017, 04:19 PM
  2. [SOLVED] Help with VB code or Formula to calculate the unique occurrences during a month
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2017, 11:50 AM
  3. Replies: 2
    Last Post: 06-18-2015, 10:34 AM
  4. [SOLVED] In a single cell, count any occurrences from a list of values
    By daedelous00 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-05-2013, 03:30 PM
  5. Count the occurrences of dates in a month against a condition
    By cicilyantony in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 01:26 AM
  6. [SOLVED] Calculate a weighted average in a single cell based on multiple criteria
    By _Bryan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 04:38 PM
  7. [SOLVED] Multiple dates, times, or formulas in a single cell
    By PM-S in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 12:25 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