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.

Along with numbers, dates and times are the most common data types people use in Excel. However, they may be quite confusing to work with, firstly, because the same date can be displayed in Excel in a variety of ways, and secondly, because Excel always internally stores dates in the same format regardless of how you have formatted a date in a given cell.

Knowing the Excel date formats a little in depth can help you save a ton of your time. And this is exactly the aim of our comprehensive tutorial to working with dates in Excel. In the first part, we will be focusing on the following features:

Excel date format

Before you can take advantage of powerful Excel date features, you have to understand how Microsoft Excel stores dates and times, because this is the main source of confusion. While you would expect Excel to remember the day, month and the year for a date, that's not how it works...

Excel stores dates as sequential numbers and it is only a cell's formatting that causes a number to be displayed as a date, time, or date and time.

Dates in Excel

All dates are stored as integers representing the number of days since January 1, 1900, which is stored as number 1, to December 31, 9999 stored as 2958465.

In this system:

  • 2 is 2-Jan-1900
  • 3 is 3-Jan-1900
  • 42005 is 1-Jan-2015 (because it is 42,005 days after January 1, 1900)

Time in Excel

Times are stored in Excel as decimals, between .0 and .99999, that represent a proportion of the day where .0 is 00:00:00 and .99999 is 23:59:59.

For example:

  • 0.25 is 06:00 AM
  • 0.5 is 12:00 PM
  • 0.541655093 is 12:59:59 PM

Dates & Times in Excel

Excel stores dates and times as decimal numbers comprised of an integer representing the date and a decimal portion representing the time.

For example:

  • 1.25 is January 1, 1900 6:00 AM
  • 42005.5 is January 1, 2015 12:00 PM

How to convert date to number in Excel

If you want to know what serial number represents a certain date or time displayed in a cell, you can do this in two ways.

1. Format Cells dialog

Select the cell with a date in Excel, press Ctrl+1 to open the Format Cells window and switch to the General tab.

If you just want to know the serial number behind the date, without actually converting date to number, write down the number you see under Sample and click Cancel to close the window. If you want to replace the date with the number in a cell, click OK.
Use the Format Cells dialog to get the number behind a given date in Excel.

2. Excel DATEVALUE and TIMEVALUE functions

Use the DATEVALUE() function to convert an Excel date to a serial number, for example =DATEVALUE("1/1/2015").

Use the TIMEVALUE() function to get the decimal number representing the time, for example =TIMEVALUE("6:30 AM").

To know both, date and time, concatenate these two functions in the following way:

=DATEVALUE("1/1/2015") & TIMEVALUE("6:00 AM")
Use the DATEVALUE and TIMEVALUE functions to find the number behind a given date and time in Excel.

Note. Since Excel's serial numbers begins on January 1, 1900 and negative numbers aren't recognized, dates prior to the year 1900 are not supported in Excel.

If you enter such a date in a sheet, say 12/31/1899, it will be a text value rather than a date, meaning that you cannot perform usual date arithmetic on early dates. To make sure, you can type the formula =DATEVALUE("12/31/1899") in some cell, and you will get an anticipated result - the #VALUE! error.

If you are dealing with date and time values and you'd like to convert time to decimal number, please check out the formulas described in this tutorial: How to convert time to decimal number in Excel.

Default date format in Excel

When you work with dates in Excel, the short and long date formats are retrieved from your Windows Regional settings. These default formats are marked with an asterisk (*) in the Format Cell dialog window:
Default date formats in Excel

The default date and time formats in the Format Cell box change as soon as you change the date and time settings in Control Panel, which leads us right to the next section.

How to change the default date and time formats in Excel

If you want to set a different default date and/or time formats on your computer, for example change the USA date format to the UK style, go to Control panel and click Region and Language. If in your Control panel opens in Category view, then click Clock, Language, and Region > Region and Language > Change the date, time, or number format.

On the Formats tab, choose the region under Format, and then set the date and time formatting by clicking on an arrow next to the format you want to change and selecting the desired one from the drop-down list:
Setting the default date and time formats in Control panel

Tip. If you are not sure what different codes (such as mmm, ddd, yyy) mean, click the "What does the notation mean" link under the Date and time formats section, or check the Custom Excel date formats in this tutorial.

