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

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

Excelで操作を処理しているときに、負の数を正の数に、またはその逆に変更する必要がある場合があります。 負の数を正の数に変更するために適用できる簡単なトリックはありますか? この記事では、すべての負の数を正の数に、またはその逆に簡単に変換するための次のトリックを紹介します。

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

Kutools for Excelを使用して、負の数を正の数に簡単に変更できます

VBAコードを使用して、範囲のすべての負の数を正に変換する


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

次の手順で、負の数を正の数に変更できます。

1。 番号を入力してください -1 空白のセルで、このセルを選択し、を押します Ctrlキー + C キーを押してコピーします。

2。 範囲内のすべての負の数を選択し、右クリックして、 特別に貼り付け... コンテキストメニューから。 スクリーンショットを参照してください:

注意:
(1)開催 Ctrlキー キーを押すと、すべての負の数をXNUMXつずつクリックして選択できます。
(2)Kutools for Excelがインストールされている場合は、それを適用できます 特殊セルを選択 すべての負の数をすばやく選択する機能。 無料トライアルを!

3。 そして、 特別なペースト ダイアログボックスが表示されますので、 すべて からのオプション 貼り付ける選択 掛ける からのオプション 操作、クリック OK。 スクリーンショットを参照してください:

4。 選択したすべての負の数は正の数に変換されます。 必要に応じて番号-1を削除します。 スクリーンショットを参照してください:

Excelで指定した範囲で負の数を正の数に簡単に変更できます

セルから負の符号をXNUMXつずつ手動で削除するのと比較すると、Kutools for Excel 値の符号を変更する この機能は、選択時にすべての負の数を正の数にすばやく変更する非常に簡単な方法を提供します。 今すぐ 30 日間の全機能を無料でお試しください!

広告は負から正に変換します

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手


Kutools for Excelを使用して、負の数を正の数にすばやく簡単に変更できます

ほとんどのExcelユーザーはVBAコードを使用したくないのですが、負の数を正の数に変更するための簡単なトリックはありますか? エクセルのためのKutools これを達成するために簡単かつ快適にあなたを助けることができます。

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手

1。 変更する負の数を含む範囲を選択し、をクリックします クツール > コンテンツ > 値の符号を変更する.

2。 チェック すべての負の値を正に変更します操作、クリック Ok。 スクリーンショットを参照してください:

これで、以下に示すように、すべての負の数が正の数に変わることがわかります。

Note: これとともに 値の符号を変更する この機能では、末尾の負の符号を修正したり、すべての正の数を負に変更したり、すべての値の符号を逆にしたり、すべての負の値をゼロに変更したりすることもできます。 無料トライアルを!

(1)指定された範囲内のすべての正の値を負にすばやく変更します。

(2)指定された範囲内のすべての値の符号を簡単に反転します。

(3)指定された範囲内のすべての負の値を簡単にゼロに変更します。

(4)指定された範囲の末尾の負の符号を簡単に修正します。

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

VBAコードを使用して、範囲のすべての負の数を正に変換する

Excelの専門家として、VBAコードを実行して、負の数を正の数に変更することもできます。

1。 Alt + F11キーを押して、Microsoft Visual Basic forApplicationsウィンドウを開きます。

2。 新しいウィンドウが表示されます。 クリック インセット > モジュール、次にモジュールに次のコードを入力します。

Sub Positive
Dim Cel As Range
For Each Cel In Selection
If IsNumeric(Cel.Value) Then
Cel.Value = Abs(Cel.Value)
End If
Next Cel
End Sub

3。 次に、をクリックします ラン ボタンまたはプレス F5 アプリケーションを実行するためのキー。すべての負の数は正の数に変更されます。 スクリーンショットを参照してください:


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


