Dates / If

mbk0523

New Member
Joined
Aug 29, 2012
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to create a dynamic formula to determine a starting date based on 1) today's date, and 2) a certain timespan.

When my dropdown says CYTD (calendar year to date), it's easy. IF(TimePeriod = "CYTD",DATE(YEAR(TODAY),1,1),....

But when my dropdown says FYTD (fiscal year to date), I'm having trouble. I need to build it where:
If today = Nov 1 2019 - Oct 31 2020, the output should be November 1 2019.
If today = Nov 1 2020 - Oct 31 2021, the output should be November 1 2020
And so forth...

Thanks!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
One way
Excel Formula:
DATE(YEAR(TODAY())-(MONTH(TODAY())<11),11,1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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