Formula for YYYY minus 1 year

VBAProIWish

Well-known Member
Joined
Jul 6, 2009
Messages
1,027
Office Version
  1. 365
Platform
  1. Windows
Hello All,

In cell A2, I have "=B2"
B2 always shows a full date (ex. 12/02/20)
A2 currently shows the same year (formatted as "yyyy") as B2
But...I want A2 to = B2 minus 1 year

For example...

If B2 = 2020, I want A2 to = 2019

I tried "=B2-1", but it didn't work

I sure this is something totally easy and appreciate any help.

Thanks much!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This is probably the formula you need in A2:
=DATE(YEAR(B2)-1,MONTH(B2),DAY(B2))
 
Upvote 0
If you just want the year you can use
Excel Formula:
=YEAR(B2)-1
or if you want the actual date
Excel Formula:
=EDATE(B2,-12)
 
Upvote 0
Solution
Fluff,
The second one worked formula worked!

Thank you both!
 
Upvote 0
Glad we could help & thanks fro the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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