Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to identify weeks in a month

Status
Not open for further replies.

crzycrystlgrl

Technical User
Nov 6, 2004
20
US
Hi all
I am using CR9

I am trying to figure out a formula for crystal to recongnize days in "Week 1" , "Week 2" , "Week 3" etc for any given month.
So far the only thing I have come up with is hard coding every month with a if day is inbetween 1 and 7 then week 1.
Does anyone have a more dynamic soloution?
thanks in advance
Cynthia
 
Try:

Datepart("ww",{Orders.Order Date})+1
- Datepart("ww",({Orders.Order Date} - Day({Orders.Order Date})+1))

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top