If you are not happy with any time and date format available on the Formats tab, click the Additional settings button in the lower right-hand side of the Region and Language dialog window. This will open the Customize dialog, where you switch to the Date tab and enter a custom short or/and long date format in the corresponding box.
Setting the custom date and time formats

How to quickly apply default date and time formatting in Excel

Microsoft Excel has two default formats for dates and time - short and long, as explained in default Excel date format.

To quickly change date format in Excel to the default formatting, do the following:

  • Select the dates you want to format.
  • On the Home tab, in the Number group, click the little arrow next to the Number Format box, and select the desired format - short date, long date or time.

Quickly applying the default date and time formatting in Excel

If you want more date formatting options, either select More Number Formats from the drop-down list or click the Dialog Box Launcher next to Number. This will open a familiar Format Cells dialog and you can change date format there.
Click the Dialog Box Launcher to open the Format Cells dialog.

Tip. If you want to quickly set date format in Excel to dd-mmm-yy, press Ctrl+Shift+#. Just keep in mind that this shortcut always applies the dd-mmm-yy format, like 01-Jan-15, regardless of your Windows Region settings.

How to change date format in Excel

In Microsoft Excel, dates can be displayed in a variety of ways. When it comes to changing date format of a given cell or range of cells, the easiest way is to open the Format Cells dialog and choose one of the predefined formats.

  1. Select the dates whose format your want to change, or empty cells where you want to insert dates.
  2. Press Ctrl+1 to open the Format Cells dialog. Alternatively, you can right click the selected cells and choose Format Cells… from the context menu.
  3. In the Format Cells window, switch to the Number tab, and select Date in the Category list.
  4. Under Type, pick a desired date format. Once you do this, the Sample box will display the format preview with the first date in your selected data.
  5. If you are happy for the preview, click the OK button to save the format change and close the window.

Changing the date format in Excel

If the date format is not changing in your Excel sheet, most likely your dates are formatted as text and you have to convert them to the date format first.

How to convert date format to another locale

Once you've got a file full of foreign dates and you would most likely want to change them to the date format used in your part of the world. Let's say, you want to convert an American date format (month/day/year) to a European style format (day/month/year).

The easiest way to change date format in Excel based on how another language displays dates is as follows:

  • Select the column of dates you want to convert to another locale.
  • Press Ctrl+1 to open the Format Cells
  • Select the language you want under Locale (location) and click OK to save the change.

Converting Excel dates to another locale

If you want the dates to be displayed in another language, then you will have to create a custom date format with a locale code.

Creating a custom date format in Excel

If none of the predefined Excel date formats is suitable for you, you are free to create your own.

  1. In an Excel sheet, select the cells you want to format.
  2. Press Ctrl+1 to open the Format Cells dialog.
  3. On the Number tab, select Custom from the Category list and type the date format you want in the Type box.
  4. Click OK to save the changes.

Creating a custom date format in Excel

Tip. The easiest way to set a custom date format in Excel is to start from an existing format close to what you want. To do this, click Date in the Category list first, and select one of existing formats under Type. After that click Custom and make changes to the format displayed in the Type box.

When setting up a custom date format in Excel, you can use the following codes.

Code Description Example (January 1, 2005)
m Month number without a leading zero 1
mm Month number with a leading zero 01
mmm Month name, short form Jan
mmmm Month name, full form January
mmmmm Month as the first letter J (stands for January, June and July)
d Day number without a leading zero 1
dd Day number with a leading zero 01
ddd Day of the week, short form Mon
dddd Day of the week, full form Monday
yy Year (last 2 digits) 05
yyyy Year (4 digits) 2005

When setting up a custom time format in Excel, you can use the following codes.

Code Description Displays as
h Hours without a leading zero 0-23
hh Hours with a leading zero 00-23
m Minutes without a leading zero 0-59
mm Minutes with a leading zero 00-59
s Seconds without a leading zero 0-59
ss Seconds with a leading zero 00-59
AM/PM Periods of the day
(if omitted, 24-hour time format is used)
AM or PM

To set up date and time format, include both date and time units in your format code, e.g. m/d/yyyy h:mm AM/PM. When you use "m" immediately after "hh" or "h" or immediately before "ss" or "s", Excel will display minutes, not a month.

When creating a custom date format in Excel, you can use a comma (,) dash (-), slash (/), colon (:) and other characters.

For example, the same date and time, say January 13, 2015 13:03, can be displayed in a various ways:

