Extract financial Year Number

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,570
Office Version
  1. 2021
Platform
  1. Windows
My financial year starts in Oct (Period 1) and ends in Sept (Period 12)


I have the month and year in A2. The current financial month in A2 is June 2017 (I use dd/mm/yyyy date formatting)


I tried to use

Code:
 =CHOOSE(MONTH(A2),10,11,12,1,2,3,4,5,6,7,8,9)


However it returns 3 and should return 9


It would be appreciated if someone could kindly assist me
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Thanks, Formula works perfectly

Explain how this function works. Never used it before
 
Upvote 0
MOD "returns the remainder after number is divided by divisor. The result has the same sign as divisor."

So, for June 2017 in cell A2:
MONTH(A2) equals to 6
6-10 equals to -4
MOD(-4,12) equals to 8
8+1 equals to 9
 
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,892
Members
449,411
Latest member
AppellatePerson

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