FYQ ( Start ; theDate )
Rate this function: Average rating: 4.8 (6 votes) Discuss this Custom Function
Matt Wills, Virtual Vermont
http://www.VirtualVermont.com/FMP
Fiscal year and quarter of a given date
Sample Input:
FYQ ( 7 ; 1/15/08 )
FYQ ( 10 ; 1/15/08 ) |
|
Sample Output:
|
Description:
Returns the fiscal year and quarter of a given date, considering the starting month of the fiscal year and observing the convention that the year is named for the year in which it ends (e.g., the US Government's fiscal year beginning October 1, 2007 and ending September 30, 2008 is FY 2008).
Start is the first month of the fiscal year
theDate is the date to be processed
With thanks to <a href = "http://www.mikezarin.com">Mike Zarin</a> for a suggestion that pulled it all together.
If you want the full four-character year (2008 rather than 08), change the last part of the concatenation to read
"Q" & If ( Start = 1 ; Year ( theDate ) ; Year ( theDate ) + 1 )
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
GroupRelationInfo ( FileTarget ; TableTarget ; Result ) |
| |
(Tue, Mar 16, 5:57am) |
| 2. |
GeoBox(latitude;longitude; radius) |
| |
(Mon, Mar 15, 11:04am) |
| 3. |
MonthNameList ( start; number; short ) |
| |
(Sun, Mar 14, 11:45pm) |
| 4. |
matchListAB( ListA ; ListB; match_Value; match_operator ; getN ) |
| |
(Sun, Mar 14, 10:29pm) |
| 5. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 6. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 7. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 8. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
 |
|