Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default calculating a date using the day of the week as a starting point?

I need to calculate the start date of a service based on the day of the week,
i.e. Monday, Tuesday, etc.

For example:
All of our clients are paid weekly. Their paydays vary between Monday and
Thursday. Lets say client "A" starts a service on a Wednesday (12 July
2006), but he/she is paid on a Monday, we would take the start date of their
service as the following Monday (17 July 2006). In other words, we can only
pay clients weekly, starting from their very next payday.

I need to enter a formula to work out the 17th July in the example above.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default calculating a date using the day of the week as a starting point?

There is probably a more elegant method but the following if statement
works.
A2 = the weekday of the pay period where 1 = Sunday, 2 = Monday, etc.
(must be a number)
B2 = the first day of actual work
C2
=IF(A2=WEEKDAY(B2),B2,IF(A2WEEKDAY(B2),B2+A2-WEEKDAY(B2),B2+A2-WEEKDAY(B2)+7))

- John


Simon wrote:
I need to calculate the start date of a service based on the day of the week,
i.e. Monday, Tuesday, etc.

For example:
All of our clients are paid weekly. Their paydays vary between Monday and
Thursday. Lets say client "A" starts a service on a Wednesday (12 July
2006), but he/she is paid on a Monday, we would take the start date of their
service as the following Monday (17 July 2006). In other words, we can only
pay clients weekly, starting from their very next payday.

I need to enter a formula to work out the 17th July in the example above.


Reply
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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM
Calculating due date? Loyalise Excel Worksheet Functions 2 November 2nd 04 07:38 AM


All times are GMT +1. The time now is 06:59 PM.

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"