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

Excelでセルの範囲を数値で割る方法は?

場合によっては、Excelのセルの範囲をすばやく変更する必要があります。 たとえば、製品のグループの価格を含むセルの範囲があり、すべての価格を2で除算したいのですが、ここで、セルの範囲を数値ですばやく除算するにはどうすればよいですか?

特殊貼り付け機能を使用して、セルの範囲を数値で除算します

Kutools for Excelを使用して、セルの範囲を数値ですばやく分割する

VBAコードを使用してセルの範囲を数値で除算します


特殊貼り付け機能を使用して、セルの範囲を数値で除算します

たとえば、すべてのセルを15で除算します。 貼り付け Excelの機能では、次の手順でこのタスクを実行できます。

1. 15などの除数番号を空のセルに挿入し、コピーします。

2.すべての数値を15で除算する範囲を強調表示して右クリックし、を選択します。 貼り付け メニューから。

3。 の中に ペーストスペシアlダイアログボックスをクリックします すべて 内のオプション 貼り付ける セクションで、 分割 内のオプション 操作 セクションをクリックし、最後に OK

4.前に入力した番号15を削除します。

これで、セルの範囲が15でまとめて分割されました。 スクリーンショットを参照してください:

Excelで、範囲内のすべてのセルを特定の数ですばやく分割します

クツール > その他 > 操作を選択します。 Kutools for Excel's 操作ツール Excelで、指定した範囲内のすべてのセルを特定の数ですばやく分割するのに役立ちます。
今すぐKutoolsfor Excelの全機能を30日間無料でダウンロードしてください!


Kutools for Excelを使用して、セルの範囲を数値ですばやく分割する

おそらく、「形式を選択して貼り付け」の方法は少し難しいと思いますが、この作業に簡単で迅速に対処する方法はありますか?はい 操作 の特徴 Kutools for Excel 数秒以内にセル範囲を数値で割るのに役立ちます。

注: これを適用する 操作 機能を使用するには、まずダウンロードしてインストールする必要があります Kutools for Excel.

1.特定の数値で除算する数値の範囲を選択します。 次にクリックします クツール > その他 > 操作、スクリーンショットを参照してください:

3。 の中に 操作ツール ダイアログボックスで ディビジョン セクションに 操作 ボックスに、次のような除数番号を入力します 15 セクションに オペランド ボックス。 そして、あなたはからの結果を見ることができます プレビュー ペイン。 そして最後に OK or 申し込む ボタン。 スクリーンショットを参照してください:

注: 数式も作成したい場合はチェックしてください 数式を作成する オプション。 選択したセルに数式が含まれていて、数式の計算結果を分割したくない場合は、チェックしてください。 数式セルをスキップする オプションを選択します。
先端: この機能を使用するには、以下をインストールする必要があります Kutools for Excel まずはお願いします クリックしてダウンロードし、30 日間の無料トライアルをご利用ください 今。

VBAコードを使用してセルの範囲を数値で除算します

VBAコードを使用すると、範囲セルを数値で自動的に分割することもできます。

1.数値で除算する範囲を選択します。

2。 クリック Developer > ビジュアルベーシック、新しいです アプリケーション用のMicrosoftVisual Basic ウィンドウが表示されたら、クリックします インセット > モジュール、次に次のコードを入力します モジュール:

VBA: セル範囲を数値で除算する

Sub DivisionNum()
'Updateby20140128
Dim Rng As Range
Dim WorkRng As Range
Dim xNum As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xNum = Application.InputBox("Division num", xTitleId, Type:=1)
For Each Rng In WorkRng
    Rng.Value = Rng.Value / xNum
Next
End Sub

3。 次に、をクリックします doc-分割-5 ボタンを押してコードを実行します。 ポップアップダイアログボックスで、特定の数値で除算する数値の範囲を選択し、[ OK ボタン。 スクリーンショットを参照してください:

4. XNUMX番目のポップアップダイアログボックスで、除数番号を入力し、[OK]ボタンをクリックします。 スクリーンショットを参照してください:

これで、選択した範囲のすべての数値が数値15で除算されます。


デモ: Kutools for Excel を使用してセル範囲を数値ですばやく分割します


Kutools for Excel: 300 を超える便利なツールをすぐに利用できます。 機能制限なしの 30 日間の無料トライアルを今すぐ始めてください。 今すぐダウンロード!
Comments (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Habrá alguna forma de hacer esto mismo pero en Google Sheets ??
This comment was minimized by the moderator on the site
how to use page break in large excel file
This comment was minimized by the moderator on the site
Very helpful -- thank you very much!
This comment was minimized by the moderator on the site
Hello Sir, I have data in excel and it is all mixed up. Every 60 cells are having one person details and we want this to be copied in separate sheet. The copying is to be row into column.
This comment was minimized by the moderator on the site
thank you, after multiple fruitless or incomprehensible explanations, YOURS WORKED easily!
This comment was minimized by the moderator on the site
Thanks... This is really useful
This comment was minimized by the moderator on the site
Very clearly explained. Saved me a lot of time. Thanks a bunch!
This comment was minimized by the moderator on the site
I just wanted to take the time to thank you for uploading this. I would've spent hours dividing all my figures.
This comment was minimized by the moderator on the site
Some cells are not divided even after selecting the complete section
This comment was minimized by the moderator on the site
Thanks for sharing! Helped a lot!
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