LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Need help creating a formula

Hi,
I need to create a formula that will calculate a date 21 business days from a date entered into an adjacent cell.

Example:
In cell A a date would be entered say, 12/12/07,
Cell B would then insert a date that is 21 business days later, but also add 1 day to the nearest Friday. So 21 days after 12/12/07 would be 1/10/08 and the nearest Friday would be 1/11/08. This would make it actually 22 days.

If the date enter is say 12/17/07, 21 days after would be 1/14/08 plus 4 days to the nearest Friday would actually make it 25 days.
I realize this sounds complicated but they need it to do this based on the date entered for calculating paydays for flat rate work.

This may explain what they are trying to do; "Every Friday, 21 days after a service call is closed, we mail a check to the technician."

So, if 21 days after a service call is closed ends on a Monday for example, the formula would need to add 4 more day to the 21 days. Or would it be easier for them to start from the Friday following the close date? So say the close date is 12/12/07, they would enter 12/14/07 (which is the Friday following the close date). The formula would then insert a date 21 days following Friday 12/14/07 which would simplify the formula calculation, I think.

Or would a macro be better suited to handle this type of calculation?

Any examples of a formula or macro would be appreciated. BTW, I agreed to assist but have had little experience with this type of calculation.

DonV-


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a formula JonathanW Excel Worksheet Functions 1 March 15th 07 05:06 AM
Creating a formula Dave Excel Worksheet Functions 1 May 15th 06 01:52 AM
help creating a formula using IF and AND [email protected] Excel Worksheet Functions 8 January 16th 06 09:23 PM
I need help creating a formula Kim Excel Discussion (Misc queries) 11 November 19th 05 08:01 PM
Help creating formula dmeals Excel Programming 1 January 4th 05 04:43 PM


All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"