ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Complete Tax Years (https://www.excelbanter.com/excel-worksheet-functions/249986-complete-tax-years.html)

dan

Complete Tax Years
 
I need to calculate the number of complete UK tax years between two dates e.g.

From: 01/08/1994
To: 01/03/1998
= 2 complete tax years.

This is derived from:
01/08/1994 to 05/04/1995 - Not a complete year therefore ignored
06/04/1995 to 05/04/1996 - Complete tax year therefore counted
06/04/1996 to 05/04/1997 - Complete tax year therefore counted
06/04/1997 to 01/03/2008 - Not a complete year therefore ignored

A tax year runs from 06 April to 05 April the following year.

This is a pretty long-winded explanation of the calc but hopefully it gets
the concept across. Any support would be greatly appreciated.

Regards
Dan


Bernie Deitrick

Complete Tax Years
 
Dan,

I think this will work - or the first date in A2, and the later date in A3:

=YEAR(DATE(YEAR(A3)-(A3<DATE(YEAR(A3),4,5)),4,5))-YEAR(DATE(YEAR(A2)+(A2DATE(YEAR(A2),4,6)),4,5))

HTH,
Bernie
MS Excel MVP


"Dan" wrote in message
...
I need to calculate the number of complete UK tax years between two dates e.g.

From: 01/08/1994
To: 01/03/1998
= 2 complete tax years.

This is derived from:
01/08/1994 to 05/04/1995 - Not a complete year therefore ignored
06/04/1995 to 05/04/1996 - Complete tax year therefore counted
06/04/1996 to 05/04/1997 - Complete tax year therefore counted
06/04/1997 to 01/03/2008 - Not a complete year therefore ignored

A tax year runs from 06 April to 05 April the following year.

This is a pretty long-winded explanation of the calc but hopefully it gets
the concept across. Any support would be greatly appreciated.

Regards
Dan





All times are GMT +1. The time now is 06:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com