Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RM RM is offline
external usenet poster
 
Posts: 23
Default WEEKDAY in EXCEL 2003

I need to be able to count the number of Saturdays between start and end
dates, i.e., a1 = 9/21/2009; b1 = 2/19/2010; c1 = No. of Saturdays

Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default WEEKDAY in EXCEL 2003

Try
=INT((B1-WEEKDAY(B1+1-7)-A1+8)/7)

If this post helps click Yes
---------------
Jacob Skaria


"RM" wrote:

I need to be able to count the number of Saturdays between start and end
dates, i.e., a1 = 9/21/2009; b1 = 2/19/2010; c1 = No. of Saturdays

Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
RM RM is offline
external usenet poster
 
Posts: 23
Default WEEKDAY in EXCEL 2003

This worked great. However, what numbers do I change depending on the day of
the week I want to count?

"RM" wrote:

I need to be able to count the number of Saturdays between start and end
dates, i.e., a1 = 9/21/2009; b1 = 2/19/2010; c1 = No. of Saturdays

Can anyone help?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default WEEKDAY in EXCEL 2003

(1-weekday)

for sat
1-7

If this post helps click Yes
---------------
Jacob Skaria


"RM" wrote:

This worked great. However, what numbers do I change depending on the day of
the week I want to count?

"RM" wrote:

I need to be able to count the number of Saturdays between start and end
dates, i.e., a1 = 9/21/2009; b1 = 2/19/2010; c1 = No. of Saturdays

Can anyone help?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default WEEKDAY in EXCEL 2003

I have a number of functions related to days of the week and days of
the month at http://www.cpearson.com/Excel/DayOfWeekFunctions.aspx .
The functions are implemented as both Excel formulas and VBA
functions.

For the number of DayOfWeek days between StartDate and EndDate, use a
formula like:

=((EndDate-MOD(WEEKDAY(EndDate)-DayOfWeek,7)-
StartDate-MOD(DayOfWeek-WEEKDAY(StartDate),7))/7)+1

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



On Thu, 17 Sep 2009 10:25:26 -0700, RM
wrote:

I need to be able to count the number of Saturdays between start and end
dates, i.e., a1 = 9/21/2009; b1 = 2/19/2010; c1 = No. of Saturdays

Can anyone 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
How to determine the weekday in excel? Teethless mama Excel Discussion (Misc queries) 0 November 29th 06 03:49 PM
How to determine the weekday in excel? Eric Excel Discussion (Misc queries) 0 November 29th 06 03:03 PM
How to determine the weekday in excel? Dirk Excel Worksheet Functions 0 November 29th 06 08:48 AM
WEEKDAY() function: display TEXT not numeric weekday tom Excel Discussion (Misc queries) 3 November 21st 06 04:32 PM
weekday display in excel abbylulu2 Excel Worksheet Functions 2 January 30th 05 02:47 PM


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