Format Displays as
dd-mmm-yy 13-Jan-15
mm/dd/yyyy 01/13/2015
m/dd/yy 1/13/15
dddd, m/d/yy h:mm AM/PM Tuesday, 1/13/15 1:03 PM
ddd, mmmm dd, yyyy hh:mm:ss Tue, January 13, 2015 13:03:00

Tip. Using a custom date format, you can easily display the day of the week from date.

How to create a custom Excel date format for another locale

If you want to display dates in another language, you have to create a custom format and prefix a date with a corresponding locale code. The locale code should be enclosed in [square brackets] and preceded with the dollar sign ($) and a dash (-). Here are a few examples:

  • [$-409] - English, Untitled States
  • [$-1009] - English, Canada
  • [$-407] - German, Germany
  • [$-807] - German, Switzerland
  • [$-804] - Bengali, India
  • [$-804] - Chinese, China
  • [$-404] - Chinese, Taiwan

You can find the full list of locale codes on this blog.

For example, this is how you set up a custom Excel date format for the Chinese locale in the year-month-day (day of the week) time format:
Creating a custom Excel date format for the Chinese locale

The following image shows a few examples of the same date formatted with different locale codes in the way traditional for the corresponding languages:
Custom date formats for different locales

Excel date format not working - fixes and solutions

Usually, Microsoft Excel understands dates very well and you are unlikely to hit any roadblock when working with them. If you happen to have an Excel date format problem, please check out the following troubleshooting tips.

A cell is not wide enough to fit an entire date

