Formula for TaxYear from Date

haider378

Board Regular
Joined
Nov 7, 2009
Messages
97
Salam To All,

I need a formula to show tax_Year from date column, my assumption is that Taxyear start from July and end on June of every year i,e

Date Tax_Year
1-Jul-2016 2016-17
1-Aug-2016 2016-17
30-Dec-2016 2016-17
30-June-2017 2016-17
30-Jul-2017 2017-18
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Salam and welcome haider378 :)
data from a1 to a5 is

01-Jul-16
01-Aug-16
30-Dec-16
30-Jun-17
30-Jul-17

in b1 use this formula n drag down till b5
Code:
=IF(MONTH(A1)>=7,YEAR(A1)&"-"&RIGHT(YEAR(A1)+1,2),YEAR(A1)-1&"-"&RIGHT(YEAR(A1),2))
 
Upvote 0
Salam and welcome haider378 :)
data from a1 to a5 is

01-Jul-16
01-Aug-16
30-Dec-16
30-Jun-17
30-Jul-17

in b1 use this formula n drag down till b5
Code:
=IF(MONTH(A1)>=7,YEAR(A1)&"-"&RIGHT(YEAR(A1)+1,2),YEAR(A1)-1&"-"&RIGHT(YEAR(A1),2))


Thanks for your reply, It works
I tried this one also

=IF(MONTH(A2)>=7,YEAR(A2)&"-"&YEAR(A2)+1,YEAR(A2)-1&"-"&YEAR(A2))
 
Upvote 0
@haider378, did the formula StephenCrump posted in post number 2 not work for you (obviously changing A1 to A2 as it looks like you have headers)?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top