Formula to reduce just date by a year if month is jan feb or march

Krang

New Member
Joined
Sep 27, 2021
Messages
6
Office Version
  1. 2013
Platform
  1. Web
Hi all, Is there a formula please to deduct one year from a date if the month is january february or march. So if date is in format 30/03/2021 i wanted 2021 to show 2020, so just 1 year reduced from the year if the month is jan,feb or march.i didnt need the day or month to be reduced by a year, just the year itself then the day and date stay same. Thank you
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Welcome to the Board!

Try this formula, for a date in cell A1:
Excel Formula:
=IF(MONTH(A1)<4,EDATE(A1,-12),A1)
 
Upvote 0
MrExcelPlayground4.xlsx
CD
123/12/20213/12/2020
Sheet5
Cell Formulas
RangeFormula
D12D12=IF(MONTH(C12)<4,DATE(YEAR(C12)-1,MONTH(C12),DAY(C12)),C12)
 
Upvote 0
Welcome to the Board!

Try this formula, for a date in cell A1:
Excel Formula:
=IF(MONTH(A1)<4,EDATE(A1,-12),A1)
Thank you thats really helpful and much appreciated
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0
You are welcome.
Glad we were able to help!
Thank you, i had another question please. Having reduced the year by one year as above if jan, feb or march are the months how could i only display the amended year and not the day or month please? So if date entered dd//mm//yy format the formula would as above reduce the year by one year if jan,feb or march month but would output just the year (either as minus a year or just the year as displayed as is if month is april- dec) thanks again for your help
 
Upvote 0
Thank you, i had another question please. Having reduced the year by one year as above if jan, feb or march are the months how could i only display the amended year and not the day or month please? So if date entered dd//mm//yy format the formula would as above reduce the year by one year if jan,feb or march month but would output just the year (either as minus a year or just the year as displayed as is if month is april- dec) thanks again for your help
Sorry i mean if date entered dd/mm/yyyy i wanted to only show the year in format yyyy with the year reduced by a year if jan feb or march months or just the year in format yyyy without a years reduction if months are april - dec. Thank you
 
Upvote 0
You can custom format the result yyyy or for a Text result use Text.

T202109a.xlsm
ABCD
130-Mar-21202020202020
21-Jan-21202020202020
3
6c
Cell Formulas
RangeFormula
B1:B2B1=IF(MONTH(A1)<4,EDATE(A1,-12),A1)
C1:C2C1=IF(MONTH(A1)<4,DATE(YEAR(A1)-1,MONTH(A1),DAY(A1)),A1)
D1:D2D1=TEXT(IF(MONTH(A1)<4,EDATE(A1,-12),A1),"YYYY")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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