Link to home
Start Free TrialLog in
Avatar of stephenlecomptejr
stephenlecomptejrFlag for United States of America

asked on

Need proper Excel formula to display previous current year.

Need proper Excel formula to display previous current year.  As an example - this current year is 2020 - I need it to show 2019.
I keep trying various =TODAY( syntaxes but they all fail.)

And the searches take me on a long journey I have no time to drive!
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Try:

=YEAR(TODAY())-1

EDITED for placement of brackets.
Avatar of Bill Prew
Bill Prew

Rob, did you mean:

=YEAR(TODAY())-1


»bp
@Bill, - yes and edited; comments passed each other in the ether.
@stephen - in case you need it explaining:

TODAY() gives today's date (as per system of PC)
YEAR(Date)  will extract the year element of the given date, in this case TODAY()
YEAR(Date)-1 will subtract 1 from year result.
Avatar of stephenlecomptejr

ASKER

When I copy and paste the above, it just displays =YEAR(TODAY())-1
but not 2019

can ya'll put that in  CODE BRACKETS???
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much!
Sometimes paste into Notepad first
Welcome.


»bp
Happy to help