メインコンテンツへスキップ

Excelで日付を数値文字列またはテキスト形式に変換するにはどうすればよいですか?

このチュートリアルでは、Excelで日付を数値またはテキスト形式に変換する際のさまざまなケースを解決するためのいくつかの方法を紹介します。
文書の日付から番号のテキスト1


1.日付をテキストに変換する

このセクションでは、Excelで日付をテキストに変換する方法について説明します。

日付をテキストに変換するには、XNUMXつの数式が必要です。

式:= TEXT(date、” date_format”)

参照: 日付:テキストに変換する日付のセル
date_format: 日付をテキストに変換した後に表示する形式

以下の場合、この式の使い方を説明します。

1.1。XNUMX日付をmm / dd / yyyy形式のテキストに変換する

たとえば、セルA3の日付をmm / dd / yyyyに変換するには、数式を使用します
= TEXT(A3、 "mm / dd / yyyy")
入力します キー
文書の日付から番号のテキスト2

セルA8の日付をdd / mm / yyyyに変換する場合は、次の数式を使用します
= TEXT(A8、 "dd / mm / yyyy")
入力します キー
文書の日付から番号のテキスト3

1.2。XNUMX日付をmmddyyyyまたはddmmyyyy形式のテキストに変換する

セルA13の日付をテキストに変換するが、mmddyyyy形式にする場合は、次の数式を入力します
= TEXT(A13、 "mmddyyyy")
入力します キー
文書の日付から番号のテキスト4

セルA18の日付をddmmyyyy形式のテキストに変換する場合は、次の数式を入力します
= TEXT(A18、 "ddmmyyyy")
入力します キー
文書の日付から番号のテキスト5

1.3。XNUMX日付を他の形式のテキストに変換する

実際、日付を変換するテキスト形式が何であれ、数式の引用符の間に必要な形式を入力するだけです。

日付(A3) 12/23/2019
= TEXT(A3、 "mm-dd-yyyy") = TEXT(A3、 "mm / dd") = TEXT(A3、 "dd") = TEXT(A3、 "d / m / y")
結果 23-12-2019 23/12 23 23/12/19

新しい!
日付ツール

16の新しい日付関数と機能により、Excelでの日付処理に関する90%のタスクが解決されます。

◆現在までの年/月/日/週を加算または減算します。 詳細はこちら.

◆現在までの秒/分/時間を加算または減算します。 もっと見る.

◆XNUMXつの日付の間の週末/平日を数えます。 もっと見る.

◆日付から時間を削除します。 詳細はこちら.

◆時間を小数の秒/ムナイト/時間に変換します。 詳細はこちら.

◆複数の日付形式を米国の標準日付形式に変換します。 詳細はこちら.

完全な機能を備えた30日間の無料トライアル、30日間の理由なしの返金。


2.日付を数値に変換します

このセクションでは、mmddyyyy形式の5桁形式で日付を数値に変換する方法を説明します。

2.1。5日付をXNUMX桁の形式の数値に変換する

日付を5桁の数値に変換する場合は、次のようにします。

