Excel datedif not found. For reasons unknown, it is only documented in Excel 2000, but you can use it in your formulas in all Excel versions since that time. Excel datedif not found

 
 For reasons unknown, it is only documented in Excel 2000, but you can use it in your formulas in all Excel versions since that timeExcel datedif not found  Since 12/31/2019 is after that, it makes sense for DATEDIF to return less than 2, namely 1

I am using the DATEDIF() and TODAY functions, using Excel 2007, but there are too many days displayed. . Uses a 365 day basis. When we use "m" in the unit. However, if an additional option Y is provided, like in this example, DATEDIF returns the number of years. The <>”” means if a cell isn’t blank and =“” means the cell is blank based on what I found online. คือว่าผมจะคำนวนหาอายุในExcel แต่ไม่มีฟังชั่น datedif จะใช้ฟังชั่นไหนได้บ้าง. The problem is not with your version of Excel; the DATEDIF function is an undocumented function. Example 1: Common Uses. This returns the number of years rounded down. Apply DATEDIF & TODAY Functions to Count Age in Excel. Here, Datedif if the function. The DATEDIF formula contains a cell reference for the birth date and for the current date. First, "with great details comes great answers". Warning: Excel provides the DATEDIF function in order to support older workbooks from Lotus 1-2-3. How to write a DATEDIF. The DATEDIF (Date + Dif) function is a "compatibility" function that comes from Lotus 1-2-3. Next, refer to cell B1 where you have the ending date. Excel won't even autocomplete the. See attached example. ProgrammingError: ERROR: column "day" does not exist. XLOOKUP function (microsoft. First put a start date in a cell, and an end date in another. Below show formula works properly with version 2010 and higher. You can simply type =DATEDIF ( in a cell to use it. Firstly, we will create a new column to input the results. You can use the following formula to calculate the number of years and months between two dates in Excel: =DATEDIF (A2, B2,"y")&" years "&DATEDIF (A2, B2,"ym")&" months". To calculate the number of days, months or years between two dates in Excel, use the DATEDIF function. learner_254. It should be there, it just doesn't appear in the function list, as it was deprecated long ago. 2 people found this reply helpful. Viewed 131 times 0 I'm trying to. 3 people found this reply helpful. So if you want to find out how many days, years or months have passed since you were born, well this is the formula for you! Well you can also extend this to project start and end dates, but you get my point. While typing this function in a cell in Excel, it would NOT show the IntelliSense. Consider the below example where we have the current date and date of birth. DATEDIF is the one hidden feature in Excel, but there isn't really a replacement. To test this out, select the cell and set its format to General. Syntax: =DATEDIF (start_date, end_date, unit) Start_date : First date in a valid excel format. How the formula works. Type ,TODAY (),”Y”) & ” Years and ” & DATEDIF (. To use the DATEDIF function for calculating months, select the cell where you want to display the result, enter the formula =DATEDIF(start_date, end_date, "m"), and press Enter. Your second formula should be: =DATEDIF (A3,A2,"d") The later or higher date should come second in DATEDIF & the formula will return 153. For example, given a start date of 1-Jan-2018 and end date of 1-Jul-2018, the result should be a string like this: "1 years, 6 months, 0 days" DATEDIF. To test this out, select the cell and set its format to General. png In B6 I have used the formula =DATEDIF(B3,B4,"d") In B7 I have used the formula =SUM(B6*C2) At the moment, what you see in the screenshot is how it should function. Step 1: In this example, we will use the following data to find the no. Here's what I could get to work: IF (DATEDIF (DATE-1,DATE-2,"COUNTS DAYS BETWEEN DATES SELECTED")="DAYS IN A WEEK","VALUE IF. Anyways, let’s see how this formula work. Esc to stopHere's a list of steps on how to subtract two dates in Excel to find the difference in months: Type your start and end dates into separate cells. อาการแปลกๆ อันอื่น. I'm using the DATEDIF function to calculate the number of months left on a contract from a start date of 30/11/22 - you can see in the far column that Excel returns two months for contracts that en don 31 Jan and 28 Feb? The third column is also using DATEDIF and recognises the extra month (though I have. You can find information at Chip Pearson's web site for the DateDif Function – Ron Rosenfeld. Note. e. 5/31/2015 - 6/30/2015, I entered DATEDIF(C5,B1,"m") the result I get is zero when it should be 1. There is one older way, the DATEDIF () function, that Microsoft no longer supports. Search for the Function you want to use, and select go. Datedif #num help. F2 format General. INclude start and end date. This function does not appear in the 'Insert Function' dialog box and is not recognised in the 'Function Arguments. You must take in consideration if you want to return a result based on the gap of the months or based of the years, or both. Stack Overflow. Step 3: Then, we need topress the “Enter” key, and we will find the difference in days between the two dates. Neither Excel XP or Excel 2013 are aware of it, so it's pretty strange that it. All three parts worked flawlessly with either the literal or the reference to the cell in the same row of column C (which contained the date). Below is the formula that will do this: =DATEDIF (B2,C2,"y")&" Years "&DATEDIF (B2,C2,"ym")&". By te way, DATEDIF is not needed for this kind of calculation. The reason for this is Excel calculates dates as the number of elapsed (or partial) days since January 1, 1900. Report abuse. SyntaxThe mysterious datedif function in Microsoft Excel. It’ll not even show the. Enter the function using the TODAY function dialog box. Can't find any reference to the DATEDIF () function. DATEDIF function is not found in the standard function library of Excel because of some erroneous results it might show in certain circumstances which will be discussed later in the article. It's fallen off current Excel menus, but you can still use it. Click the cell containing the date of birth. This formula works for the days remaining after full months are counted except when the end date month has 30 days and the billed. Need to know the number of years, months, or days between two dates? Excel's DATEDIF function will calculate it for you. Then the 1 represents the first day of that month. 5 for example. Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. ) and some manually calculated results. Jan 30, 2016 at 2:05 @RonRosenfeld: Interesting. Therefore, dates entered in this format are not recognized as dates and result in erroneous calculations. I am currently using the latest build of Excel as part of my Office 365 subscription. You need to know the arguments and how to use it. DATEDIF function (microsoft. Software is Excel Online for Office 365. XLOOKUP function (microsoft. See full list on support. Consider the below example where we have the current date and date of birth. Trying to retrieve the number of months between the two dates below. Re: DATEDIF not working. 01. A difference in complete months, Ignoring days and years. Menghitung jumlah hari, bulan, atau tahun di antara dua tanggal. 14. Add one to the end date (second) parameter. Warning: Excel provides the DATEDIF function in order to support older workbooks from Lotus 1-2-3. I've recently found that DateDiff("d", "1/7/1900", "1/8/1900") returns 0 instead of the expected 1. CHOOSE function. Not much to be done about that, except devise workarounds that will satisfy your desired algorithms. In the Date & Time Helper dialog box, do the following operations:. I searched Excel help and function reference, and MS knowledgebase. Firstly, we have DATEDIF for returning the number of years between the two dates, and then the & operator joins the text "Y" to DATEDIF's result. This is a great function if you work. 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. --HTH RP (remove nothere from the email address if mailing direct) "UOF" <[email protected]> wrote in message news:[email protected]. DATEDIF (Available in Excel 2007 and subsequent versions) The purpose of the DATEDIF is to calculate the difference in days, months, or years between two dates. Instead of posting in the abtract, provide actual dates. INTL (A3,B3,1))) by giving it a name (very similar to naming a range or a cell) and then using. I have the following formula in a report field. Press Enter key then drag fill handle down to the cells for applying this formula. Whenever I type a function into Microsoft Excel 2013, a small hint box is displayed which lists the function's arguments. On the other hand, =EDATE (DATE (2019,12,31), 2) is indeed 2/29/2020. In this video, I will teach you How To Calculate Age In Excel From A Date Of Birth using a datedif alternative which is normally not available in all Excel v. 25 gives you the result as shown below. Description. Description. But if you know the syntax, which I’ll share with you in a moment, you can use it for a range of applications. Excel has an incredible function to realize all the different calculation between 2 dates. Although my friend SirJB7 will (rightly) point out that ti does has some flaws when doing certain calculations. . It pretends like it's not there. Just enter =D1 - C1-----PS. The syntax is: =DATEDIF (start date, end date, mode) Start date and end date are simple and self-explanatory enough – they are the cells or date values that mark the beginning and end of the period we are examining. But it is still present. . After that, refer to cell A1, where you have the start date. End_date - TODAY () function to return the today's date. It does not work properly in all cases and they are not going to fix it. Contoh Rumus DATEDIF Excel. Pada contoh pertama rumus excel DATEDIF yang digunakan adalah: = DATEDIF ( B3; C3; "Y") Kode "Y" pada rumus datedif tersebut digunakan untuk menghitung jumlah tahun yang sudah genap dilalui diantara tanggal 01 Januari 2019 dan 13 Maret 2023. I'm in the U. Report abuse. e. Depending on what you need it for, and how dynamic you want it to be, you can use references to another cell that contains the original date, and references to cells that contain the changes to be made. mrdelurk wrote: =DATEDIF (A4,NOW (),"D") (actual example from row 4) The formula calculates the age of a row's entry in days by substracting the date in the first cell (A4) from the current date. - this is per every forum I've found. You shall type it on your own, Excel shows nothing while you are entering function. Rory Archibald. DATEDIF function (microsoft. However, it works in all versions of Excel. Then type a formula like one of the following. It's not an official Excel function and exists only for compatibility reasons with older spreadsheet programs (like Lotus-1-2-3). How to write a DATEDIF. =DATEDIF(A2, A5, "y") - returns the number of complete years between the dates in A2 and B2. I have the. Each argument is provided as a number, and the result is a serial number that represents a valid Excel date. DATEDIF calculates the number of years, months, and days between the two dates, yielding your age. Then I copied the formula (and its format) down the column. Select the cell where you want to type your formula, and add the following: =DATEDIF (“01/01/2018”,”24/05/18. Excel DATEDIF not showing the correct answer. In addition, there is no tooltip for DATEDIF (). The Datedif function is used to calculate interval between two dates in days, months or years. -Cell E1 will. You can paste formatting multiple times. For example, =DATEDIF (Date1,Date2,"md") returns 28 for Date1 = 1-Feb-2007 and Date2 = 1-March-2009. I found a solution =((DAYS(TODAY(),E2))/365. The DATEDIF function has three arguments. Please remember that array formulas should be completed by pressing the Ctrl + Shift + Enter shortcut. . = (B1-B2)/365. โครงสร้างของฟังก์ชั่นคือ. In the end, hit enter to get the result. Since Date1 is not a leap year, the date 29-Feb is not counted. I. After that, refer to cell A1, where you have the start date. However, there is an easy workaround. Dates and times are stored together (dates are day counts, stored as the integer portion of the value; times are fraction of a day, stored with the day count as a decimal fraction). For complete instructions, to c alculate age in accumulated years, months, and days, and to. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands. =DATEDIF(A1,B1,"y") see here for more Calculate the difference between two dates. Suppose you are using a DATEDIF formula to find the difference between the dates in B3 and C3: =DATEDIF(B3, C3, "d"). But I wonder why you want to use that function at all. The problem is that the calculation of days not always is accurate, or at least I don't think. The ISBLANK function in Excel checks whether a cell is blank or not. (2) Dynamic date difference between two cells, where one is static, and one has dynamic value TODAY (). The DATEDIF function returns the number of years, months or days between two dates and is officially "unsupported". 4. Top Contributors in Excel: HansV MVP - Jim_ Gordon - Ashish Mathur - Andreas Killer - Shane Devenshire 👏 Choose where you want to search below Search Search the Communitymrdelurk wrote: =DATEDIF (A4,NOW (),"D") (actual example from row 4) The formula calculates the age of a row's entry in days by substracting the date in the first cell (A4) from the current date. In a new cell, write a formula like this: =C2-B2. com) is practically in any version of Excel, but it is not shown in list of functions (see comment in above support post). If the earlier date is in A1 and the later date in B1 you can just use: =B1-A1 and format the cell as a number, in stead of =DATEDIF(A1. Warning: If the. Yes, you can use the DATEDIF function to calculate a person’s age. HOW TO ATTACH YOUR SAMPLE WORKBOOK: Unregistered, Fast answers need clear examples. Subtract times. Even now. datedif excel 2010 I can not find "datedif" under excel 2010 . DATEDIF will not give any functional tip or hint and neither it will come as part of Insert Function. . Formula for this unit is =DATEDIF (start_date, end_date,”ym”) So the given example shows the answer 6, as the difference between month # 7 and month # 1. com) is practically in any version of Excel, but it is not shown in list of functions (see comment in above support post). In Excel worksheet, if you want to calculate the number of years, months, days or weeks between two given dates, the DATEDIF function in Excel may help you. g. If the syntax and dates are correct, try restarting Excel or your computer. Use the DATEDIF function when you want to calculate the difference between two dates. Step 2: Now select a cell where you want to calculate the age. Format for months is: =DATEDIF (A3,A2,"m") Also, a side note, the VB function DateDiff is also still valid, uses a lot of the same lettering, and is a little more robust. Show dates as days of the week. Having trouble with the =DATEDIF function in Excel 2016. khalkhall. This video is going to show you how to use Datedif function in Microsoft Excel 2007 and calculate the difference of Years, Months and dates between two dates. Report abuse. The DATEDIF Function can be used to calculate the date difference in various units of measurement, including days, weeks, months, and years. The result will be displayed in the selected cell. "Y" is the reference to the year's parameter in. Devices for education. 4. The third argument must be a string: text enclosed in quotes, or a reference to a cell containing a string, or an expression that evaluates to a string. It creates it using the year in cell E17, and the month in cell E17. On the other hand, =EDATE (DATE (2019,12,31), 2) is indeed 2/29/2020. Dùng hàm datedif để tìm ngày. It's there, it's just not in the drop-down function list, and the ScreenTip (showing arg options) doesn't show. Using the DatedIf function I am. A mixed formula is a formula that relies on both array calculation and implicit intersection, this was not supported by pre-dynamic array. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. F6=DATEDIF (D6,E6,”m. Cell A2 is the Start date reference. If the difference is 2 days or greater I would like it to show "Yes". The functions that I am currently attempting to use are DATEDIF, SORT, UNIQUE and FILTER. But I wonder why you want to use that function at all. Cảnh báo: Excel cung cấp hàm DATEDIF để hỗ trợ sổ làm việc trước đây từ Lotus 1-2-3. surely, indeed I tried to use the Italian =DATA. =DATEDIF(C3, TODAY(), "m") If that does not give reasonable results, the problem might be the value of C3. Put in a start date, put in an end date, and then put in one of these codes, like, “y”. If a workbook is set for automatic recalculation, you do not need to press F9 for recalculation. )Here is a list of all Recalculate keyboard shortcuts: Shortcut. Re: calculate datedif if mutiples conditions within a range are met Hi @waglagla Trying to apply it to a full range in one formula gets tricky and may require an arrayNo problems with DATEDIF. 🙁. It's not an official Excel function and exists only for compatibility reasons with older spreadsheet programs (like Lotus-1-2-3). mm. ฟังก์ชันทุกฟังก์ชันใน Excel สามารถหยิบจับมาใช้งานได้ แต่ไม่ใช่กับ DATEDIF ซึ่งนอกจากเป็นฟังก์ชันแห่งความลับแล้ว ยังถือเป็นฟังก์ชันต้องห้าม! This will bring up the Insert Function Window. No DATEDIF () Function in the list. Using the DatedIf function I am. The DATEDIF function in Excel can be used to calculate the difference between two dates in years, months, days, or hours. อาการแปลกๆ ของ DATEDIF. 57650273. Re: Datedif_leap year. For many years I have used the following formula to calculate the difference between an entered date & the current date in Years, Months, Days. . Save to an htm file on your hard drive (any file name). This formula subtracts the first day of the ending month (5/1/2016) from the original end date in cell E17 (5/6/2016). Dates in Excel start from 01/00/1900 (Assuming you're using US format of mm/dd/yyyy) and are stored as 01/00/1900 + n days. There are a bunch of units that you can use in the DATEDIF () function. . This function is available in versions of Excel since at least version 5/95, but is documented in the help file only for Excel 2000. If you author or edit a formula in dynamic array Excel that contains the @ operator, it may appear as _xlfn. The DATEDIF function is available in any version of Excel, but it is not shown in the list of functions. end_date : Second date in a valid excel format. In Excel, we can calculate a person’s age if we know the person’s date of birth and the current date. Rory Archibald. You can still use it. Replied on April 28, 2022. It should work: Maybe, but you use 2020-12-31 as start date, not 2021-01-01 and for leap years the scaling must be dynamic to get the same 52. The DATEDIF formula contains a cell reference for the birth date and for the current date. Regarding DATEDIF not being accurate, do bear in mind the following warning from Microsoft regarding the DATEDIF function. Example: =IF(A5="","",(DATEDIF(A5,TODAY(),"d"))) It works fine, but if a future date is entered into A5, e. Then, for the second argument, we have to enter or select the number of days. May 01 2022 08:23 AM. Double-click the Format Painter (left side of Home tab). DATEDIF is practically an insider tip, as the function is not even included in the internal list in the software. There is no DATEIF function, I suspect that you want DATEDIF. Take a few minutes to practice with the TODAY function. It is not documented and does have some quirks. This function is available in all versions of Excel since at least version 5/95, but is documented in the help file only for Excel 2000. In cell D4, type =YEAR (C4)-YEAR (B4) and then press RETURN . DIFF but, because it does not work, I tried also DATEDIF, but there is nothing to do. In theory, that should "fix" it, and you should see the result of the formula. Last Post: 05-27-2018, 10:51 PM. For reasons unknown, it is only documented in Excel 2000, but you can use it in your formulas in all Excel versions since that time. Let's say that cell A1 contains someone's birthdate, and cell B1 contains the current date. You use the start date as the end date and vice versa while applying the formula. Education. Re: DatedIf Not Working @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 lolRe: DatedIf Not Working @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 lolWe would like to show you a description here but the site won’t allow us. Our videos are about below Microsoft Reporting Tools:Excel Basic. . The above is as suggested by Sergei Baklan in the thread below. Compute Age as Years, Months, and Days. Thus simply type in cell =DATEDIF (. Insert and format the current date and time. It should be there, it just doesn't appear in the function list, as it was deprecated long ago. First, type A1 type 01/12/1990 in cell A1. After installing Kutools for Excel, please do as this:. Use the DATEDIF function when you want to calculate the difference between two dates. While in Excel, if you click on the ‘fx’ button to the left of the formula ribbon and search for this function in the ‘Insert Function’ box, you will see that it is nowhere to be found. The DATEDIF function is available in any version of Excel, but it is not shown in the list of functions. 6-Step Guide for Calculating Date Duration: Open a new Excel document and create a table with two columns, “ Start Date ” and “ End Date “. Still using the DATEDIF function above and the units provided, we will be able to get the age in years, months, and days. 1. Now follow the instructions at the top of that screen. The simplest and most accurate formula to calculate age in Excel is =DATEDIF (birth_date,as_of_date,"y"). simply subtract the smaller date from the later date. Now, we will show you how you can count their age using the DATEDIF and TODAY functions in Excel. This is the formula I am using. Calculating Number of Complete Years. This should give you an answer of 19. Thus if you do G5-E4, as 05-Mar-2019 - 06. Excel DATEDIF function. Thus simply type in cell =DATEDIF(. . The expected answers are below. Top Contributors in Excel: HansV MVP - Jim_ Gordon - Ashish Mathur - Andreas Killer - Shane Devenshire 👏. . No DATEDIF () Function in the list. ? 1/5/1900 in date format = "5" in number format. And again, 12/31/2019 is after that. From this unit, we can identify the difference in months between a start date and an end date, irrespective of the days and years. Using the DatedIf function I am. [Sidenote: I am using the German Version, so I am actually missing the functions =EINDEUTIG () and =XVERWEIS () but either or - these functions are missing in my Excel] Nup, you need to upgrade to a new version or write your own logic in VBA. “d” gets the days between dates. Below I again have the same data set and I want to calculate the duration of service of each employee in years and months. Answer HansV MVP MVP Replied on January 20, 2016 Report abuse There is no DATEIF function, I suspect that you want DATEDIF. Microsoft in education. The code I'm using is: select datediff (day, '2014-01-01', '2014-02-01') I assume I'm missing something very simple (this is a hugely basic query I'm sure), but would be appreciative of any assistance. I use Excel 2013 and scandinavian dates and cannot get DATEDIF-function to work. As you probably noticed, the Excel DATEDIF function does not have a special unit to calculate date difference in weeks. However, it works in all versions of Excel. I have tried using "w" and "ww" and these only count the number of weeks. A pure date is stored as a date as of crossing midnight (time of 0). By DaveBre in forum Excel Formulas & Functions. Microsoft. DATEDIF (C3,D3,"M"), the result being 3 months. . counts down perfectly until -1 should be shown but instead returns #NUM!The first date is specified in cell B4 and the second date in cell C4. The DATEDIF function is a powerful Excel formula that calculates the difference between two dates. Is it possible to only count only the weekdays. 9,212. F9. “m” gets the between dates. Select the desired unit or combination of units from the Difference in drop-down menu. EXclude start date. In this example, column D contains the date March 1, 2019 and column E contains the date April 5, 2021. Next, refer to cell B1 where you have the ending date. Then type a formula like one of the following. 2 Answers. com DATEDIF in Excel Online for Office 365? With DATEDIF () it's possible to calculate a date difference for two dates. Re: DatedIf Not Working @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 Re: DatedIf Not Working @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 We would like to show you a description here but the site won’t allow us. This can be done in multiple ways as follows: Cell References. My formula is thus DatedIF (earlier date/beginning of the amortization period, the month end date,"m") + 1. The function takes the arguments of start date, end date and the option for the output type. This formula uses the. In my view this is just the way DATEDIF works. –Lastly, we can use the AVERAGE function to determine the average tenure within the data set. if you format the cell as general that date should appear as 36892 so that indicates the date is text and not a real date number, its the original that needs changing once its changed to a real date it should work on any machine, datedif works with text dates as long as they are in the correct format on my machine 23/4/08 would work as / is my. For example, given a start date of 1-Jan-2018 and end date of 1-Jul-2018, the result should be a string like this: "1 years, 6 months, 0 days" DATEDIF. If you want non-integer precision, you should probably do something simpler without DATEDIF like (A2-A1)*24 or =CONVERT(A2-A1,"day","hr"). Now, in the third argument, you need to enter the unit “y” to get the count of years. You can vote as helpful, but you cannot reply or subscribe to this thread. There are a bunch of units that you can use in the DATEDIF () function. Excel ISBLANK function. Your formula might not return expected results if the cell’s data type can’t be used in calculations. Fill in "d" for the third argument to get the number of days between two dates. . The resulting value will be the number of whole days between the two dates. Follow the below steps to Find Age using Simple Math: Step 1: Enter DOB or Start_date into the cell. This is the easiest way to make a DATEDIF formula in Excel is to input two valid dates in separate cells and refer. For example, if cell A2. Still, we can use the DATEDIF function to calculate the number of months between the two dates. DATEDIF is the easiest way to find out how many years are between two dates. Excel DATEDIF function is provided for compatibility with Lotus 1-2-3. To calculate and display the time between two dates in days, months, and years, you can use the a formula based on the DATEDIF function. If you are t…Use the DATEDIF function when you want to calculate the difference between two dates. missing datedif. This thread is locked. Click in the cell where you want the age to appear. N. Then, with the cell still selected -- do not click to edit the cell itself, instead -- put your cursor up into the formula bar (where you see the formula up there) and hit Enter up there. DATEDIF requires first 2 arguments as a date. The function takes the arguments of start date, end date and the option for the output type. Then, we have used DATEDIF again pretty much the same way to return the number of months but the code has been. 1 Answer. But I'm not sure about Office 365. Converting date differences into months and years has always been. Here's how it does this: First the DATE function creates the date, 5/1/2016. I'm trying to calculate the shelf life remaining on an item using the manufactured date & the expiration date.