Date function

D

Danny

I am looking for a formula that looks at a date and
returns the week number in a month.
Eg date field is April 4 2004 the formula will return what
week in that month that day falls on. i have this code
which tells me the same thing but only what week it is of
the year.
=TRUNC(((D7-DATE(YEAR(D7),1,1))/7))+1+IF(WEEKDAY(DATE(YEAR
(D7),1,1))>WEEKDAY(D7),1,0)

can anyone modify this to return the week in the month?
thnx,
Danny
 
F

Frank Kabel

Hi Danny
this could be a little bit complicated. which definition of weeknumber
do you want to use?
 

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

Top