Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tiq tiq is offline
external usenet poster
 
Posts: 6
Default Need a formula to count the fridays between two dates

example:
cell F1 is the start date 07-01-06
cell E1 is the end date 07-29-06
cell F3 is the answer 4

I just need to count the fridays between two dates
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a formula to count the fridays between two dates


Try

=SUM(IF(WEEKDAY(F2-1+ROW(INDIRECT("1:"&TRUNC(F3-F2)+1)))=6,1,0))

It's an array so need to press Crtl + ****f + enter to work

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=570107

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Need a formula to count the fridays between two dates

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(F1&":"&E1)))=6))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"tiq" wrote in message
...
example:
cell F1 is the start date 07-01-06
cell E1 is the end date 07-29-06
cell F3 is the answer 4

I just need to count the fridays between two dates



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a formula to count the fridays between two dates


Just because I like to make things difficult =)

=IF(6-WEEKDAY(F1)-1, QUOTIENT((E1-F1-(6-WEEKDAY(F1))),7)+1,
QUOTIENT((E1-F1-6), 7)+1)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=570107

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a formula to count the fridays between two dates

Thanks. I used that and it worked for me. I was pretty amazed, I'm still
trying to figure it out.

"VBA Noob" wrote:


Try

=SUM(IF(WEEKDAY(F2-1+ROW(INDIRECT("1:"&TRUNC(F3-F2)+1)))=6,1,0))

It's an array so need to press Crtl + ****f + enter to work

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=570107


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 Calculate the Number of Fridays between two dates. Shukla456 Excel Discussion (Misc queries) 5 March 24th 10 03:57 AM
Formula to get number of days excluding Fridays in a given period Abdul[_2_] Excel Worksheet Functions 17 November 10th 09 08:00 PM
a formula that returns the previous fridays date diggyroo Excel Worksheet Functions 7 March 13th 08 01:59 AM
formula for last Fridays date Pete Excel Discussion (Misc queries) 6 February 20th 07 06:18 PM
count work days excluding Fridays and Saturdays ??? Excel Dubai Excel Worksheet Functions 3 February 17th 07 11:38 AM


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