Excel: Determining the Accounting Week of a DateLast reviewed: November 30, 1994Article ID: Q81028 |
The information in this article applies to:
SUMMARYThe following formula returns the number of the accounting week for a date contained in cell A1 on a worksheet: =(DAY(A1+4-WEEKDAY(A1))+MOD(WEEKDAY(DATE(YEAR(A1+4-WEEKDAY(A1)),MONTH(A1+ 4-WEEKDAY(A1)),1))+2,7))/7 The following formula returns the number of the accounting month for the same date (1,2,3, and so on, for January, February, March, and so on) =MONTH(A1-WEEKDAY(A1)+4)
MORE INFORMATIONAccounting weeks begin on Sunday and end on Saturday. All dates within an accounting week belong to the month of the Wednesday of that week. 2/1/91, for example, is a Friday and thus falls in the fifth accounting week of January (because the Wednesday of that business week falls on 1/30/91).
REFERENCES"Microsoft Excel Function Reference," for the Macintosh, version 3.0, pages 249
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |