Identifying fiscal year by date input

YJGUY

New Member
Joined
Jul 8, 2005
Messages
3
Here is my issue:

- I have two date fields "to" and "from". I want the formula to recognize the fiscal year in the fields and have a specific output. Example

from = 1990-05-03 to= 1991-02-29

output = $319

I'm not counting the number of days, just the fiscal year. Different fiscal years will have different outputs. For 1991-1992 the output will be $732

The to - from dates entered will always be in the same fiscal year so the formula will not have to try and split years.

I guess it would be an IF statement to read if date is more than 1990-03-31 AND less than 1991-04-01 output = $301 and I would do one for every year up to 2005.

Any insight would be great! I am using excel V10 (2002) if it matters.

Thanks,
Aaron
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,053
Office Version
  1. 365
Assuming your FY goes from 4/1 to 3/31, try:

Code:
=LOOKUP(IF(MONTH(A2)<4,YEAR(A2),YEAR(A2)+1),{1991,319;1992,732})

Where A2 stores an Excel date. Adjust the numbers in the vlookup range (between the { }'s) to account for other years if necessary (format {year, value; next year, value; etc.} where each year is the ending year of the FY (etc. 1991-1992's "year" here would be 1992))
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
....or you could simplify Oaktree's suggestion to..

=LOOKUP(YEAR(A2)+(MONTH(A2)>3),{1991,319;1992,732})

:)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,019
Messages
5,834,984
Members
430,331
Latest member
Syed Yasir Hannan

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
Top