+ Reply to Thread
Results 1 to 10 of 10

Help Needed: Formula Dealing with Dates/Current Month

  1. #1
    Registered User
    Join Date
    08-13-2019
    Location
    Hampton, Virginia
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    18

    Help Needed: Formula Dealing with Dates/Current Month

    Alright smarter than I folks...I have a production log that I am working and I need help with figuring out how to count only the data that falls in the current month.

    I have an Entered Training Date in Column A (A3:A5)

    I have a Graduation Date in Column B (B3:B5)

    I need a formula to look at those dates and calculate how many days (between Column A and Column B) are in the current month
    (October for this example) and provide me the number of days instructed in the current month. (My template is for October 2019)... I have placed an example of what I am looking for in Column X...I would also like to include if possible, Holidays and Weekends (federal government schedule)...


    Each month, I have to change data, and if the course Started in September and Ends in November, I will have this on my 3 different trackers
    (Sep, Oct and Nov) all of which I need to see how many days were instructed in the current month (Sep, how many days were instructed in, Oct and how many days were instructed in Nov

    The tracker is saved by Month...so the File you are viewing would be for October data only...The current process this is being accomplished is copying and pastingand adding and subtracting data manually, which is waisting a LOT of time.
    Attached Files Attached Files
    Last edited by IAMROBBERMAN; 10-07-2019 at 02:25 PM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Help Needed: Formula Dealing with Dates/Current Month

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Help Needed: Formula Dealing with Dates/Current Month

    I recommend uploading a small representative sample of your data along with the desired results (which you can enter manually) based on that data.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Help Needed: Formula Dealing with Dates/Current Month

    x3=MAX(0,MIN(B3,EOMONTH(TODAY(),0))-MAX(A3-1,EOMONTH(TODAY(),-1)))
    Try this, copy and paste towards down

  5. #5
    Registered User
    Join Date
    08-13-2019
    Location
    Hampton, Virginia
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    18

    Re: Help Needed: Formula Dealing with Dates/Current Month

    This formula works perfect,I did want to see though, what would need to happen if I needed to account for the weekends and any holiday?

    from what I have researched, I would need to create a table with the holidays, and I do know in the formula somehow I can account for weekends.

    but putting everything together is where I struggle. Any help would be appreciated. I have modified the attachment to reflect the holidays for 2019

    Once I figure this part out, I can adjust for the holidays of 2020.


    On the attachment, in T:28 I have placed the holiday schedule I was referencing.
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: Help Needed: Formula Dealing with Dates/Current Month

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    08-13-2019
    Location
    Hampton, Virginia
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    18

    Re: Help Needed: Formula Dealing with Dates/Current Month

    not sure how to do this...when I go to post a link, it says I need a few more times to post before it will allow...I am new to the forum world and I want to continue using wisley and correctly...any help would be appreciated.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Help Needed: Formula Dealing with Dates/Current Month

    As you have 5 posts now, pasting a link should work

  9. #9
    Registered User
    Join Date
    08-13-2019
    Location
    Hampton, Virginia
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    18

    Re: Help Needed: Formula Dealing with Dates/Current Month

    still getting the same error message "The following errors occurred with your submission
    You are not allowed to post any kinds of links, images or videos until you post a few times."

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Help Needed: Formula Dealing with Dates/Current Month


+ 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: 03-09-2018, 06:01 AM
  2. Replies: 1
    Last Post: 04-29-2016, 01:28 PM
  3. [SOLVED] Countifs Formula needed to count # of dates in same month that also is in same state.
    By Stanimal in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-12-2014, 02:43 PM
  4. Help needed on nested IF statements dealing with dates
    By jaacm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-31-2014, 10:30 PM
  5. [SOLVED] Formula needed to calculate working days in specified month between two dates
    By webfeet2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-24-2013, 02:19 AM
  6. Formula needed for COUNTIF in current month
    By atomickitty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2012, 03:00 PM
  7. Replies: 5
    Last Post: 05-12-2009, 09:37 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