If you see a number of pound signs (#####) instead of dates in your Excel worksheet, most likely your cells are not wide enough to fit the whole dates.

Solution. Double-click the right border of the column to resize it to auto fit the dates. Alternatively, you can drag the right border to set the column width you want. For more details, see How to fix #### error in Excel.

Negative numbers are formatted as dates

Hash marks (#####) are also displayed when a cell formatted as a date or time contains a negative value. Usually it's a result returned by some formula, but it may also happen when you type a negative value into a cell and then format that cell as a date.

If you want to display negative numbers as negative dates, two options are available to you:

Solution 1. Switch to the 1904 date system.

Go to File > Options > Advanced, scroll down to the When calculating this workbook section, select the Use 1904 date system check box, and click OK.
Switching to the 1904 date system

In this system, 0 is 1-Jan-1904; 1 is 2-Jan-1904; and -1 is displayed as a negative date -2-Jan-1904.
Negative numbers are displayed as negative dates

Of course, such representation is very unusual and takes time to get used to, but this is the right way to go if you want to perform calculations with early dates.

Solution 2. Use the Excel TEXT function.

Another possible way to display negative numbers as negative dates in Excel is using the TEXT function. For example, if you are subtracting C1 from B1 and a value in C1 is greater than in B1, you can use the following formula to output the result in the date format:

=TEXT(ABS(B1-C1),"-d-mmm-yyyy")
Use the Excel TEXT function to display negative numbers as dates.

You may want to change the cell alignment to right justified, and naturally, you can use any other custom date formats in the TEXT formula.

Note. Unlike the previous solution, the TEXT function returns a text value, that is why you won't be able to use the result in other calculations.

Dates are imported to Excel as text values

When you are importing data to Excel from a .csv file or some other external database, dates are often imported as text values. They may look like normal dates to you, but Excel perceives them as text and treats accordingly.

Solution. You can convert "text dates" to the date format using Excel's DATEVALUE function or Text to Columns feature. Please see the following article for full details: How to convert text to date in Excel.

Tip. If none of the above tips worked for you, then try to remove all formatting and then set the desired date format.

This is how you format dates in Excel. In the next part of our guide, we will discuss various ways of how you can insert dates and times in your Excel worksheets. Thank you for reading and see you next week!

918 comments

  1. How would I change a format of 20160328/222241
    into something like: 8-July-15 8:54AM?

    thank you

    • Hi JOY,

      Please try the following formula:

      =DATE(INT(LEFT(A1, 4)), INT(MID(A1, 5, 2)), INT(MID(A1, 7, 2))) + TIME(MID(A1, 10, 2), MID(A1, 12, 2), MID(A1, 15, 2))

      Where the value 20160328/222241 is in A1.

  2. Can anyone help me, Im having difficulties with formatting the date in excel to look the same on all columns, this is the data I have for example:
    01-Feb-16
    12/31/2015
    01-Apr-16
    12/29/2015
    12/30/2015
    12/30/2015
    04-Jan-16
    12-Jul-15
    12/23/2015
    01-Apr-16
    11/13/2015
    01-Apr-16
    04-Jan-16
    04-Jan-16
    04-Jan-16
    01-Apr-16
    12/15/2015
    11/25/2015
    12/14/2015
    12/30/2015
    12/29/2015
    01-Apr-16

    but I need all the columns to look (example) 20-05-15.

    I have tried several things but can not get them all to the same format.

    Please help.

    Thanks

    • Hi Marika,

      Please select all the columns where you want to change the format. Then right click and select the "Format cells..." option. In the "Format Cells" dialog select the Number tab - Date category, choose the format you want and click OK.

  3. My query is regarding date format. is it possible? if i enter a single number in cell and it show particular date. For example like current month is february 2016.

    if i enter 1 then it show 02/01/2016(mm/dd/yyyy)
    if i enter 15 then it show 02/15/2016(mm/dd/yyyy)
    if i enter 23 then it show 02/23/2016(mm/dd/yyyy)

    I just want to enter only one digit and it show me date of this digit with current month.

  4. I have an excel 2013 sheet that has "format as a table" and the top row is headers with a drop down for sorting. A group of column headers are dates and they are formatted as such. However, some of the dates (formated as mm/dd/yy), are throwing an extra number on the end of the date. If I input 02/10/16, it insert 02/10/162 in the cell. How do I fix this? And the sample under Format Cells, Date, mm/dd/yy shows mm/dd/yyy.

  5. Does anyone know how to convert a date in the 20131001 format to a date format of 10/1/2013, or vice versa?

    Thanks.

    • Hi Todd,

      Please try the following formulas:

      =DATE(INT(LEFT(A1, 4)), INT(MID(A1, 5, 2)), INT(MID(A1, 7, 2)))

      =YEAR(A1) & TEXT(MONTH(A1), "00") & TEXT(DAY(A1), "00")

  6. Hello everyone
    Does anyone knows how to convert a date in pivot table into a fortnight? For example, 2015-07-09 is the first fortnight and 2015-09-16 is the second fortnight.
    Many thanks to you all
    Pedro

  7. how to convert datetime to unix time?

  8. Hi Svetlana! I've received a csv file from Shelfari of all the books I've placed on their "shelves" to import into Goodreads, as Shelfari is being taken over by Goodreads; both are Amazon websites. I've been told by Goodreads that I must use a csv file with a date format of yyyyy-mm-dd (they stipulated dashes between numbers rather than slashes) to have my "date read" column import accurately, i.e., show that i read a book on January 12, 2014 instead of December 1, 2014.

    After I create a custom date format (yyyy-mm-dd -- but I've also tried yyyy/mm/dd) for the date read column, I save the file as a csv(comma delimited) type and choose "yes" to keep this format but leave out incompatible features. If I choose "no", the changes must be saved in another type/format, but Goodreads needs a csv file so I have to choose yes.

    So I choose yes and save as a csv. But when I try to close the file window I get the pop up box: do you want to save the changes you made to the file? (I thought I just had!) and have to answer the box explaining the incompatible features again (I thought I just had!). Whether I choose yes or no to save at this point and whether I use dashes or slashes to separate the numbers, when I reopen the file, the dates are back to the original mm/dd/yyyy format. I'm using Microsoft Office Excel 2007 and am running Windows 10.

    I hope you can help me save these dates in the format Goodreads has asked for: yyyy-mm-dd instead of the format Shelfari sent me in the csv file mm/dd/yyyy.
    Thanks so much,
    Cookie

    • Hi Cookie,

      It's difficult to determine the cause of the problem without seeing the source file. If it does not contain any sensitive information, you can send it to our support team at support@ablebits.com and we will try to fix it.

  9. I was sent a spreadsheet on the date column is has it as 20140207 but I need to change it to 2/7/2014 but when I go to the Format Cell and date and try to change the date format all I get are ########## even if I try to make the cell bigger I get the same thing.

    • also forgot to mention can't use formulas system I trying to upload information won't accept formulas.

      • Hello Rizo,

        Excel perceives 20140207 as a number and is unable to convert it to a date on its own. That is why you are seeing those hash marks.

        Assuming that 02 is a month and 07 is a day, you can use the following formula to convert a number to date:

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

        The formula returns a serial number representing a date in the internal Excel system. And now, you can open the Format Cells dialog and set the date format you want.

  10. How best can I obtain a number after using the =DATEIF()function for computing the age of an individual

  11. I,
    HELP ME TO CONVERT FOLLOWING DATE FORMAT

    MY FILE HAS A DATE FORMAT AS 22.05.15
    I WANT TO CONVERT THIS AS 05/22/2015

    Reply

  12. Employee attendance tables in Excel field is -Personal No. date month from-16.12.2015 to 15.01.2015 this format i want to Sheet and also his -duty,overtimes,leave,calculate this table type
    PerNo. - Date- time period- hours
    from - to -
    98264532 16.12.2015 09:00- 17:30 7.5

  13. Hi

    How to change the Fri, 1 Jan, 2016 format to 1-Jan-2015 format ?

    • Hi Aditya,

      It's one of the predefined Excel formats for dates. So, simply select the cell(s), press Ctrl+1 to open the Format Cells dialog, and switch to Dates. Then under the Type section, scroll to the very bottom, and select the format like "14-Mar-2012".

  14. Vipin Kumar:
    If I understand your problem right, you can try

    =IF(G2>F2,"profit",IF(G2<F2,"loss",IF(G2=F2,"even")))

    Good Luck!

  15. my problum whan iam cell formula =if(g2>f2,"profit",if(g2>f2,"loss",if(g2>f2,"even))) not come the loss

  16. HI,
    HELP ME TO CONVERT FOLLOWING DATE FORMAT

    MY FILE HAS A DATE FORMAT AS 22.05.15
    I WANT TO CONVERT THIS AS 05/22/2015

    • I,
      HELP ME TO CONVERT FOLLOWING DATE FORMAT

      MY FILE HAS A DATE FORMAT AS 22.05.15
      I WANT TO CONVERT THIS AS 05/22/2015

      Reply

      • Hi can you help me?

        from CVS file. The date shows 01/07/2016 which is July 1, 2016, But when I format the cell and click the format 14-Mar-01 which means"March 14, 2001" it shows 1-Jul-16 which is January 7, 2016. how I can make it July 1, 2016 which is suppose to be the date.

        Thank you.

  17. Hi, how do I replace cells with format 00:03:13:79 by 00:03:13,79 for a whole column?
    I need to be able to add those time values (in format uu:mm:ss,00;@). When I simply replace the last ":" by "," it works, but changing all those cells by hand would take ages...

  18. Hello,
    In Canada the government has specific date format that is legislated for food items. The format for the Date is as follows: 08 JA 30
    January: JA
    February: FE
    March: MR
    April: AL
    May: MA
    June: JN
    July: JL
    August: AU
    September: SE
    October: OC
    November: NO
    December: DE

    My question is how can excel use AL for April or MR for March? Much appreciated.

    • apr for april...mar for march

  19. I found the answer to my question thought I would share

    DATE: =LEFT($D2,2)&"/"&MID($D2,3,2)&"/15"

    TIME: =MID($D2,5,2)&":"&MID($D2,7,2)&":"&RIGHT($D2,2)

    Hope someone else needs it :-)

    HAVE A BLESSED DAY !

  20. Hi, I need to convert a date format like this: dd mm (no dash, comma, colon as separation characters between day and month values) to any date format which can be recognized by excel. Already tried with custom format without any success....can you help me?

    • I really wish there were more arelicts like this on the web.

  21. Dears,,,
    please help i need to create date format as yyyymmdd (20151230)= 30/12/2015 . i have tryed but it's not working . advice your assisstance

  22. Thank you for such a great tutorial!!! You just saved my job.

  23. Is it possible to convert a date in excel to an 11 digit interga 11 format.
    So this equates to the time in seconds since 1970.

  24. The second link in this whole section is:
    How to convert date to number in Excel

    I need the reverse
    How to convert a serial number to date in Excel
    but have not found it. Think of is as a trig function where I want to do the reverse. It's probably somewhere on the net, and I just can't see it... Getting old I guess... Can you help?? Thanks. JoeD 20151102 (I see this date format is becoming more popular; I've used it for about 30 years even with 4 decimals appended

  25. I need to covert a cell that contains both the date and time 1027154048 (1027 is the date and 154048 is hour (15=3) minutes and seconds. I need to be able to convert by formula into two separate cells if possible without going in and separating the numbers manually for each cell?

  26. Hi...I have several columns under the following format: "SEP-16-2013" until "SEP-16-2015" but when I try to change the "GENERAL" format to "DATE" format, excel does nothing and I need to filter the info by specific month,day,year. If I replace "SEP" to "09" I am abble to change the format (as DATE), but I have at least 60 columns under that format and have it done this way takes a lot of time...any suggestions?

  27. Hi there,
    i am importing a csv file and i have a column with date (in chinese e.g. 8月28日 which is 28th of August) but when i import this file (and replace the chinese characters with "/") some of the dates is shown as a date and some other as text. Despite of it if i try to change the format of the "text" date, it doesn't show the number as it is supposed to show.
    It is very difficult to find a solution i have been struggling for the entire day.
    Can replace the date one by one as we are talking several files with several thousands of row each.
    I trie to change my local language setting as well but no solution unfortunately.
    Any helps?
    Thanks.

  28. hi sevetlana how to inserting date use utc format in c# code.

    • Furrealz? That's maolverusly good to know.

  29. Hi,
    Can someone help with an issue we are having. The format of our Excel is Swedish. when I type a date into a cell with no (General) format, such as 3/10 (meaning October 3rd) Excel changes this to 10/3 and applies a custom format to the cell. How can I get Excel to simply accept what I have entered as the correct format and not change the order?

    • Hi,
      Did you managed to get a solution? I'm facing the same issue. Can't seems to find the answer and so far, you're the only one that is asking this question. How to change the sequence? 1/5 to be 1st May instead of 5th Jan. Please help.

  30. Hi Svetlana,

    how can i format an excel cell which will give me a day format which will give me in days more than 31. Whenever I am giving a day with the format "dd" the same is showing as 1 for 32 days and so on.Please help

  31. I want to date 18/08/2015 is 1808205 no slash no dot please help me.thanks

    • Hi Sanjay,

      You can either apply the custom format ddmmyyyy to the cell, or use the formula like =TEXT(A1, "ddmmyyyy") where A1 is the cell containing your date. The former changes only the display formatting, while the latter (TEXT function) converts a date to a text value.

      • Thanks a lot it helps us a lot..... :)

    • =Text(Select Date,"ddmmyyyy")

  32. Excellent article! I was going crazy trying to fix an issue with dates from an old file that didn't convert correctly when I upgraded and I finally could. Thank you very much!

  33. oh i'm sorry, fyi my windows reginal setting is in indonesia. thank u so much

  34. hi svet? can you help me. why when i typed like 01012010 means Jan 1st 2010 the result is 14/10/4670 ? is there any way i can custom the date, so when i type 01012010 the result is 01/01/2010 ? thanks advance

  35. How do i change 20080702 to July?

  36. Hi, could please help me how to find the volume for the date and time stamp.
    Eg: 12:00:00 AM, i need how many no of cases for that day???

  37. i want the date format like 6th August 2015.

    please help to make this possible.

    Asif

    • Hi Asif,

      Open the Format Cells dialog and set the following custom format:
      d"th" mmmm yyyy

    • use as it is like dd/mm/yy

  38. I have the exact same problem. I already tried erasing the excel keys from the windows registry, I have tried to reset excel, and lastly run an office repair but I still cannot make it work, some dates change and some don't even though all of the dates are on the exact same column with the exact same formatting. Did you ever find a way to fix it?

  39. send the video formula

  40. i.e 8.15 to 8:15

    • Babu,

      You can use the "Replace all" option to replace all dots with semicolons. Once you do this, the values will get converted to the time format automatically.

  41. How to convert in the excel from dot to time format.

  42. Using Excel 365.
    I know how to create a Custom Format for dates using the Format Dialog Box. In some mail merge data files I create, I want to use the same date format each time I export the data from Access into Excel.

    I don't want to retype the format each time I use it in a new merge file. Is there a way to save the format in Excel so I select it instead of needing to create it new each time. I want to enter the keystrokes once and reuse the format each time I export my data into Excel to run a merge?

    Thanks,

    • Doug, did you ever figure out a way to save your custom date format? I'm trying to do the same thing. I'd like my custom date/time formatting to be an option I can select rather than have to type it into the custom box every time.
      thanks!

  43. Hi Smita,

    Open the Format Cells dialog, switch to Custom and copy/paste the following format in the Type box:
    d/m/yyyy hh:mm:ss AM/PM

    • Date Amount
      7/1/2015 83098 Avg Amount Weekday Mon
      7/2/2015 70699 1st Week Week Day Tue
      7/3/2015 81769 Weekend Day Wed
      7/4/2015 59426 2nd Week Week Day Thu
      7/5/2015 57018 Weekend Day Fri
      7/6/2015 88446 3rd Week Week Day
      7/7/2015 71574 Weekend Day Weekend Sat
      7/8/2015 79595 4th Week Week Day Sun
      7/9/2015 76862 Weekend Day
      7/10/2015 86939 5th Week Week Day
      7/11/2015 55152 Weekend Day
      7/12/2015 53965
      7/13/2015 75443
      7/14/2015 84495
      7/15/2015 80454
      7/16/2015 75999 Q): - you have to find "week day" and "week end day" Avg for the month.
      7/17/2015 80011 Note:- everything will be automatic, you are not alowed to put anythin manualy.
      7/18/2015 58481 Note:- if you want you can insert new row or column. (try to make simple and easy formula)
      7/19/2015 50221
      7/20/2015 76699
      7/21/2015 84291
      7/22/2015 77361 I need this solution and how
      7/23/2015 75877
      7/24/2015 82523
      7/25/2015 57064
      7/26/2015 56603
      7/27/2015 88283
      7/28/2015 77222
      7/29/2015 85175
      7/30/2015 86431
      7/31/2015 88306

  44. Hi, i am trying all the above possibilities but unable to change format for date example "15/6/2015 09:36:40 AM" pls suggest me

  45. How do you get the following date formats:

    If a formula results 01/15. How can I format to read JA/15.

    Each month will have its own letter combo.

  46. How would I change a format of 20150708 into something like: 8-July-15?

    • Hi Tim,

      Because 20150708 is a number, you need to convert it to a date first. In this case, the best way is to use the Text to Columns wizard, as demonstrated in the following tutorial:
      https://www.ablebits.com/office-addins-blog/excel-convert-text-date/#text-to-columns-wizard

      Since 20150708 appears as "year month day", remember to select the corresponding format YMD in step 5.

      After the conversion, you can apply any date format you want by using the Format Cells dialog.

      • Svetlana thank you for these instructions! Worked for me.

        • Keep these aricelts coming as they've opened many new doors for me.

  47. How To Change date format from 12 may 2014 to 20140512

    • Hi Subhash,

      If you just want to display the date in that way, apply the following custom format: yyyymmdd

      If you want to convert the date to a text string, use the formula like =TEXT(A1,"yyyymmdd") or any other method of converting dates to text.

  48. I have one question on date formats. I have some excel files exported from a web based tool from different locale and some files has date format as dd/mm/yyyy and some has mm/dd/yyyy. Now I Have to export them into a access DB which is throwing error due to diff date formats. As I have over 100 files can some one suggest is there a way to make the date format similar when exporting into access?

  49. I’m looking for some help in excel I’m trying to automatically insert today's date in a cell when certain cells have data but I don’t what that date to change in the future/when I next open Excel

    This is what I have so far.

    =IF(OR(B2>0,H2>0),TODAY(), "FALSE")

    From what I have read if I open the workbook tomorrow it will update all the previously dated cells.

    Has anyone advice or a way to fix this ?

      • Hi Reuben,

        Just a word of caution about using circular formulas in Excel. Yes, that formula works provided that iterative calculations are allowed in a worksheet (Excel Options > Formulas > Calculation options).

        However, using circulate references in Excel has many side-effects. For example, if you accidentally switch to Formula Editing Mode and press Enter without making any changes to the circular formula, it will return a zero.

  50. dear Svetlana,
    Thanks so much for the index. match formula.. but there a error coming in some of the cell where date in not picking (it is taking some unknown date like 00-00-00) . how can i fix that error.please help

    • Hi Jibu,

      Index / Match is very powerful indeed, since I learned it I've practically given up on using Vlookup.

      As for the error, sorry, it's next to impossible to advise anything without seeing your data. If you could post this question on our Excel forum with a sample workbook attached, our support team will try to help.

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 :)