stephenlecomptejr
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!
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!
Rob, did you mean:
=YEAR(TODAY())-1
»bp
=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.
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.
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???
but not 2019
can ya'll put that in CODE BRACKETS???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much!
Sometimes paste into Notepad first
Welcome.
»bp
»bp
Happy to help
=YEAR(TODAY())-1
EDITED for placement of brackets.