Solved

Holidays, use previous work date

Posted on 2012-12-26
3
228 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now