+ 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
    6

    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 2013
    Posts
    7,300

    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
    2016
    Posts
    5,872

    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 2013
    Posts
    7,300

    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
    6

    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
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    Pro 2019
    Posts
    15,603

    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.)
    Making the world a better place one fret at a time | | |會 |會 |會 |會 | |:| | |會 |會
    Please read the rules
    If someone helped you, click on the star icon at the bottom of their post
    If your problem is solved, go to Thread Tools and select Mark This Thread Solved
    Don't attach a screenshot--just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

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

    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 Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    9,683

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

    As you have 5 posts now, pasting a link should work
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

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

    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 Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    9,683

    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)

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