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

Excelでテキストを数値に変更または変換するにはどうすればよいですか?

Accessやテキストファイルなどのソースからデータをインポートする場合、数値がセル内のテキストとしてフォーマットされることがあります。 数値がテキストとしてフォーマットまたは保存されていると、計算と並べ替えがうまくいきません。 MicrosoftExcelでテキストを数値に変換するいくつかの方法があります。

doc-convert-text-to-number6 -2 doc-convert-text-to-number7

Excelのエラーチェックルールを使用してテキストを数値に変換する

Kutools for Excelを使用してテキストを数値にすばやく変換する

特殊貼り付けを使用してテキストを数値に変換する


Excelのエラーチェックルールを使用してテキストを数値に変換する

一般的に、数値がテキストとしてフォーマットまたはセルに格納されると、エラー記号が表示されます doc-text-to-number-7 セルの左上隅にあります。 セルを選択すると、エラーボタンが表示されます ドキュメント変更テキスト番号-5 このセルの前。 エラーボタンをクリックします ドキュメント変更テキスト番号-5、メニューが表示されますので、クリックしてください 数値に変換セル内のテキストを数値に変換するコマンド項目。 スクリーンショットを参照してください:

doc-convert-text-to-number1

次に、テキストとして保存されている数値が数値に変換されています。 そして、他のセルについてもこの方法を繰り返します。

エラーの兆候がない場合 doc-text-to-number-7 セルの左上隅では、 エラーチェック 下のコマンド それに対処するためのタブ。 このようにしてください:

1。 クリック > エラーチェック、スクリーンショットを参照してください:

doc-convert-text-to-number2

2.次に、 エラーチェック ダイアログボックスで、をクリックします。 数値に変換 ボタン。 そして、このボタンを繰り返しクリックして、他のテキストを数字に変換します。

doc-convert-text-to-number3

3.最後のセルテキストが数字に変更されると、すべてのテキストが数字に変換されたことを通知するプロンプトボックスがポップアップ表示されます。

doc-convert-text-to-number4

ただし、変更が必要なデータの大きなブロックがある場合、この方法は面倒で時間がかかります。


Kutools for Excelを使用してテキストを数値にすばやく変換する

あなたがインストールしている場合 Kutools for Excel あなたのコンピュータでは、 セルの力の値 ツールを使用すると、元の形式やスタイルを失うことなく、テキストとして保存されているすべての数値を数値に変換できます。

Kutools for Excel 300以上の便利なExcelツールが含まれています。 30日以内に制限なしで無料でお試しいただけます。 今すぐ入手.

1。 クリック クツール > その他 > セルの力の値…。 スクリーンショットを参照してください:

doc-convert-text-to-number8

2.次に、 セルの力の値 ダイアログボックス。 テキストとして保存されている数値を含む範囲を指定し、 番号へのテキスト オプションを選択します。

doc-convert-text-to-number9

3.次に、をクリックします OK or 申し込む、テキストとして保存されているすべての数値は、選択した範囲の数値に変換されます。

先端: この機能を使用するには、以下をインストールする必要があります Kutools for Excel まずはお願いします クリックしてダウンロードし、30 日間の無料トライアルをご利用ください 今。

特殊貼り付けを使用してテキストを数値に変換する

XNUMX 番目の方法は、Microsoft Excel の [形式を選択して貼り付け] コマンドを使用して計算し、テキストとして保存されている数値を変換する方法です。

1.空白のセルに番号0を入力して、コピーしてください。

2.テキストとして保存されている数値を含む範囲セルを選択します。

3.選択した範囲を右クリックして、 貼り付け コンテキストメニューからのオプション。

4.次に表示されます 貼り付け ダイアログボックスをクリックし、 すべて オプション Add オプション;

doc-convert-text-to-number5

5。 クリック OK、およびテキストとして保存されているすべての数値は数値に変換されます。 スクリーンショットを参照してください:

doc-convert-text-to-number6 -2 doc-convert-text-to-number7
ヒント:
  • テキストを数値に変換した後、範囲内のセルの書式を変更したくない場合は、次のように貼り付けることを選択してください セクションに 貼り付ける オプションを選択します。
  • オペレーティング オプションについては、を選択してください Add オプションまたは 減算 オプションを選択します。
  • この方法の欠点:範囲に空白のセルが含まれていると、すべての空白のセルが番号0で埋められます。
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to translate a number into text in different languages?How to translate a number into text in different languages on Excel ?I use an online service https://numbertowords.org/ and it's not very convenient for me.
Help me, Please!
This comment was minimized by the moderator on the site
Sir i want to change letter into number in excel 2007
i am working in shop where prices are mentioned in code
examle
ioxzz = prices 34800
a = 1
e = 2
i = 3
o = 4
u = 5
v = 6
w = 7
x = 8
y = 9
z = 0
plz send me formula i change these code price into value if any one now
This comment was minimized by the moderator on the site
Kathy, Your formula worked perfectly. This approach is exactly what I needed for my reports. THANK YOU!
This comment was minimized by the moderator on the site
I run a report weekly that requires copying and pasting approximately 7000 rows of data exported from a system. Recently some changes were made so that the numbers were coming out stored as text. The data includes a selection of actual text entries and the rest numbers stored as text. This data gets copied and pasted into a master template which then feeds other sheets/reports, but I needed the numbers to be stored as numbers. Due to the volume of the data and the fact that I'm not the only one performing this task (and some of the others are not Excel savvy) I needed to try and automate this process. I tried the =A1*1 formula and it worked for the numbers but the text I got a #VALUE! error. After much fiddling, I came up with the formula below and it works perfectly! =IF(AND(A1="Yes"),"Yes",IF(AND(A1="Not applicable"),"Not applicable",IF(AND(A1="No"),"No",A1*1)))
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations