A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Fiscal Six-Month Periods



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2010, 07:32 PM posted to microsoft.public.access.gettingstarted
Rothman
external usenet poster
 
Posts: 32
Default Fiscal Six-Month Periods

I have a database with a bunch of dates in it. I'd like to create a new
calculated field that designates the associated date in a six-month period
through a query.

The periods go from April 1st to September 30th (1st half of our fiscal
year) and then from October 1st to March 31st (2nd half of our fiscal year).

So, a date in OBLG_DATE of 6/1/09 would be designated in the new field
SFY_SIX as something like 2009S1. A date of 11/13/10 would be designated as
something like 2010S2.

Thanks for your help to this quite novice user in advance.
  #2  
Old February 16th, 2010, 09:00 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Fiscal Six-Month Periods

This expression should calculate the Fiscal year.
Year(DateAdd("m",-3,OBLG_Date)
This expression should calculate the period
IIF(Month(OBLG_Date) Between 4 and 9,"S1","S2")

Combine the two when you need to get the period label
Year(DateAdd("m",-3,OBLG_Date) & IIF(Month(OBLG_Date) Between 4 and
9,"S1","S2")

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Rothman wrote:
I have a database with a bunch of dates in it. I'd like to create a new
calculated field that designates the associated date in a six-month period
through a query.

The periods go from April 1st to September 30th (1st half of our fiscal
year) and then from October 1st to March 31st (2nd half of our fiscal year).

So, a date in OBLG_DATE of 6/1/09 would be designated in the new field
SFY_SIX as something like 2009S1. A date of 11/13/10 would be designated as
something like 2010S2.

Thanks for your help to this quite novice user in advance.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.