Solved

Add Days - Not Workdays

Posted on 2014-11-02
4
72 Views
Last Modified: 2014-11-03
Hello, Is the below formula correct to add simply 45 days (not WORKDAYS)?   I think it is but not certain.  

=WORKDAY(EDATE(H67,CHOOSE(MATCH(D68,{"annually","quarterly","semi-annually","monthly"},0),12,3,6,1))-1,1,Holidays_US_Jap)+45

thank you
0
Comment
Question by:pdvsa
  • 2
4 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 40418815
Yes. Excel stores dates as integers and times as decimals, so to add days to a date, simply add a whole number.
0
 

Author Comment

by:pdvsa
ID: 40419610
thank you.  Is it adding 45 days because this criteria is outside of the formula?  Meaning that if I wanted to add 45 WORKDAYS then I would need to put it inside the formula?  

thank you
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40419691
^Correct; this adds 45 calendar days to the result of the WORKDAY() function.  If you wanted to add 45 workdays to the result, you'd change the days argument from 1 to 45:
=WORKDAY(EDATE(H67,CHOOSE(MATCH(D68,{"annually","quarterly","semi-annually","monthly"},0),12,3,6,1))-1,45,Holidays_US_Jap)

Note the difference:  If the date in H67 is 11/1/2014 and the measure value in D68 is "monthly" then:
A) The formula without any 45-day change  = 12/1/2014
B) The formula with 45 calendar days = 1/15/2015
C) The formula with 45 workdays = 3/20/2015

Regards,
-Glenn
0
 

Author Comment

by:pdvsa
ID: 40419948
thank you.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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 …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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