Solved

Workweek - add 6 months and 60 days

Posted on 2014-11-05
6
87 Views
Last Modified: 2014-11-05
Experts, I have fiddled around with this workweek function and I cant get it to work.  

How can I modify the below for Workweek?  I am adding 6 months and 60 days.  I have 180 for 6 months but I dont believe that is totally accurate.  If know how to add 6 months then that is what I am after.  I am adding only calendar and not days counted M-F.  

=H114+180+60

thank you
0
Comment
Question by:pdvsa
  • 3
  • 2
6 Comments
 
LVL 39

Assisted Solution

by:als315
als315 earned 100 total points
Comment Utility
With EDATE you can add monthes to your date:
=EDATE(H114,6)
0
 

Author Comment

by:pdvsa
Comment Utility
I am doing something wrong.  It is returning Weekend dates.  I am adding 6 months then adding additoinal 60 days and this is what the "8" is.  (6 +2)

you see something?
=WORKDAY(EDATE(H114,8),-1,1)
0
 
LVL 7

Expert Comment

by:Katie Pierce
Comment Utility
Try this:

=IF(WEEKDAY(EDATE(H114,6),2)=7,EDATE(H114,6)+1,IF(WEEKDAY(EDATE(H114,6),2)=6,EDATE(H114,6)+2,EDATE(H114,6)))

This will determine if your end date falls on a Saturday or a Sunday, it will push it to the next Monday.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:pdvsa
Comment Utility
Katie:  I am getting something not expected and wondering if your formula adds 6 months or is it 8?  I am thinking it is 6 but my original question was to add 8 total (6 months + 60 days which is about 8 months)

let me know..
0
 
LVL 7

Accepted Solution

by:
Katie Pierce earned 400 total points
Comment Utility
Oh, sorry, I read 6 months.  Yes, replace the 6 with an 8 in each instance to make it +8 months:

=IF(WEEKDAY(EDATE(H114,8),2)=7,EDATE(H114,8)+1,IF(WEEKDAY(EDATE(H114,8),2)=6,EDATE(H114,8)+2,EDATE(H114,8)))
0
 

Author Closing Comment

by:pdvsa
Comment Utility
thank you...it works!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
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.

762 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

6 Experts available now in Live!

Get 1:1 Help Now