returning the first workday of the year

Lino

Active Member
Joined
Feb 27, 2002
Messages
429
Hello,

using vba is it possible to return the first work day of the year if you know the year?

so for example:

I want to know the first workday of the year for 2003. So could I somehow say give me the first workday of the year for january 2003?

thanks,

Lino
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
It depends on your holiday schedule. In your example, 1/1/2003 was a Wednesday, so your company's first workday could have been anywhere from 1/1/2003 to 1/6/2003
 
Upvote 0
Lino said:
Hello,

using vba is it possible to return the first work day of the year if you know the year?

so for example:

I want to know the first workday of the year for 2003. So could I somehow say give me the first workday of the year for january 2003?

thanks,

Lino

=WORKDAY(DATE(A1-1,13,0),1,Holidays)

A1 houses 2003, the year of interest. Holidays is a range that houses the holiday dates of the relevant year, that is, that of A1.
 
Upvote 0

Forum statistics

Threads
1,203,435
Messages
6,055,366
Members
444,781
Latest member
rishivar

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