Home >Topics >excel >How to change date format to text format

How to change date format to text format

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-01 11:21:0346982browse

Change method: First select the specified cell, enter "=" in the cell, and click the "fx" button; then select the function "text" and click the "OK" button; then in the "Function Parameters" dialog In the box, select the specified cell for the first parameter, enter "YYYYMMDD" in the second parameter input box; finally click the "OK" button.

How to change date format to text format

The operating environment of this tutorial: Windows 7 system, Microsoft Office Excel 2007 version, Dell G3 computer.

As in this example, the content listed in column A is in date format. It is required to convert the date format in column A into text format and finally list it in column B.

How to change date format to text format

Select cell B2, enter the operator symbol = in the cell, and then click the [fx] button.

How to change date format to text format

The [Insert Function] dialog box pops up:

Select the [All] option in [Or Select Category];

In [ Select function [TEXT] in Select Function. This function converts numbers into text according to the specified numerical format, and then click the [OK] button.

How to change date format to text format

As shown below, the [Function Parameters] dialog box pops up:

Move the cursor to the dialog box behind the first parameter and select the worksheet directly Cell A2 in;

Enter [YYYYMMDD] in the dialog box after the second parameter. After setting the parameters, click the [OK] button.

How to change date format to text format

Return to the worksheet, and through the above steps, the content of cell A2 is converted from date format to text format.

How to change date format to text format

Select cell B2, click the left mouse button and drag the mouse to copy the formula of cell A2 to other cells. In this way, all date formats in column A are converted to text format.

How to change date format to text format

Related learning recommendations: excel tutorial

The above is the detailed content of How to change date format to text format. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn