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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate column in list depending on Date

Status
Not open for further replies.

2ks

Technical User
Jan 13, 2007
54
GB
I am struggling to find a code to calculate the financial year depending on the DATE input by user in DATE field.

Basically if a user selects date 29/1/2010 from the DATE column in the year column I want it to auto return 2009/10 in the Year Column.

If the date is 29/1/2011 it needs to return 2010/11 and so on

Thanks
 
If it based upon the year, you can do something like this -

Code:
=IF(TEXT(date,"YYYY")="2009","2009",IF(TEXT(date,"YYYY")="2010","2010","2011"))

and just continue it for different years.

carl
MCSD, MCTS:MOSS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top