Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin_London
 
Posts: n/a
Default year function and financial years

In the UK our financial year runs April to March. Is there any way of using
the =year() function on a date so that it runs on these dates rather than
calender years? Basically I need Jan, Feb and March of next year to be
recognised as the same year as April to December of this year.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default year function and financial years

one way:

instead of

=YEAR(A1)

use

=YEAR(DATE(YEAR(A1),MONTH(A1)-3,1))

In article ,
"Martin_London" wrote:

In the UK our financial year runs April to March. Is there any way of using
the =year() function on a date so that it runs on these dates rather than
calender years? Basically I need Jan, Feb and March of next year to be
recognised as the same year as April to December of this year.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Martin_London
 
Posts: n/a
Default year function and financial years

Thanks JE

My formula now reads

=IF(AND(D$3=SPVs!$F$12,YEAR(DATE(YEAR(D$3),MONTH( D$3)-3,1))=YEAR(DATE(YEAR(-SPVs!$F$12),MONTH(-SPVs!$F$12)-3,1))),$O82/(15-MONTH(SPVs!$F$12)),IF(AND(D$3=SPVs!$F$12,YEAR(DAT E(YEAR(D$3),MONTH(D$3)-3,1))=YEAR(DATE(YEAR(-SPVs!$F$12),MONTH(-SPVs!$F$12)-3,1))),$O82/12,0))

with D$3 and SPVs!$F$12 being two dates but I am getting a #NUM! error.

Any ideas?
Martin

"JE McGimpsey" wrote:

one way:

instead of

=YEAR(A1)

use

=YEAR(DATE(YEAR(A1),MONTH(A1)-3,1))

In article ,
"Martin_London" wrote:

In the UK our financial year runs April to March. Is there any way of using
the =year() function on a date so that it runs on these dates rather than
calender years? Basically I need Jan, Feb and March of next year to be
recognised as the same year as April to December of this year.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default year function and financial years

Hi Martin

You seem to have a minus sign in front of SPVs!$F$12 throughout the formula

In some cases there is a number in front of the minus sign, in others there
is not.
I suspect that is what is giving you the problem.

Also, using Sandy's suggestion for calculating the Year

Year(D$3-(Month(D$3)<4) in place of
YEAR(DATE(YEAR(D$3),MONTH(D$3)-3,1))
would shorten the formula somewhat and perhaps make it slightly easier to read.

Regards

Roger Govier


Martin_London wrote:
Thanks JE

My formula now reads

=IF(AND(D$3=SPVs!$F$12,YEAR(DATE(YEAR(D$3),MONTH( D$3)-3,1))=YEAR(DATE(YEAR(-SPVs!$F$12),MONTH(-SPVs!$F$12)-3,1))),$O82/(15-MONTH(SPVs!$F$12)),IF(AND(D$3=SPVs!$F$12,YEAR(DAT E(YEAR(D$3),MONTH(D$3)-3,1))=YEAR(DATE(YEAR(-SPVs!$F$12),MONTH(-SPVs!$F$12)-3,1))),$O82/12,0))

with D$3 and SPVs!$F$12 being two dates but I am getting a #NUM! error.

Any ideas?
Martin

"JE McGimpsey" wrote:


one way:

instead of

=YEAR(A1)

use

=YEAR(DATE(YEAR(A1),MONTH(A1)-3,1))

In article ,
"Martin_London" wrote:


In the UK our financial year runs April to March. Is there any way of using
the =year() function on a date so that it runs on these dates rather than
calender years? Basically I need Jan, Feb and March of next year to be
recognised as the same year as April to December of this year.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default year function and financial years

Look under toolsoptionstransition if you have transition formula
evaluation checked, of so uncheck it, only other option would be a date
earlier than Apr 1900 or an empty cell


--

Regards,

Peo Sjoblom


"Martin_London" wrote in message
...
Thanks JE

My formula now reads


=IF(AND(D$3=SPVs!$F$12,YEAR(DATE(YEAR(D$3),MONTH( D$3)-3,1))=YEAR(DATE(YEAR
(-SPVs!$F$12),MONTH(-SPVs!$F$12)-3,1))),$O82/(15-MONTH(SPVs!$F$12)),IF(AND(D
$3=SPVs!$F$12,YEAR(DATE(YEAR(D$3),MONTH(D$3)-3,1))=YEAR(DATE(YEAR(-SPVs!$F
$12),MONTH(-SPVs!$F$12)-3,1))),$O82/12,0))

with D$3 and SPVs!$F$12 being two dates but I am getting a #NUM! error.

Any ideas?
Martin

"JE McGimpsey" wrote:

one way:

instead of

=YEAR(A1)

use

=YEAR(DATE(YEAR(A1),MONTH(A1)-3,1))

In article ,
"Martin_London" wrote:

In the UK our financial year runs April to March. Is there any way of

using
the =year() function on a date so that it runs on these dates rather

than
calender years? Basically I need Jan, Feb and March of next year to be
recognised as the same year as April to December of this year.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Financial Functions Hague2 Excel Worksheet Functions 6 November 18th 05 12:53 AM
Is there a function for a 'year to date' sum Mal Excel Worksheet Functions 3 July 20th 05 08:46 PM
Question about financial calculation PMT Peter Aitken Excel Worksheet Functions 3 April 7th 05 01:18 PM
Excel financial function: PMT Gethyn Excel Worksheet Functions 1 March 23rd 05 11:10 AM
#VALUE in cell but pop up function box show right number Ted Dalton Excel Discussion (Misc queries) 1 December 14th 04 03:15 PM


All times are GMT +1. The time now is 11:20 PM.

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

About Us

"It's about Microsoft Excel"