Forum Discussion
Norma1890
Feb 18, 2024Copper Contributor
Format and calculating days between dates
I am trying to create a list of dates and calculate the days between the dates. I have tried to enter the date January 1, 2012 by entering 1/1/12 and it returns 1/1/2012. When I enter the next date...
SnowMan55
Feb 19, 2024Bronze Contributor
For Excel's DAYS function, the first parameter is the end date, and the second parameter is the start date. (Poor design on their part, IMO.) You probably have the two reversed.
As for the date showing 31/3/12, you may have inconsistent date formatting. Select that cell and press Ctrl + 1 (or click Format on the menu bar and then Font) to get the Format Cells dialog. On the Number tab, you will probably see a Custom format of d/m/yy. If you wish to change that, click on "Date" under Category and then select whatever entry under Type produces the displayed value that you want. Click OK.
You can do the same for any other cells for which you want that date format, e.g., by selecting them all at once and following those same steps.