flashgordie
Board Regular
- Joined
- Jan 9, 2008
- Messages
- 95
- Office Version
- 365
- Platform
- Windows
Hello, I am hoping this is example is enough to illustrate my point. I've made many attempts to put this into words and this is about as good as I have been able to get. Apologies. Any better description would be welcome as well.
I have a table that contains many transaction dates spanning years. Instead of comparing the transactions by years, quarters or months, I’m looking to establish a range (a starting month and day, to an ending month and day) and use this range to see what year each of the transactions would fall and return that appropriate year. Would prefer formula as opposed to vba.
Example.
Date A= Sept 1-2022
Date B =April 30-2023
Transaction date and what I hope to the formula would return...
Sept 10-2020 returns 2021
Jan 20-2021 returns 2021
Aug 30-2021 returns not in range
Sept 10-2021 returns 2022
Jan 20-2022 returns 2022
Aug 30-2022 returns not in range
Sept 10-2022 returns 2023
Jan 20-2023 returns 2023
Aug 30-2023 returns not in range
Sept 10-2023 returns 2024
Jan 20-2024 returns 2024
Aug 30-2023 returns not in range
Any and all help would be appreciated. Thank you!!!
I have a table that contains many transaction dates spanning years. Instead of comparing the transactions by years, quarters or months, I’m looking to establish a range (a starting month and day, to an ending month and day) and use this range to see what year each of the transactions would fall and return that appropriate year. Would prefer formula as opposed to vba.
Example.
Date A= Sept 1-2022
Date B =April 30-2023
Transaction date and what I hope to the formula would return...
Sept 10-2020 returns 2021
Jan 20-2021 returns 2021
Aug 30-2021 returns not in range
Sept 10-2021 returns 2022
Jan 20-2022 returns 2022
Aug 30-2022 returns not in range
Sept 10-2022 returns 2023
Jan 20-2023 returns 2023
Aug 30-2023 returns not in range
Sept 10-2023 returns 2024
Jan 20-2024 returns 2024
Aug 30-2023 returns not in range
Any and all help would be appreciated. Thank you!!!