Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Round dates to weekdays

On Wed, 21 May 2008 13:12:00 -0700, Nan wrote:

Is there a way that Excel can recognize if a date is a weekend and round it
to the nearest weekday?


One way is to use a formula (with your date in A1):

=A1-(WEEKDAY(A1)=7)+(WEEKDAY(A1)=1)
--ron
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
Difference (weekdays) between two dates ant1983 Excel Worksheet Functions 5 October 29th 07 08:37 PM
dates for weekdays in non-contiguous cells spence Excel Worksheet Functions 1 June 10th 07 07:39 PM
How to generate a random list of weekDAYS between two dates? Yanzel Muniz Excel Worksheet Functions 1 September 22nd 05 12:45 AM
How do i count number of weekdays between two dates? Sanjay Shah Excel Worksheet Functions 1 April 4th 05 04:40 PM
Fill dates with weekdays/workdays only DJ Bjorklund Excel Worksheet Functions 1 January 18th 05 04:48 PM


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