#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Date Round Up

All,

Trying to round up a date to the nearest Saturday and am struggling to get
the correct result. Can't find a solution using the ROUND or ROUNDUP formula.

Column A Column B
01/01/07 05/01/07
02/01/07 06/01/07

Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Date Round Up

Sorry, mistake in the below, columns should read:

Column A Column B
01/01/07 05/01/07
02/01/07 05/01/07
03/01/07 05/01/07
04/01/07 05/01/07
05/01/07 05/01/07
06/01/07 12/01/07

"shakey1181" wrote:

All,

Trying to round up a date to the nearest Saturday and am struggling to get
the correct result. Can't find a solution using the ROUND or ROUNDUP formula.

Column A Column B
01/01/07 05/01/07
02/01/07 06/01/07

Thanks in advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Date Round Up

use in B1 the formula =A1+7-WEEKDAY(A1)

best wishes

Ernst Schuurman


"shakey1181" schreef in bericht
...
All,

Trying to round up a date to the nearest Saturday and am struggling to get
the correct result. Can't find a solution using the ROUND or ROUNDUP
formula.

Column A Column B
01/01/07 05/01/07
02/01/07 06/01/07

Thanks in advance for any help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Date Round Up

I've assumed the next Friday as in your example and not saturday as in the text


=A1+IF(WEEKDAY(A1)=7,13-WEEKDAY(A1),6-WEEKDAY(A1))

In B1 and drag down

Mike

"shakey1181" wrote:

Sorry, mistake in the below, columns should read:

Column A Column B
01/01/07 05/01/07
02/01/07 05/01/07
03/01/07 05/01/07
04/01/07 05/01/07
05/01/07 05/01/07
06/01/07 12/01/07

"shakey1181" wrote:

All,

Trying to round up a date to the nearest Saturday and am struggling to get
the correct result. Can't find a solution using the ROUND or ROUNDUP formula.

Column A Column B
01/01/07 05/01/07
02/01/07 06/01/07

Thanks in advance for any help.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Date Round Up

perfect, thankyou so much.

"Ernst Schuurman" wrote:

use in B1 the formula =A1+7-WEEKDAY(A1)

best wishes

Ernst Schuurman


"shakey1181" schreef in bericht
...
All,

Trying to round up a date to the nearest Saturday and am struggling to get
the correct result. Can't find a solution using the ROUND or ROUNDUP
formula.

Column A Column B
01/01/07 05/01/07
02/01/07 06/01/07

Thanks in advance for any help.




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
calcutale 2 date with round date gohar Excel Worksheet Functions 2 October 24th 07 06:50 PM
Date round-up Jeff Excel Discussion (Misc queries) 1 December 20th 06 09:41 AM
Round Up/Down ? TQ Excel Worksheet Functions 2 July 28th 06 09:43 AM
Round date to first of month Dominic Excel Discussion (Misc queries) 3 July 14th 05 11:21 PM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 05:02 AM.

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

About Us

"It's about Microsoft Excel"