A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Second, can you briefly go into the logic of this.
The dates in Excel are actually numbers with the starting date being 01-Jan-1900 which is 1..
So 365 is 30-Dec-1900.
If you add a 0 via a formula to a text like say 30/6 , excel will convert to a date serial number (44742) assuming the year to be the current year (which is 2022).
since you wanted 2021, we subtracted 365 (30-Dec-1900) from the date text.
I put 30-Dec-1900 instead of 365 so that we can skip the step of converting it to date format.
you can try putting 365, convert it to date format (press ctrl + shift + #) or or select a format of your choice using Format cells
and then do the paste special > subtract
can you advise to do the very same thing but add 2022 to the date; I tried to use January 1, 1900, and that adds 2022 to the date but subtracts the date
going by the logic as explained above, for 2022
enter a 0 in some cell (since 2022 is the current year),
format it as date (press ctrl + shift + #) - it will show 00-Jan-1900 copy the cell , paste special > add on your data