+ Reply to Thread
Results 1 to 6 of 6

Excel Formula - Items Open Within a Month

  1. #1
    Registered User
    Join Date
    04-16-2021
    Location
    Ireland
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Excel Formula - Items Open Within a Month

    Hi All,

    Sorry I did try searching for the answer but couldn't find one specifically for my query.
    I need to do some historical statics on incidents that have been open during the months of the year, the issue is that I can't seem to work out the correct formula or can't do it via pivot table

    E.g. you could have an incident open in January, but then it isn't closed until March
    Within that time you have a new item opened in February, that is also closed in February
    Using that example, I would be able to know that there was 1 item active within the month of Jan / 2 active in the month of Feb / 1 active in the month of march

    Hopefully that makes sense.. Bit hard to explain.

    I've attached the dummy data as a reference, would there be a good formula to work this out?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Excel Formula - Items Open Within a Month

    Hello CM1993. Welcome to the forum.

    Instructions are not very clear. I took a guess and put those months (current year) in a header row. Then this formula in the row beneath.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is this what you wanted?


    E
    F
    G
    1
    1/1/2021
    2/1/2021
    3/1/2021
    2
    3
    0
    3
    Dave

  3. #3
    Registered User
    Join Date
    04-16-2021
    Location
    Ireland
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Excel Formula - Items Open Within a Month

    Hi Dave,

    Thanks for replying so quickly.
    I tried to do it myself based on the below formula, but doesn't seem to be working.


    Please Login or Register  to view this content.

    And I've attached an updated to excel to show what I'm trying to do to.
    If I was to do it manually, there would have been:

    Jan-18 : 16 Items active that month
    Feb-18 : 18 Items active that month (6 New in Feb, but 4 were closed in Jan)
    Mar-18 : 20 Items active that month (4 new in March, but 2 were closed in Feb)


    again, still not sure if I'm explaining that right!
    Attached Files Attached Files

  4. #4
    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,216

    Re: Excel Formula - Items Open Within a Month

    Try

    =COUNTIFS($C2:$C250,"<=" &EOMONTH(F$1,0),$D2:$D250,">=" &MIN(F$1, EOMONTH(F$1,0)))

    See attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-16-2021
    Location
    Ireland
    MS-Off Ver
    MS Office 2016
    Posts
    3

    Re: Excel Formula - Items Open Within a Month

    That was exactly what I was looking for!

    Thank you so much for the help!!

  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,216

    Re: Excel Formula - Items Open Within a Month

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Excel - Sum of Open/Backlog end of each previous month
    By emoes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2020, 10:24 AM
  2. [SOLVED] Open Excel and display minimal items with a solid background
    By chin67326 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2016, 04:31 PM
  3. Replies: 4
    Last Post: 03-23-2015, 01:13 AM
  4. [SOLVED] A (relatively) simple formula to count items per month
    By Ben1985 in forum Excel General
    Replies: 5
    Last Post: 02-19-2015, 07:01 AM
  5. Formula to count the number of cases that are open in a month
    By eekbubble in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 10:09 AM
  6. [SOLVED] Go to Current Month sheet when open excel file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 10:03 AM
  7. [SOLVED] Can't group pivot table items by month in Excel
    By scott_ensley in forum Excel General
    Replies: 1
    Last Post: 02-01-2005, 05:06 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