The calculation is simply like =A1-A2 and uf that throws a big number can mean that one if the date is a text.
If you need further help please upload a sample file on your OneDrive and post the download link here.
Andreas.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to get the difference in days between two dates. Both are in the MM/DD/YYYY format and are stored as short dates in excel. I Should be getting values around the 20 - 40 range on average, but instead am getting values around 48000. Any idea why I would be getting such an inflated value? I have tried both subtraction and the datedif function, which do return the same inflated values.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
The calculation is simply like =A1-A2 and uf that throws a big number can mean that one if the date is a text.
If you need further help please upload a sample file on your OneDrive and post the download link here.
Andreas.
Hi Tgrove23,
My name is Raffaele. I am a fellow Microsoft customer and expert user here to help.
If the cells are dates you can simply subtract them, make sure the cell that will contain the result is set to General or number.
If the dates are text you can use DATEVALUE that converts text dates to num format.
ie. =DATEVALUE(A2)-DATEVALUE(A1)
Hope the information provided is useful. If the issue persists or have any other questions, reply here and we will be glad to help you.
Thank you for posting in Microsoft Community.
Kind regards,
Raffaele