Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Date Functions : NWM
Q14629 - INFO: NWM

NWM returns the number of weeks in a month. 

SYNTAX:

NWM(Monthoffset/Date, Week definition)

MonthOffset/Date: If a number it is the One based offset from the Start Date of the report. If this field is a date string (i.e. "07/16/2004") or refers to a cell with a date in it, it sets the month to calculate for

Common values:

1 = Start Month of report
2 = Next Month after the start date of report
0 = Previous month

Week Definition: "Wn" - Week as defined by n. IE "W7" is Sunday thru Saturday. Click here for a table defining weeks.

EXAMPLES:

In all examples the start date of the report in 1/1/2021:

NWM(1,"W7") - Returns 5 as there are 5 Sunday to Saturday weeks in Jan 2021.

NWM(C4,"W7") - Returns 4 as C4 contains the date "2/15/2021" and there are 4 Sun to Sat weeks in Feb 2021.

 

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 3/1/2021 5:12 PM.
Last Modified on 3/1/2021 5:12 PM.
Last Modified by Scott Dorner.
Article has been viewed 1193 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article