ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date Round Up (https://www.excelbanter.com/excel-discussion-misc-queries/165670-date-round-up.html)

shakey1181

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.

shakey1181

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.


Ernst Schuurman

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.




Mike H

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.


shakey1181

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.






All times are GMT +1. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com