Kutools for Excel: 300 を超える便利なツールをすぐに利用できます。 機能制限なしの 30 日間の無料トライアルを今すぐ始めてください。 今すぐダウンロード!
Comments (31)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=sqrt((numbers)^2)
This comment was minimized by the moderator on the site
Hi Kevin Alexander,
The SQRT function is a good way. However, if you want to convert a negative number to positive by excel formula/function, you can use the ABS function directly, =ABS(your_negative_number). For example, =ABS(-5) will return 5.
This comment was minimized by the moderator on the site
I chose a simpler solution, no formulas needed. First, to preserve the original data in case I goofed up, I copied the raw CMM measurement data in Worksheet 1 to Worksheet 2. Next, In Worksheet 2, I selected the multiple disconnected blocks of cells which had some negative numbers I wanted to convert to positive numbers. Then, I simply used the “replace” function to replace the minus sign with … nothing! It worked perfectly, and was clean; no formulas, no conditional formatting, and the raw unaltered data remained on Worksheet 1 as my backup resource. Applying a formula is not always the answer. I love using Excel to do data logging, tracking, analysis, and to answer so many math questions, both at work and personally. At work, I measure parts, and the machine measures distances to the left as negative numbers, and not just a positive number distance. Other measurements, though, are at a position of being on a datum X or Y, at zero. Those measurements will be off zero in the positive or negative direction, and I need hose occasional negative numbers to remain negative. That meant I had to select a partial column here, another there, and skip ones that measured around a zero target, then apply that “negative sign removal) to only those measurements that were negatives, but did not have zero as the target dimension. It is probably confusing until actually seeing the spreadsheet I was fixing, but the method I chose worked perfectly, and had no formula involved, just a clean minus-sign removal done as a “replace” edit. Thank you, Joel
This comment was minimized by the moderator on the site
Thank you so much!
This comment was minimized by the moderator on the site
use this formula (A1 is a cell reference in which you want to convert) =max(A1,-A1) What this formula does is to choose the highest number, and positive will normally be the highest number.
This comment was minimized by the moderator on the site
Taimoor, Your solution requires adding a column of formulas. The easiest way is to use "find and replace", as I explained here on 4/20/16. Enter a dash in the first line, nothing in the second, and replace as many of them as you want ("find next" or "replace all"). Not "complexed" at all. Your method creates clutter on the spreadsheet with a new column of formulas that requires the first column of negative numbers to remain, although it is now just a sub-component of the formulas column. Then, if you want to clean up the spreadsheet, you would have to hide that first column of negative numbers. Messy. No thank you. You say other people's methods are "complexed", but yours is not, IMHO, much, if any, of an improvement.
This comment was minimized by the moderator on the site
"Formulas? We don' need no ... " Click on Find and Replace. Enter a dash in the "Find What" section. Leave the "Replace With" section blank. Click "Replace All" and BAM! Negativity" gone. If you want to play it safe, and aren't sure about whether or not you will muck up your spreadsheet, copy Sheet 1 to Sheet 2, then perform the Find and Replace action with Sheet 2. If you like it, copy what you want and paste it back into Sheet 1. Safe as can be!
This comment was minimized by the moderator on the site
Click on that Negative Number. Right Click & go on Format Cell & click on 1234.
This comment was minimized by the moderator on the site
Sachin, when you go to "Format Cell, and do as you suggested, that does not change the value of the number, it will only change the format, the color. And you left out a couple steps: 1. what tab to click on (number?), and 2. what category in that tab do you choose, then 3. which style option do you select (which still will not change the VALUE of the number, only the appearance (negative numbers showing in red, for example).
This comment was minimized by the moderator on the site
It's so simple. Don't know why it's been explained in such a complexed manner. Suppose you have a column A with following values: Cell A: A2= -4000 A3= -5000 A4= -8000 Apply the formula in cell B2 =A2*(-1) And drag it down till the last value of column A. Done!
This comment was minimized by the moderator on the site
Just did the copy/paste -1 onto highlighted positive numbers and puff, like magic my job is done here. Big time saver big help
This comment was minimized by the moderator on the site
I've found highlighting the column hitting ctrl F, then replacing - with nothing will remove the -. Its easy
This comment was minimized by the moderator on the site
It is so simple if you multiply -1 with the value or column and drag the formula :)
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