Jan 18 2021 10:57 AM
I'm trying to calculate the shelf life remaining on an item using the manufactured date & the expiration date. Using the DatedIf function I am attempting to formulate the following: =datedif(mfg_date,expir_date,"m")- this is per every forum I've found. Now when I start to enter the formula, I only get as far as =datedif(mfg_date, before I get an error message. Once I put that comma & click the second cell, the error message occurs. The two date cells are utilizing short date formating so I know that's not the issue here.
Any help would be appreciated! Screenshots are attached
Jan 18 2021 11:20 AM
Perhaps you shall use semicolon instead of comma as delimiter, depends on your locale.
Jan 18 2021 11:21 AM
Here's another screen shot that shows the formula works.
So I'm wondering if one or both of those dates just appear to dates properly formatted, but are actually text
Jan 18 2021 11:28 AM
I'm in the U.S but I did try that- didn't work! @SergeiBaklan
Jan 18 2021 11:29 AM
Jan 18 2021 11:37 AM
Can you then, since none of our suggestions have helped yet, post a copy of the actual spreadsheet?
Jan 18 2021 12:27 PM
Jan 18 2021 12:47 PM
If you open the file attached to my post do you have any errors?
Jul 02 2021 03:28 AM
@cdersarkisian I’m on my iPad and it reads the formula fine however I think it’s the “y” that is not working or any of its variants however I have no grounds backing that theory whatsoever so I really need someone’s help please, I really need this function to work for me lol
Jul 02 2021 04:30 AM
Jul 02 2021 12:10 PM
@JHarFood , is it differ from =YEARFRAC(E2,TODAY(),1) ?
Oct 26 2022 06:15 AM - edited Oct 26 2022 06:28 AM
=([end_date]-[start_date])/365.25 (or 30.4375, etc.)
works well enough for most purposes