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

Excelで正の数を負の数に変更するにはどうすればよいですか?

Excelですべての正の数または値を負にすばやく変更するにはどうすればよいですか? 次の方法は、Excelですべての正の数を負にすばやく変更するためのガイドになります。

2

特殊貼り付け機能で正の数を負に変更する

Kutools for Excelを使用して、正の数を負の数に、またはその逆に変更します

VBAコードで正の数を負に変更する


特殊貼り付け機能で正の数を負に変更する

で正の数を負に変更できます 貼り付け Excelで機能します。 次のようにしてください。

1。 タップ番号 -1 空白のセルに入れてコピーします。

2. 変更する範囲を強調表示し、右クリックして選択します 貼り付け コンテキストメニューから 貼り付け ダイアログボックス。 スクリーンショットを参照してください:

3。 次に、 すべて オプションから 貼り付ける, 掛ける 操作.

4。 そして、 OK、すべての正の数が負の数に変更されました。

5。 最後に、必要に応じて番号-1を削除できます。


正の数を負の数に、またはその逆に変更または変換します。

Kutools for Excelさん 値の符号を変更する ユーティリティでは、正の数を負に、またはその逆に変更したり、数の符号を逆にしたり、末尾の負の符号を修正したりすることができます。 クリックしてKutoolsfor Excelをダウンロードしてください!


Kutools for Excelを使用して、正の数を負の数に、またはその逆に変更します

使用することもできます Kutools for Excelさん 値の符号を変更する すべての正の数を負にすばやく変更するツール。

Kutools for Excel : 300以上の便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます. 

あなたがインストールしている場合 Kutools for Excel、次のように正の数を負に変更できます。

1。 変更する範囲を選択します。

2に設定します。 OK をクリックします。 クツール > コンテンツ > 値の符号を変更する、スクリーンショットを参照してください:

3。 とで 値の符号を変更する ダイアログボックスで すべての正の値を負に変更します オプションを選択します。

4。 次に、をクリックします OK or 申し込む。 そして、すべての正の数は負の数に変換されています。

2
ヒント:
  • この機能を使用するには、以下をインストールする必要があります Kutools for Excel まずはお願いします クリックしてダウンロードし、30 日間の無料トライアルをご利用ください 今。
  • すべての負の数値を正の数値に変更または変換するには、選択してください すべての負の値を正に変更します 次のスクリーンショットが示すように、ダイアログボックスで:


    Excel用のKutools 値の符号を変更する こともできます 末尾の負の符号を修正, すべての負の値を正に変更します 等々。 値の符号の変更の詳細については、次のWebサイトをご覧ください。 値の符号の変更機能の説明.

VBAコードで正の数を負に変更する

VBAコードを使用して、正の数を負の数に変更することもできますが、VBAの使用方法を知っている必要があります。 次の手順で実行してください。

1。 変更する範囲を選択します。

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

Sub ChangeToNegative()
'Updateby Extendoffice
Dim rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Set WorkRng = WorkRng.SpecialCells(xlCellTypeConstants, xlNumbers)
For Each rng In WorkRng
    xValue = rng.Value
    If xValue > 0 Then
        rng.Value = xValue * -1
    End If
Next
End Sub

3.  doc-ポジティブ-ネガティブ-2 ボタンをクリックしてコードを実行すると、正の値を負に変換する範囲を選択するためのダイアログが表示されます。 スクリーンショットを参照してください:

4に設定します。 OK をクリックします。 Ok、次に、選択した範囲の正の値が一度に負に変換されます。


デモ:Kutools for Excelを使用して、正の数を負の数に、またはその逆に変更します


Kutools for Excel: 300 を超える便利なツールをすぐに利用できます。 機能制限なしの 30 日間の無料トライアルを今すぐ始めてください。 今すぐダウンロード!
Comments (21)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
thank u, now i succesfully edit my data
Rated 5 out of 5
This comment was minimized by the moderator on the site
WAW is amazing
This comment was minimized by the moderator on the site
thank u very much
This comment was minimized by the moderator on the site
oh my gosh, that was so easy and helpful (paste special)
This comment was minimized by the moderator on the site
Thanks a lots...
This comment was minimized by the moderator on the site
Thank you for the guidance. Clear and easy to understand.
This comment was minimized by the moderator on the site
Helpful..thanks. would need more help in future..
This comment was minimized by the moderator on the site
Put the figure in brackets
This comment was minimized by the moderator on the site
AWESOME!! nice, quick, easy.
This comment was minimized by the moderator on the site
I need to add an tool for typing like word in vb.net 2003, which should be called on demand like button click or placed i form. Also user should be able to create auto correct option int it. Basiclly user should be able to type, format and auto correct text. Your feedback will be of great help.
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