Comments on: How to change date format in Excel and create custom formatting

The first part of our tutorial focuses of formatting dates in Excel and explains how to set the default date and time formats, how to change date format in Excel, how to create custom date formatting, and convert your dates to another locale. Continue reading

Comments page 9. Total comments: 940

  1. Hi

    I'm not sure if my request is possible, but I would like to calculate the time difference for a date and time format used within the military. The format used in our Defence Force is 'dd/hh:mm/mmm/yy', displayed/written as '121300Apr21' (24hr). My questions are;
    1. Is it possible for excel to recognise this date/time format, including the month as text?
    2. If so, what formula would I use to calculate the time difference between two dates of this format? Eg - calculate time between 121300May21 and 131730May21

    3. Finally, is it possible for excel to recognise this date and time format displayed in a number of different ways, i.e, with, or without spaces, between the date and time figures from the same spreadsheet list? The list contains dates and times with spaces in following examples;
    a. 12 1300 May 21
    b. 121300 May 21
    c. 12 1300May 21

    Q1&2 are the essential answers I require. Q3, is a nice to have as it will save me time in re-writing a few thousand dates/times already entered. If Q3 is not achievable, then these calculations will be applied from the current date, assuming that Q1&2 are possible.

    Appreciate any assistance, and happy to provide clarity if my questions are confusing - thanks

    1. Hello!
      Excel recognizes your data as text. You can convert this text to date and time using this fromula

      =--(LEFT(A1,2)&"-"&MID(A1,7,3)&"-"&RIGHT(A1,2))+TIME(MID(A1,3,2),MID(A1,5,2),0)

      Apply the date and time format you want to this cell.
      You can change this formula to convert any date from Q3.
      You can convert 121300May21 and 131730May21 in two separate cells and then subtract them. Or use one formula

      =--(LEFT(A2,2)&"-"&MID(A2,7,3)&"-"&RIGHT(A2,2))+TIME(MID(A2,3,2),MID(A2,5,2),0) - (--(LEFT(A1,2)&"-"&MID(A1,7,3)&"-"&RIGHT(A1,2))+TIME(MID(A1,3,2),MID(A1,5,2),0))

  2. My problem is here:

    I am used to typing dates as mm-dd-yy

    When I type in a cell 08-12-21, I want it to be (dd-mmm-yy) which is 12-Aug-21

    But what shows up is 8-Dec-21.

    How do I fix this?

  3. hi sir, i type 4/10 it is automatically changed to Apr-10. I need as it is (4/10).. How can i get it?????

    1. Hello!
      To write a fraction in a cell that has the General format, precede the fraction with zero and a space. For example, to enter 4/10 into a cell, you would type 0 4/10. If you enter 4/10, Excel converts that fraction to a date.

  4. hello, how to change the time format using an excel function, example, converting this format (12:00 AM/PM) to (12-00-00 AM/PM), (12:00:00 AM/PM), (12 AM/PM) thanks

    1. Hello!
      I hope you have studied the recommendations in the tutorial above.
      Use custom time format:

      h:mm:ss AM/PM
      hh AM/PM
      h-mm-ss AM/PM

      1. Hello thanks for the response. I have another question, can you change the format of time using the example problem above by creating an excel function and not by create custom format?

  5. How to change date format from "2020-Apr-27 " to 27-Apr-2020 in excel file

    1. Hello!
      Please check out this article to learn how to convert text to date and number to date.
      I can’t give you a more accurate advice since you didn’t specify which date and time format your Windows uses.

  6. Good day, I have this date formats 13/05/2020, 12/5/2020 in a workbook and I am unable to format the sheet.

    Any Help?

    Thanks

  7. Hello,
    I spend 99% of my Excel time processing timestamped data from SQL Server which include milliseconds.
    My custom Excel format is: yyyy-mm-dd hh:mm:ss.000
    And it works perfectly but I always have to apply the formatting manually to cells in each sheet and then use format painter to change the other columns.
    I would like to setup Excel so that every time Excel wants to format any cell as any kind of date or time I want Excel to use my custom format, including ms.
    I tried using my Excel format string in Windows regional settings but the .000 for milliseconds is not accepted.
    Is this possible? and if so how?
    Thanks

    1. Hello!
      Unfortunately, the default date and time format in Windows does not use milliseconds. This can be done using a custom format.

  8. Thanks for reply.
    From the list of excel, I used the DOB to find t a person on database system that only dd.mm.yyyy format. So I copy it tang paste on format back to dd/mm/yyyy.

    Regards,

  9. It's works- well done but when I want to copy its came back to dd/dd/yyyy
    thanks

    1. Hi Gufron,

      Since format is applied to cells, not values, you also need to set your custom date format to the cells that you copy the dates to.

  10. It's works- well done.
    thanks

  11. Greeting,

    How to change date format 08/04/2021 into 08.04.2021

    Thanks

  12. Hi! My problem is when I type "Apr 3" in excel and click enter, the date that appears is April 1, 2001. The cell is formatted for the date to appear that way but the actual date that comes out is not April 3, 2021. This is happening on my laptop where I just installed Microsoft Windows 10.

    In my PC, that has Microsoft Windows 10, I do not have this problem with excel. I can type in Apr 3 and April 3, 2021 appears. Please help me solve this issue? Thank you

    1. Hi!
      I recommend checking the regional settings of Windows: Control Panel - Time&Language - Region - Regional format data.

  13. Hello.
    I have a table, 4 columns and a lot of rows with values 0 and 2.
    I need to replace the values like this 0 to 0.4/22 and 2 to 2/22.

    I searched everywhere and I dint find the answer.

    The thing is it auto-transform the text (2/22) into date, or into fractional. I need it to stay text. I have to replace them manual one after each other.

    I have Office 2019 .

    Thank you for your attention.

    1. Hello!
      In the "Replace with" field, write an apostrophe before 2/22. This will show that it is text
      '2/22

      I hope my advice will help you solve your task.

  14. Dear Sir,
    In a excel sheet i have the following problem:
    04-12-81 18:00
    04-12-81 21:00
    13-4-1981 00:00:00
    13-4-1981 03:00:00
    In which first two are incorrect and last two are in correct format. Excel is reading first two as 4 December but actually they are 4 April. How can I correct these errors? I have copied data of around 40 years (1981 to 2020) in a excel sheet and I have to correct the incorrect dates. Please give your valuable suggestions.

    1. Hello!
      To convert the date December 4th to April 12th, use the formula

      =DATE(YEAR(A1),DAY(A1),MONTH(A1)) + TIME(HOUR(A1),MINUTE(A1),SECOND(A1))

      I hope this will help

      1. Thanks Sir. It works. But another problem is that I have a huge data set from 1981 to 2020. How can I filter those incorrect date formats quickly so that I can correct those data.

        1. Hello!
          If I got you right, the formula below will help you with your task:

          =IFERROR(DATE(YEAR(A2),DAY(A2),MONTH(A2)) + TIME(HOUR(A2),MINUTE(A2),SECOND(A2)),DATE(MID(A2,SEARCH("-",A2,4)+1,4), MID(A2,SEARCH("-",A2,1)+1, SEARCH("-",A2,4)-SEARCH("-",A2,1)-1), LEFT(A2,SEARCH("-",A2,1)-1))+TIMEVALUE(RIGHT(A2,8)))

          Hope this is what you need.

  15. Hi! I have an excel file and under the date column that has like this "190916". There is no specification as to what the format is but I am assuming it is in the yy/mm/dd format. I tried formatting it to the mm/dd/yyyy but whenever I try to change all of them, it just goes like this "9/15/2422".

    How can I change it into a proper mm/dd/yyyy format?

    Thank you.

  16. I can't seem to get it from 44256 to 3/1/21 I've clicked everything! plus I have a ton of questions I am using one of their preset ledgers. could this be the problem? Also, side help note question since I've been everywhere and this is so confusing. Is there a place where I can go and someone can look at what I have and maybe walk me through some things? because once it's set I'm good to go! Thanks for all the help everyone, I will talk all that I can get!! (I am using check register with chart) but trying to make it specific for me

  17. how to change date and time format from 05012021 20:54:25 to 01/05/2021 20:54:25

    1. First of all... Alexander, you are amazingly patient and kind!

      Abdulla... I like the "05012021" format because it involves no symbols. Is faster to type, in other words. I have learned that the format you have is: mmddyyyy hh:mm:ss and you want to go to: mm/dd/yyyy hh:mm:ss... You go into Format (Ctrl+1), Number Tab>Custom and Type in... Your date ant time you want is the second. Just type it in and hit return...

      My question for Alexander Son of Trifunt ;) is, I entered mmddyyyy and use that as my "date" representation. However, I want to type in a date as mmddyyyy e.g. 05242021 and have it keep that as a date. Rather than typing in 05/24/2021 and having it represent as 05242021... But it says, as I know you will guess because you have probably ALREADY answered this question, "Dates that are negative or too large display as #### etc." I am guessing it has something to do with changing dates as text or numbers. But I am not clear on this...

      Thank You, Rick.

      1. Hi,
        If you enter 05242021, the number 5242021 will be written. To write 05242021, you need to enter it as text, put the character ` before the numbers. But that still won't be a date.
        You need to use VBA to solve your problem.

  18. I need one column to be Monday then Wednesday then Friday all with the month and year
    and the other column to be Tuesday then Thursday then Saturday all with the month and year

    Is this possible? I've been trying and can't seem to figure it out.

    Thanks.
    Lori

    1. Hello!
      In cell A1, write down the date, which is Monday. For example, February 15th. In cell A2, write down the formula

      =IF(WEEKDAY(A1,2)=5,A1+3,A1+2)

      Copy the formula down the column.
      For Tuesday use the formula

      =IF(WEEKDAY(A1,2)=6,A1+3,A1+2)

      Read more about the WEEKDAY function in this article.
      I hope my advice will help you solve your task.

  19. Hi, thanks for the tutorial, it's really helpful. But i wonder if you can help me on this one:
    i have the date of 1/2/2021 (1 Feb) at my timezone, but excel keep interpreting it as 2 Jan. So i have trouble when filtering, i would like to know how to make excel understand that? I can not change the data now as the input is quite big and spilling all over place. Can you help me? Thank you.

  20. Hello!
    Is there a way to set the default month / year eg. to Feb / 2021 such that when I type '1' in the cell, it would automatically become 1-Feb-2021 instead of something like 1-Jan-1990

  21. Hi I have date format as ( sun 24/1/2021) I need to use a formula to transform it to DD/MM/YY

    Thank you for your support

    1. Hello!
      If I understand your task correctly, the following formula should work for you:

      =DATE(RIGHT(REPLACE(A1,1,SEARCH(" ",A1,1),""),4),MID(REPLACE(A1,1,SEARCH(" ",A1,1),""), SEARCH("/",REPLACE(A1,1,SEARCH(" ",A1,1),""),1)+1, SEARCH("/",REPLACE(A1,1,SEARCH(" ",A1,1),""),4)- SEARCH("/",REPLACE(A1,1,SEARCH(" ",A1,1),""),1)-1), LEFT(REPLACE(A1,1,SEARCH(" ",A1,1),""), SEARCH("/",REPLACE(A1,1,SEARCH(" ",A1,1),""),1)-1))

      Hope this is what you need.

  22. I have an Excel file with mixed date formats in the Date column. Does anyone have a suggestion for a way to flip all the dates to the same format? I need to filter the entire sheet using the date and remove any entries that are more than 24 months old.

    Thank you,

    Here's a sample -

    27/08/2020 8:07:00 AM
    2018-01-11
    30/12/2020 1:34:00 PM
    14/09/2020 12:54:00 PM
    30/10/2020 10:09:00 AM
    22/12/2018 7:20:00 AM
    2020-03-11

    1. Hello!
      If all your data is in date format, select the column and set the format you want.
      Pay attention to the following paragraph of the article above — How to change date format in Excel.
      If the date is written as text (for example 14/09/2020 12:54:00 PM), then use the formula

      =--REPLACE(REPLACE(A1,1,2,MID(A1,4,2)),4,2,LEFT(A1,2))

      I hope it’ll be helpful.

  23. Hello!

    OBJECTIVE:

    My objective is to create a custom number format that can work for phone numbers AND dates inside the same cell.

    EXAMPLE:

    (214) 999-0000 "HOUSE NOTES: PHONE NOTES: (214) 295-0021 (469) 258-5800 (214) 579-5707
    (469) 585-3485 (214) 475-6990 1/14/21 example of phone note 214.395.7623 1/14/21
    (214) 999-0000 example of phone note 469.363.3039 1/14/21 example of phone note MAIL
    LETTER NOTES:"

    EXPLANATION

    On the leftmost "cell", I've applied the following custom number format: (###) ###-####

    However, this format is not applicable on the rightmost cell with text because aside from having phone numbers, it also includes dates and words.

    QUESTION:

    What formula can be used to have all phone numbers in this format: (###) ###-### and also the date in this format: mm/dd/yy, while keeping text as is? (In this order as well: Phone, date, note)

    Any help is greatly valued!! Thank you!

    1. Hi,
      The information you provided is not enough to understand your case and give you any advice.
      You have recorded a long text. What is written in the left cell? What is written in the right cell? What dates and words does it include? How many cells does your example occupy? A detailed description is required.

  24. Hi, I would like to put it as end-Dec-2020. I already change my date format to Mmm-yyyy. How can I add the word 'End' at the front?

    1. Hello!
      You can use custom date format

      "End-"Mmmm-yy

      I hope this will help, otherwise please do not hesitate to contact me anytime.

  25. Hey I have the following issue after converting a csv into regular excel: some of the values (that are supposed to be amounts) , are there as dates, example 11.31 has been converted into Nov 31 BUT if I change the format to number of text then I get the 11628. What can I do?

    1. Hello!
      Unfortunately, without seeing your data it is difficult to give you any advice. You can learn more about Convert CSV to Excel in this article on our blog.
      I hope my advice will help you solve your task.

  26. Would it be possible to include a symbol before and after the date? Example: (01 January 2021). How do I format it to include and open and close parenthesis before and after the date?

    Thank you

    1. Hi Jay,

      Simply include the parentheses in the format code like this: (dd mmmm yyyy)

  27. i need to change the date and make it appear in dd / mm / yyyy form
    For a list of different dates
    What formula can be used to do this?
    July 18, 2015
    November 1, 2000
    etc.

  28. Hi, I'm working with a one drive spreadsheet that is auto generated from a google doc. One of the columns should show 'number of days' so I'd be expecting to see numbers in this column, however what I am seeing is dates. Some of these are post 1900 and I understand from your great description how to convert these to numbers but a lot are showing as pre 1900 e.g. 12/30/1899. Are these just zero values?

  29. Thank you very much
    I had to switch to another computer after the old one kinda died after 10 years. I had Excel 2003.
    When I got Excel 2010 all dates in all excell docs were US and single digit months.
    I got the terrible 2/9/2018 and could not convert is to my beloved format 09/02/2018. Thanks to you It was easy. Just change the language from English US to English UK.

    Thanks

  30. What is the @ symbol for. It is shown in the screen shot in the "Creating a custom date format in Excel" section, and I see it in the Excel Format Cells dialog on my Windows computer, but I can't seem to find out what it represents. Can you tell me?

    1. Hi,
      The @ symbol specifies where the text entered in the cell should appear.
      Ecample —

      "Income is "@

      I hope it’ll be helpful.

  31. I am entering a date of 11/12/2020 in a cell. I am currently using custom format to display the date as 12-Nov Thu. I would like to display the date as 12-Nov Th. Is there a way to show this display with only the first two letters of the day?

    1. Hello!
      This format is not available in Excel. However, you can convert this date to text and remove the last letter.

      =LEFT(E1,LEN(E1)-1)

      I hope my advice will help you solve your task.

  32. How can I change date in this format "01st Jan 2021" to "01-01-2021"?

    1. Hello!
      The information you provided is not enough to understand your case and give you any advice. Please describe your problem in more detail.
      Is your date written in text or in a date format?

  33. Am going to need some help but it’s ok

  34. Hello , i have for example 19260101 this is first date of 1926 actually, But it is written just as general numbers, i need to fix it to date and 1926/01( yyyyy/month) , how can i fix it ?

    1. Hello!
      To convert your value to a date, use the formula

      =DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

      Use custom date format

      yyyy/mm

      Hope this is what you need.

  35. Hello Alex,

    I need to help-

    Example - i have date format in D cell - 15-JUL-20 and i want a formula to covert date to numberi.e 15

  36. Hi, need help with converting these date: 11/23/2020 12:00:00 AM to 11/23/2020 and subtract by 7:00:00. My formula =IF(Z3="","",DATE(YEAR(Z3-"7:00:00"),MONTH(Z3-"7:00:00"),DAY(Z3-"7:00:00"))) doesn't work. Yet the formula works if the date is in 24hr format like: 11/23/2020 00:00:00. I already tried changing the DATE formats in control panel, customized the formats in excel to dd/mm/yyy hh:mm:ss but seems to not work at all.

    1. Hello!
      To subtract a number of hours, minutes and seconds from a date, use the formula

      =D1-TIME(7,0,0)

      Subtract 7 hours.

  37. Hello Alexander! Cannot get my head around this one. Didn't find an answer

    I have a date format

    11.11.2020 11:09:18

    I need it to be exactly

    Nov 11th, 2020 , 11:09 AM

    The main problem is with ending after date: 1st, 2nd, 3rd, 4th etc.

    Please help

    1. Hello!
      The formula below will do the trick for you:

      =CONCATENATE(TEXT(D2,"mmm")," ",DAY(D2)&LOOKUP(DAY(D2),{1,"st";2,"nd";3,"rd";4,"th";21,"st";22,"nd";23,"rd";24,"th";31,"st"}),", ",TEXT(D2," yyyy, hh:mm AM/PM"))

      Hope this is what you need.

  38. Hello, I am trying to change the date in dd/mm/yyyy format from d/m/yyyy ... but it is not working as it is reading the text incorrectly, as if it is 1/9/2020 (1/Sept./2020) but it reads it as 1/Jan/2020.. Please help!

    1. Hello!
      Sorry, it's not quite clear what you are trying to achieve. What is the date in the cell? What format are you using? What result do you want to get?

  39. I am downloading a report and my dates are coming up 16/01/2020 (so dd/mm/yyyy); however, the cell is formated as GENERAL and won't sort via the date.

    I have tried highlighting and formating the cells to Date - English (Canada) and picked dd/mm/yyyy; however, when I try to sort it is putting all the 01/??/???? together, then the 02/??/???? together.

    I have tried the Text to Columns and it isn't working - not all of the cells are changing over to date (if I scroll through some are still saying General).

    Is there any way to fix this issue??? Of note - I am downloading the report from ADP payroll provider.

    Thanks very much.

    Geri

  40. Thanks for reply . I already tried this and it does not work and makes no change on dates in column.

    1. Hello!
      This custom date format works for me. What date format do you use on Windows? Give more an example of the source data and the expected result.
      It’ll help me understand it better and find a solution for you.
      If your data is written as text, perhaps a recommendation on how to convert text to date will help you.

  41. Hi,

    I have date in this format September 9, 2019 in one of the excel columns. I want to change it to 9/09/2019.. I tried to apply the format from the formats provided in excel, but it did not work. Any help will be highly appreciated.

  42. How to change below mentioned date in excel with DD/MM/YYYY?

    2019-02-02 13:45:20

    Pls help Urgently

    1. Hello!
      If I understand your task correctly, the following formula should work for you:

      =DATE(LEFT(D1,4),MID(D1,6,2),MID(D1,9,2))

      I don't know which date formal you are using. Therefore, you may find it useful to know how to convert text to date.

  43. I have a report with date, text & time with timezone in a cell and the requirement is to sort this in ascending order. I have tried to use delimiter, concatenate and also convert text to date but the "at" in between date & time is giving me issues and i am having a tough time sorting it. Can you please help

    Example:
    Thursday, April 16, 2020 at 6:23:36 PM China Standard Time
    Sunday, April 19, 2020 at 10:18:36 PM China Standard Time
    Saturday, April 18, 2020 at 3:23:36 AM China Standard Time
    Friday, April 10, 2020 at 1:23:36 AM China Standard Time
    Thursday, April 16, 2020 at 6:23:36 PM China Standard Time
    Sunday, April 19, 2020 at 10:18:36 PM China Standard Time
    Saturday, April 18, 2020 at 3:23:36 AM China Standard Time
    Friday, April 10, 2020 at 1:23:36 AM China Standard Time
    Thursday, April 16, 2020 at 6:23:36 PM China Standard Time
    Sunday, April 19, 2020 at 10:18:36 PM China Standard Time
    Saturday, April 18, 2020 at 3:23:36 AM China Standard Time
    Friday, April 10, 2020 at 1:23:36 AM China Standard Time
    Thursday, April 16, 2020 at 6:23:36 PM China Standard Time

    1. Hello!
      I’m sorry but your task is not entirely clear to me. How do you want to sort the column? Do you have text written in the cells? If you need to sort by date and time, you need to extract them from the text into another column. And sort by this column.

  44. Formula for following required :
    Todays date is September 01, 2020.
    Part A
    A tool is calibrated on Jan 01, 2020.
    It has a 6 month calibration cycle so it is overdue by 3 months
    How to show actual calibration due date and -3 month overdue date in 2 separate cells.
    Part B
    As above, but tool has calibration cycle of 24 months, therefore has 18 months remaining till due.

    I think one formula would work for both scenarios.

    Example :
    Cell A Cell B Cell C Cell D
    Calibration done cycle (m) Due Status
    Jan 01 2020 6 July 01 2020 -3
    Jan 01 2020 24 Jan 01 2022 18

    Thank You in advance for any help.

  45. Hi My worksheet is split into 12 equal sections representing the 12 months of the year.
    I started gathering data in July and I’m trying to work out how to automatically have the word August in the second section and September in the 3rd section etc. without having to type it in manually.
    Thanks

    1. Hello!
      I’m sorry but your task is not entirely clear to me. For me to be able to help you better, please describe your task in more detail. Give an example of the source data and the expected result.
      It’ll help me understand it better and find a solution for you

  46. Hello

    I have this format on cell A1: Sep 22, 2020 03:09:09 AM
    What formula do i need to us to change it to: 09/22/2020 and remove the time in cell A2

    thank you in advance

    1. Hello!
      If I understand your task correctly, the following formula should work for you:

      =DATE(MID(A1,FIND("~",SUBSTITUTE(A1," ","~",2),1)+1,4), VLOOKUP(LEFT(A1,3), {"JAN",1;"FEB",2;"MAR",3;"APR",4;"May",5;"JUN",6;"JUL",7;"AUG",8; "Sep",9;"OCT",10;"NOV",11;"DEC",12},2,0), MID(A1,FIND(" ",A1,1)+1,2))

      I hope it’ll be helpful.

      1. That's brilliant thank you! Saved me hours of work.

  47. I do not know what I am doing wrong. I have imported dates into Excel as text values, however, using neither Excel's DATEVALUE function nor Text to Columns feature seems to work.

    In my spreadsheet, the dates are in column F and have the format "m/d/yyyy h:mm:ss AM/PM"

    For example, cell F2 contains the following text: ‎9‎/‎30‎/‎2020 ‎12‎:‎00‎:‎00‎ ‎AM

    I am able to use TRIM(LEFT(F2,FIND(" ",F2)-1)) to retrieve the date portion of the text, but when I attempt to use DATEVALUE(TRIM(LEFT(F2,FIND(" ",F2)-1))) to convert the text value to a date value, I receive a #VALUE! error.

    Please help.

    1. Hello!
      Your formula is written correctly and should work. If you imported dates from another program, there may be various non-printable characters in the text. To check this, try manually entering the same information into the cell 9/30/2020 12:00:00 AM
      You can also try using this formula

      =DATE(--MID(F2,FIND("~",SUBSTITUTE(F2,"/","~",2),1)+1, FIND(" ",F2,1)-FIND("~",SUBSTITUTE(F2,"/","~",2),1)-1), --LEFT(F2, SEARCH("/",F2,1)-1), --MID(F2,FIND("~",SUBSTITUTE(F2,"/","~",1),1)+1, FIND("~",SUBSTITUTE(F2,"/","~",2),1)-FIND("~",SUBSTITUTE(F2,"/","~",1),1)-1))

      I hope it’ll be helpful.

  48. If I enter a date as 12/19/1922, my date columns are formatted to display, 19 Dec 1922. If I enter a date prior to 1900, however, the formatting will not change.
    Also, I need to calculate the age of a person and I use =datedif(xx,xx,"y"). But, again,. the calculation won't work for any date prior to 1900.
    Is there a fix for both the formatting issue and the calculation?
    Thanks in advance for your help.

    1. Hello!
      Excel does not work with dates before 1900. These dates are recorded as text. Therefore, it is not possible to apply the date format to them.
      To find the difference between dates before 1900, it is recommended to add 2000 years to each of them.
      You can use something like this:

      =DATEDIF(DATEVALUE(LEFT(A1,6)&(RIGHT(A1,4)+2000)),DATEVALUE(LEFT(A2,6)&(RIGHT(A2,4)+2000)),"y")

      If there is anything else I can help you with, please let me know.

  49. hello
    i want name and dob like devika 10/4/1996 but instead of date some numbers are appearing

    1. Hello!
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get? Thank you!

  50. Sir, How to type date to date format (eg:2001.jan.1 to 2001.dec.31) in cell.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)