IIF Statement for Fiscal Year Isn't returning desired value

PWil84

New Member
Joined
May 20, 2021
Messages
41
Office Version
  1. 2019
Hello All,

I recently wrote the following Statement in Access: FY: IIf(Year([Date])<6,Year([Date])+1,Year([Date])) Right now it's returning the correct fiscal years for all of the dates that are less than 6. However, the fiscal years for the dates greater than 6 aren't changing. What would I need to add to that statement to fix the problem?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
The problem isn't clear but some data and expected results from that data might help. You are not modifying the value of the reference if greater than 6 so you shouldn't expect any change? At least not from that expression.
FWIW, Date is a reserved word and should not be used for any object name.
 
Upvote 0
@PWil84
I don't understand your requirement. Please rephrase your post and provide some examples to show your expected results.
 
Upvote 0

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,013
Latest member
Shubashish_Nandy

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