#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Date Formula

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Date Formula

=V5+44-WEEKDAY(V5)

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Date Formula

Hi Clare.
You need to use the weekday formula to calculate the day of the week and
then use the if function to see if it falls in the later or earlier part of
the week. then add or subtract it from six weeks if its the earlier part of
the week to take it back to the last monday or from 7 weeks to take it to the
next monday if its in the later part of the week.
try this :

=IF(WEEKDAY(v5,1)<4,v5+41-(WEEKDAY(v5,1)),v5+48-(WEEKDAY(v5,1)))

hope its Ok
thanks John
"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Date Formula

Sorry Clare
Think I got my 7 times tables wrong or something! I think formula should read:
=IF(WEEKDAY(B5,1)<4,B5+43-(WEEKDAY(B5,1)),B5+50-(WEEKDAY(B5,1)))

all the best John

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Date Formula

I of course mean V5 was using B5 in my example:

=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),B5+50-(WEEKDAY(V5,1)))

This assumes that you want mon tue and wed dates to be booked for the monday
prior and thur fri sat and sun to fall to the mon following. If you wish thur
to fall to the mon prior change the 4 to 5.
"Atishoo" wrote:

Sorry Clare
Think I got my 7 times tables wrong or something! I think formula should read:
=IF(WEEKDAY(B5,1)<4,B5+43-(WEEKDAY(B5,1)),B5+50-(WEEKDAY(B5,1)))

all the best John

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Date Formula

try again without me leaving B5 in: sorry
=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),V5+50-(WEEKDAY(V5,1)))
"Atishoo" wrote:

I of course mean V5 was using B5 in my example:

=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),B5+50-(WEEKDAY(V5,1)))

This assumes that you want mon tue and wed dates to be booked for the monday
prior and thur fri sat and sun to fall to the mon following. If you wish thur
to fall to the mon prior change the 4 to 5.
"Atishoo" wrote:

Sorry Clare
Think I got my 7 times tables wrong or something! I think formula should read:
=IF(WEEKDAY(B5,1)<4,B5+43-(WEEKDAY(B5,1)),B5+50-(WEEKDAY(B5,1)))

all the best John

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Date Formula

Thanks Sean that works great
--
Clare


"Sean Timmons" wrote:

=V5+44-WEEKDAY(V5)

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Date Formula

Hi Atishoo

Thanks for all your help it worked tried using the other formulas which were
great but yours rounded up and down only thing was I had to change the 1's to
2's to make it round up to Monday's rather than Sundays. Thanks again would
never have worked out myself.
--
Clare


"Atishoo" wrote:

try again without me leaving B5 in: sorry
=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),V5+50-(WEEKDAY(V5,1)))
"Atishoo" wrote:

I of course mean V5 was using B5 in my example:

=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),B5+50-(WEEKDAY(V5,1)))

This assumes that you want mon tue and wed dates to be booked for the monday
prior and thur fri sat and sun to fall to the mon following. If you wish thur
to fall to the mon prior change the 4 to 5.
"Atishoo" wrote:

Sorry Clare
Think I got my 7 times tables wrong or something! I think formula should read:
=IF(WEEKDAY(B5,1)<4,B5+43-(WEEKDAY(B5,1)),B5+50-(WEEKDAY(B5,1)))

all the best John

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Date Formula

Welcome, just out of interest which way did you want thursdays to go?

"Clare" wrote:

Hi Atishoo

Thanks for all your help it worked tried using the other formulas which were
great but yours rounded up and down only thing was I had to change the 1's to
2's to make it round up to Monday's rather than Sundays. Thanks again would
never have worked out myself.
--
Clare


"Atishoo" wrote:

try again without me leaving B5 in: sorry
=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),V5+50-(WEEKDAY(V5,1)))
"Atishoo" wrote:

I of course mean V5 was using B5 in my example:

=IF(WEEKDAY(V5,1)<4,V5+43-(WEEKDAY(V5,1)),B5+50-(WEEKDAY(V5,1)))

This assumes that you want mon tue and wed dates to be booked for the monday
prior and thur fri sat and sun to fall to the mon following. If you wish thur
to fall to the mon prior change the 4 to 5.
"Atishoo" wrote:

Sorry Clare
Think I got my 7 times tables wrong or something! I think formula should read:
=IF(WEEKDAY(B5,1)<4,B5+43-(WEEKDAY(B5,1)),B5+50-(WEEKDAY(B5,1)))

all the best John

"Clare" wrote:

I have a date in column V5 and need to calculate 6 weeks from this date to
prompt a review. I was going to use =(V5+42) but I need to make the date
round up or down to the nearest Monday. Is there any way of doing this.

Thaks
--
Clare

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
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


All times are GMT +1. The time now is 01:16 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"