Solved

60 days after every Jan and July 15, add workday

Posted on 2014-11-04
4
132 Views
Last Modified: 2014-11-04
Experts, I have another question.  The below returns 60 days after each Jan and July 15 based on now().  I need to change the Now() to a cell reference and need to add WORKDAY criteria.  I have fiddled around with it to no avail.

here is what I have now.  
=DATE(YEAR(NOW()),CHOOSE(MONTH(NOW()),IF(DAY(NOW())>15,7,1),7,7,7,7,7,IF(DAY(NOW())>15,13,7),13,13,13,13,13),15+60)

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

Expert Comment

by:Phillip Burton
ID: 40422407
=workday(DATE(YEAR(a1),CHOOSE(MONTH(NOW()),IF(DAY(NOW())>15,7,1),7,7,7,7,7,IF(DAY(NOW())>15,13,7),13,13,13,13,13),15+60)-1,1)
0
 

Author Comment

by:pdvsa
ID: 40422487
Philip, thanks.  I am needing to move away from the NOW part of it (in the IF) and instead refer to a cell above it.  I am going to be dragging the formula down and referring the the cell above.  Not sure what all the change if after knowing this.  

Thank you for the help once again...
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40422499
=workday(DATE(YEAR(a1),CHOOSE(MONTH(A1),IF(DAY(a1)>15,7,1),7,7,7,7,7,IF(DAY(a1)>15,13,7),13,13,13,13,13),15+60)-1,1)
0
 

Author Closing Comment

by:pdvsa
ID: 40422553
very nice.  thank you.  I have a follow up.  be looking...:0)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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.

706 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

12 Experts available now in Live!

Get 1:1 Help Now