1.数値に変換する日付が含まれているセルを右クリックし、右クリックメニューで[ セルの書式設定 共通。
文書の日付から番号のテキスト6

2。 で セルの書式設定 ダイアログ、下 タブ、選択 のペインから カテゴリー.
文書の日付から番号のテキスト7

3。 クリック OK。 選択したセルの日付は、mmddyyyy形式の数値文字列に変換されています。
文書の日付から番号のテキスト8

2.2。XNUMX日付をmmddyyyyまたはddmmyyyy形式の数値に変換する

日付をmmddyyyyまたはddmmyyyy形式の数値文字列に変換する場合は、セルの書式設定機能を適用することもできます。

1.数値に変換する日付が含まれているセルを右クリックし、右クリックメニューで[ セルの書式設定 共通。

2。 の中に セルの書式設定 ダイアログ タブ、選択 カスタム カテゴリー ペイン、次に右側のセクションに移動し、 mmddyyyy テキストボックス。
文書の日付から番号のテキスト9

3。 クリック OK。 選択したセルの日付がmmddyyyy形式の数値文字列に変換されました
文書の日付から番号のテキスト10

日付を他の形式の数値文字列に変換する場合は、以下のリストを参照してください。

日付 2/23/2019
セルをカスタムとしてフォーマットする DDmmyyyy だめい んー yyyymmdd
ディスプレイ 23022019 230219 022019 20190223

3.クリックで日付を月/日/年または他の日付形式に変換します

日付を月、日、年、またはその他の日付形式にすばやく変換する場合は、 日付フォーマットを適用する の有用性 Kutools for Excel 使用するのに良い選択になります。

今すぐマウスの手と頸椎症に別れを告げる

Kutools for Excelソルブの300の高度なツール 視聴者の38%が 数秒で Excel タスクを実行し、何千ものマウス クリックから解放されます。

1500 の作業シナリオに簡単に対処できるため、ソリューションの検索に時間を無駄にする必要がなく、人生を楽しむために十分な時間を確保できます。

毎日 80 人以上の非常に有能な従業員 (もちろんあなたも含む) の生産性が 110000% 向上します。

痛みを伴うフォーミュラやVBAに悩まされることはもうありません。脳を休ませ、楽しい働きをしてください。

フル機能を備えた 30 日間の無料トライアル、理由のない 30 日間の返金。

より良い体はより良い生活を創造します。

Kutools forExcelの無料インストール、以下のようにしてください:

1.他の日付形式に変換する日付を含むセルを選択します。

2。 クリック クツール > フォーマット > 日付フォーマットを適用する.
文書の日付から番号のテキスト11

3。 の中に 日付フォーマットを適用する ダイアログで、使用する日付形式を選択します 日付の書式設定 ペイン、その間、変換された結果は右側にプレビューされます プレビュー ペイン。
文書の日付から番号のテキスト12

4。 クリック Ok、選択した日付は、選択した日付形式に変換されています。
文書の日付から番号のテキスト13

クリックで日付を複数の個性日付形式に変換する

日付の書式を適用する

日付変換に関するその他のヒント


サンプルファイルをダウンロードする

サンプル


推奨される生産性ツール

Officeタブ-MicrosoftOffice2019-2003およびOffice365でのドキュメントのタブブラウジング、編集、管理


オフィスタブ

Kutools for Excel-MicrosoftExcel用の300を超える高度な機能とツールを組み合わせたもの


kutoolsタブ
kutoolspタブ
Comments (40)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hi, I would very much appreciate your help with this formula.How can I switch month, date ,year “030624”in to a number 306042 and put the number in sequential order after the number 306042 like: 3060421
This comment was minimized by the moderator on the site
Hello, how i convert 13.09.2023 to 13.9 my numbers change into dates
This comment was minimized by the moderator on the site
I want to know how many times I went to check the inspection. which I recorded by days.
This comment was minimized by the moderator on the site
Hello. I would very much appreciate your help with this formula. I am wishing to enter the customer's date of birth in cell I3 (custom formatting mm/dd/yy) and would like that date of birth to automatically populate in A3 cell as mmddyy along with adding the First letter from First name cell F3 and First letter from Last name cell G3 in order to have it auto-populate an ID# for our customers in our database.

A3 F3 G3 I3
ID# First Name Last Name Date of Birth
030199AS Adam Smith 03/01/1999

Thank you so much for any help. You have no idea how much I appreciate it. I have been wracking my brain all night to no avail. :(
Shena Bruno
This comment was minimized by the moderator on the site
Hi, Shena, Bruno, in A3, please use the formula =TEXT(I3, mmddyyyy")&LEFT(F3,1)&LEFT(G3,1).
In the formula, it can be explained as two parts:
TEXT(I3, mmddyyyy") will change the value in I3 to this format mmddyyyy
LEFT(F3,1)&LEFT(G3,1) will extract the first character from left side of the strings in cell F3 and G3.
Hope it is helpful.
This comment was minimized by the moderator on the site
I want to convert the day (Tuesday) which is showing up as 1/3/1900 when you click on it because I added a formula on the original data to provide me with Day values. Now I want to use a pivot table to show me the actual days. How do I convert the 1/3/1900 which shows up at Tuesday to just Tuesday? 
This comment was minimized by the moderator on the site
Hi, Cathey, do you want to convert the formula to an actual value? If so, you can use the Paste as Value Only feature in Excel to copy and paste the formulas as values only, or you can use Kutools for Excel's To Actual feature to convert formulas to values.
This comment was minimized by the moderator on the site
Hi, I was trying to copy and past the value but its still showing the date as opposed to the day. 
This comment was minimized by the moderator on the site
Hi, Cathey, do you choose the Paste as Value option in right-click context menu? If you have choosed, try to press Ctrl +1 keys to enable format cells feature and change the cell format to mm/dd/yyyy in Date section.
This comment was minimized by the moderator on the site
Hello. I have the date 26.01.2021 in the cell A1 and in another cell I have the formula: =RIGHT(A1,4) to take the year from that date, and it returns “4526” instead of “2021”. Do you know how to solve it? Thank you very much!
This comment was minimized by the moderator on the site
try to change the format on cell A1 to general or number and then enter the values that you want again to see if it helps. I think your problem is the format issue.
This comment was minimized by the moderator on the site
Hi, I want to convert month to number. For exp: 8 months (date format) ---> "8" as a number or value. I've change its format but I can't count it.Because I want to put it to math format, for exp: 8-2 = 6 (8 from the months). But the 8 doesn't work.Hope you get it. Thank you for helping!
This comment was minimized by the moderator on the site
Hi i have a date in "13/02/2020 11:42:09" format and i want in MM/DD/YYYY format
This comment was minimized by the moderator on the site
Hi, just select the cell then apply the Text to Columns, in the Text to Columns, choose Delimiter > Space > Date(in the Date format, choose DMY) > Finish.
This comment was minimized by the moderator on the site
There is another way, it returns exactly the numeric format that represents the date abbreviated by (/), it would be: '=Substitute(A1;"/";"")
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations