?
Solved

How use Excel to automatically schedule dates backwards from entered date

Posted on 2011-03-15
5
Medium Priority
?
547 Views
Last Modified: 2013-11-05
I have an Excel file which I would like to have automatically enter dates (schedule) BACKWARDS from an entered date.  I've attached a sample file which illustrates how I would like this to work.  Can anyone help with this?

--Steve

Auto-Date-Example.xls
0
Comment
Question by:SteveL13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 35143132
Hello Steve, you can use WORKDAY function. If you are using Excel 2003 then you need Analysis ToolPak installed for WORKDAY to work. If it doesn't then try enabling Analysis ToolPak like this

Tools > add-ins > tick "Analysis ToolPak"

Then formula in V3 copied back across to D3

=WORKDAY(W3,-1,$AC2:$AC20)

where you have holidays listed in the range AC2:AC20

regards, barry
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 35143134
Make a list of holidays on the sheet and name it "Holidays".

Enter this formula in cell V3:

   =WORKDAY(W3, -1, Holidays)

Copy that cell to the left.

Kevin
0
 
LVL 5

Expert Comment

by:KPAYNE123
ID: 35143138
If you are using Excel 2007, there are two functions built in: NETWORKDAYS () is the one you want.  It also will exclude holidays if you set up a holidays' table.

  If you don't have Excel 2007, the problem is much more difficult.  You basically have to CREATE a complex function that figures out the day-of-week of your begin-date (easy when you use the 2003 WEEKDAY() function!)  and then figures out how many days are left in that first week before the weekend... a simple subtraction.

   You can do the same thing with the end-date, except you need to calculate backwards to the previous weekend.

   Each of these steps will result in a MODIFIED start date.

0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 1000 total points
ID: 35143140
See the attached.

Kevin
Auto-Date-Example.xls
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 1000 total points
ID: 35143141
Here' an example of the above approach

regards, barry
26889435.xls
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

770 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