Dates

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Is there a formula for calculation the number on Mondays
in January, and so on for each month. Similarly for
Fridays?

Thanks,
Jon
 
Jon,

One way

=
INT((DAY(DATE(YEAR(A1),MONTH(A1)+1,1)-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,6))
) + 6 ) / 7 )

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
BTW, Friday would be

=INT((DAY(DATE(YEAR(A1),MONTH(A1)+1,1)-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,2))
) + 6 ) / 7 )

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Or better still, I have dug this formula up from my archives that I first
saw posted by Daniel M

=4+(DAY(A1-DAY(A1)+35)<WEEKDAY(A1-DAY(A1)-wdn))

where wdn is the week day number, 0 = Mon,. 1 = Tues, etc.


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Auto Sheet Names and Date cells 3
Error in Excel date calculations 3
Duff Date Text 3
Excel Forecasting Dates Out to the Day 3
week numbers 3
45 day payment 2
Excel Vba to change displayed year automatically. 14
Inserting dates 7

Back
Top