Context: I'm entering prior year data into Excel.
Every time I type in the date in the date column ("9/16" for September 16th), Excel automatically formats it to "9/16/12", where 12 is 2012, the current year.
I'm entering data from last year in the current year 2012. I don't want to type the "11" for 2011. I want Excel to automatically populate it as it does with 2012, and as it did on December 31st.
The simplest fix is to set the clock in Windows back to any time in 2011, but that tends to muck with the network which wants to set me back and complains about my network password being out of date, etc.
I prefer the date to reside in a single column, so tabbing to alternate columns for day/month/year is not an option for me.
One would think this is a simple fix, but a couple hours searching and my Google-fu is failing me.
Create a new cell with the below formula
=DATE(YEAR(B2)-1,MONTH(B2),DAY(B2))
and the copy just the value in the original cell (B2
)
mm/dd/"2018"
It works like a charm without having to use code.
Simple fix is You just enter date and month and let the system enter the default date. After that replace (Ctrl+H) 2012 with 2011.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With