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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,215,079
Messages
6,123,009
Members
449,093
Latest member
ikke

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