How to Convert YYYYMMDD to Date Format in Excel

To convert YYYYMMDD to a date format in Excel, follow these steps:

  1. Open your Excel workbook and select the cell containing the YYYYMMDD value you want to convert.
  2. Click on the "Formulas" tab in the Excel toolbar.
  3. In the "Function Library" group, click on "Date & Time" to open the list of available date-related functions.
  4. Select "TEXT" from the list of functions. This will open the "Function Arguments" dialog box.
  5. In the "Value" field, type the cell reference containing the YYYYMMDD value (e.g., A1).
  6. In the "Format_text" field, type the desired date format in double quotes (e.g., "yyyy-mm-dd" or "mm/dd/yyyy").
  7. Click "OK" to apply the changes. The converted date will be displayed in the selected cell.
  8. To apply the date format to other cells, copy the formula to those cells or use the "Fill" handle to drag and extend the formula.

Example

Assume you have a YYYYMMDD value of 20211031 in cell A1 and you want to convert it to a date format (MM/DD/YYYY) in cell B1.

  1. Click on cell B1.
  2. Type the following formula in the formula bar: =TEXT(A1, "mm/dd/yyyy")
  3. Press Enter.
  4. Cell B1 will now display the date as 10/31/2021, which is the converted date format.
Did you find this useful?