estephenkim
New Member
- Joined
- Feb 6, 2016
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
I'm trying to convert a historical date to the same date in U.S. Government fiscal year 2022 and could use some help with the formula. For illustration, I've provided below a sample historical date which I want to convert to the same date in FY22.
Formula =DATE(YEAR(IF(MONTH([Historical date])>=10,2021,2022)),MONTH([Historical date]),DAY([Historical date]))
I've tried the above formula, but I'm noticing that Excel is reading my IF THEN ELSE formula options of 2021 and 2022 as serial numbers, and thus returning 07/23/05. I'm drawing a blank as to how to properly construct the formula and would appreciate some suggestions. I'm also open to using a different formula, so if you have a clean, efficient way to structure this, then I would welcome your ideas.
Thanks,
Stephen
- Sample historical date: 07/23/01
- Fiscal year 2022 date: 07/23/22
Formula =DATE(YEAR(IF(MONTH([Historical date])>=10,2021,2022)),MONTH([Historical date]),DAY([Historical date]))
I've tried the above formula, but I'm noticing that Excel is reading my IF THEN ELSE formula options of 2021 and 2022 as serial numbers, and thus returning 07/23/05. I'm drawing a blank as to how to properly construct the formula and would appreciate some suggestions. I'm also open to using a different formula, so if you have a clean, efficient way to structure this, then I would welcome your ideas.
Thanks,
Stephen