Solved

# Every Oct 8

Posted on 2015-01-10
76 Views
experts, i need a formula for each oct 8 of each year.  t should be draggable down several rows from start date in A1. if oct 8 is a weekend then i need preceding workday.

thank you
0
Question by:pdvsa

LVL 11

Expert Comment

HI

Would you be able to provide an excel template that we can work with?

This should help us to understand what you really need.
0

Author Comment

Hi, I am on my phone at the moment.

Let's say cell a1 is October 8, 2015.  I need out 8 of each succeeding year and using previous workday if lands on a weekend.

Thank you
I hope my explanation is clear.
0

LVL 43

Accepted Solution

Saqib Husain, Syed earned 500 total points
Try this formula in A2 and drag down

=DATE(YEAR(A1)+1,10,8-MAX(0,WEEKDAY(DATE(YEAR(A1)+1,10,8),2)-5))
0

Author Comment

Saqib, that works.

Would you happen to know how I could incorporate a holidays named range?  I have a tab with a listing of holidays and if the date lands on the holiday then use the preceding workday.
0

LVL 43

Expert Comment

Unless you have oct 6th or oct 7th as a holiday you probably do not have to worry about holidays.
0

LVL 50

Expert Comment

...a bit late for this one, I know.......but if you use WORKDAY function you can exclude holidays if that might be a factor, i.e. using this formula in A2 copied down

=WORKDAY(DATE(YEAR(A1)+1,10,8)+1,-1,holidays)

regards, barry
0

Author Comment

Thank you Barry.  I will test that when I return to my computer.  Appreciate your response after knowing that the question was closed.
0

## Featured Post

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…