Solved

Holidays, use previous work date

Posted on 2012-12-26
3
244 Views
Last Modified: 2012-12-26
Experts,

I have a spreadsheet with many columns.
I am dragging a date to the right from A1 to the last column.
If the date is any of the French holidays then I want to use the preceding work day.

the attached file is holidays in France.

How could I do this?
0
Comment
Question by:pdvsa
3 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 38721432
Try using the networkdays function, and/or including your file.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 38721436
Do you want to include weekends? If not then assuming you have the holidays in another sheet, say holidays sheet range H2:H10 then try using this formula in B1 copied acros

=WORKDAY(A1,1,Holidays!$H2:$H10)

If you drag that across it will give you every working day (excluding holidays and weekends)

see attached

regards, barry
workdays.xlsx
0
 

Author Closing Comment

by:pdvsa
ID: 38721541
very nice.  I have 2 parts to this question so I am about to ask a follow up..
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question