Solved

Add Days - Not Workdays

Posted on 2014-11-02
4
70 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

911 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

21 Experts available now in Live!

Get 1:1 Help Now