MrExcel's Learn Excel #560 - Negative Workdays

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Jul 6, 2009.
How can you figure out a date that is a certain number or workdays BEFORE a date? On the last episode of The Lab with Leo Laporte, I showed how to calculate a date 45 workdays after a certain date. Todays question is how to calculate the date 5 days before the end of the month. Episode 560 shows you how to calculate this value.

This blog is the video podcast companion to the book, Learn Excel from MrExcel. Download a new two minute video every workday to learn one of the 277 tips from the book!
maxresdefault.jpg


Transcript of the video:
Welcome back to the Mr. Excel netcast.
I'm Bill Jelen.
Today we have a question sitting by Vishnu from India.
If you have a question for the netcast, please feel free to either leave a voice mail or drop me an email and we'll get to you on a future podcast.
Now, it's completely coincidence that on Friday we were talking about how to find the end of the month.
And Vishnu's question happens to deal with finding the number of work days before the end of the month.
So, it's not just that he wants to find the last day of the month.
He wants to know, you know, what's three work days before that.
Now, he mentioned using the EOMONTH function.
And that's one of the functions that. we have to use the Analysis Toolpak.
So, make sure if you're in Excel 2003 or before you go to, Tools, Add-Ins and choose Analysis Toolpak.
Those of us on Excel 2007, it's automatically in you don't have to worry about turning on the add-in.
So, we asked for the EOMONTH function of that particular date and they want to know how many months out we want to go.
We don't want to go out any number of months, we just want to stay in the current month.
And so, we hit zero.
Now, one frustrating thing with EOMONTH and the WORKDAY function, that we're about to use is that it doesn't automatically format the cell as a date.
So, I'll select those cells use control+1, to get the Format Cells and choose a Date function.
I'm going to choose the one that shows me the day of the week.
So, we see that the end of the month here is Tuesday.
Now, the WORKDAY function is this beautiful function.
=WORKDAY(EOMONTH(B11,0) and then the number of work days out from that.
So, normally what I do my example is, you know, you start working than 45 days later you're off probation.
So, I put comma 45 there, but it turns out that it works perfectly with negative numbers.
So, if I want to know one day before the end of the month, we'll use the negative one and then I will copy that over, So, one day before the end of the month is July 30th.
Two work days before the end of the month is Friday.
Three work days before the end of the month is Thursday, July 26th.
So, using a combination of EOMONTH and the WORKDAY Function with a negative number, to figure out how many days before the end of the month.
Thanks to Vishnu for sending that question in.
Again, if you have a question for the podcast.
Please, feel free to send it in.
Thanks for stopping by.
See you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,214,583
Messages
6,120,375
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top