ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula for counting only Friday between to dates (https://www.excelbanter.com/excel-discussion-misc-queries/231915-formula-counting-only-friday-between-dates.html)

EricBB

formula for counting only Friday between to dates
 
i need a formula to count only Friday between to dates.

say,
A1=Starting Date
A2=End Date

A3 will be the no. of Friday between A1 & A2

Pls. help....

Jacob Skaria

formula for counting only Friday between to dates
 
=INT((A2-WEEKDAY(A2+1-6)-A1+8)/7)
--
If this post helps click Yes
---------------
Jacob Skaria


"EricBB" wrote:

i need a formula to count only Friday between to dates.

say,
A1=Starting Date
A2=End Date

A3 will be the no. of Friday between A1 & A2

Pls. help....


Jarek Kujawa[_2_]

formula for counting only Friday between to dates
 
one way:

=SUM(IF(WEEKDAY(A1:A19,2)=3,1))

CTRL+SHIFT+ENTER it as it is an array-formula



On 26 Maj, 08:07, EricBB wrote:
i need a formula to count only Friday between to dates.

say,
A1=Starting Date
A2=End Date

A3 will be the no. of Friday between A1 & A2

Pls. help....



Jarek Kujawa[_2_]

formula for counting only Friday between to dates
 
oops, sorry

did not read the post carefully

On 26 Maj, 08:35, Jarek Kujawa wrote:
one way:

=SUM(IF(WEEKDAY(A1:A19,2)=3,1))

CTRL+SHIFT+ENTER it as it is an array-formula

On 26 Maj, 08:07, EricBB wrote:



i need a formula to count only Friday between to dates.


say,
A1=Starting Date
A2=End Date


A3 will be the no. of Friday between A1 & A2


Pls. help....- Ukryj cytowany tekst -


- Pokaż cytowany tekst -



Dave Peterson

formula for counting only Friday between to dates
 
Another:

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))=6))



EricBB wrote:

i need a formula to count only Friday between to dates.

say,
A1=Starting Date
A2=End Date

A3 will be the no. of Friday between A1 & A2

Pls. help....


--

Dave Peterson


All times are GMT +1. The time now is 02:09 PM.

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