Note: The other languages of the website are Google-translated. Back to English
登入  \/ 
x
or
x
註冊  \/ 
x

or

如何在Excel中將正數更改為負數?

如何在Excel中快速將所有正數或值更改為負數? 以下方法可以指導您在Excel中快速將所有正數更改為負數。

使用選擇性粘貼功能將正數更改為負數

使用VBA代碼將正數更改為負數

使用Kutools for Excel將正數更改為負數或反之亦然


箭頭藍色右氣泡 使用選擇性粘貼功能將正數更改為負數

您可以使用將正數更改為負數 選擇性粘貼 Excel中的功能。 請執行以下操作。

1。 分接頭號 -1 在空白單元格中並將其複制。

2. 突出顯示要更改的範圍,然後單擊鼠標右鍵並選擇 選擇性粘貼 從上下文菜單中打開 選擇性粘貼 對話框。 看截圖:

3。 然後選擇 全部 選項從 來自 手術.

4。 然後點擊 OK,所有正數已更改為負數。

5。 最後,您可以根據需要刪除數字-1。


將正數更改或轉換為負數,反之亦然

Kutools for Excel改變價值觀 實用程序中,您可以將正數更改為負數,反之亦然,將數字的符號反轉,修正尾隨的負號,等等。 點擊下載Kutools for Excel!


箭頭藍色右氣泡 使用VBA代碼將正數更改為負數

使用VBA代碼,您也可以將正數更改為負數,但是您必須知道如何使用VBA。 請按照以下步驟操作:

1。 選擇您要更改的範圍。

2。 點擊 開發人員 >Visual Basic中,一個新的 適用於應用程序的Microsoft Visual 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-positive-negative-2 按鈕運行代碼,將彈出一個對話框,供您選擇要將正值轉換為負值的範圍。 看截圖:

4。 點擊 Ok,然後將所選範圍內的正值立即轉換為負值。


箭頭藍色右氣泡 使用Kutools for Excel將正數更改為負數或反之亦然

您還可以使用 Kutools for Excel改變價值觀 快速將所有正數更改為負數的工具。

Kutools for Excel : 帶有300多個便捷的Excel加載項,可以在30天內免費試用. 

如果你已經安裝 Kutools for Excel,您可以將正數更改為負,如下所示:

1。 選擇您要更改的範圍。

2。 點擊 Kutools > 內容 > 改變價值觀,請參見屏幕截圖:

3。 而在中 改變價值觀 對話框中選擇 將所有正值更改為負值 選項。

4。 然後點擊 OK or 登記。 並且所有正數都已轉換為負數。

2

保養竅門:要將所有負數更改或轉換為正數,請選擇 將所有負值更改為正值 在對話框中,如下圖所示:

Kutools for Excel的 改變價值觀 還可以 修復尾隨的負號, 將所有負值更改為正值 等等。 有關值更改符號的更多詳細信息,請訪問 更改值的符號功能描述.

點擊下載並立即免費試用Excel的Kutools!


箭頭藍色右氣泡 演示:使用Kutools for Excel將正數更改為負數,反之亦然

Kutools for Excel:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

相關文章:

將負數更改為正數

單元格中值的反向符號

修復單元格中的尾隨負號


最佳辦公效率工具

Kutools for Excel解決了您的大多數問題,並使您的生產率提高了80%

  • 重用: 快速插入 複雜的公式,圖表 以及您以前使用過的任何東西; 加密單元 帶密碼 創建郵件列表 並發送電子郵件...
  • 超級公式欄 (輕鬆編輯多行文本和公式); 閱讀版式 (輕鬆讀取和編輯大量單元格); 粘貼到過濾範圍...
  • 合併單元格/行/列 不會丟失數據; 拆分單元格內容; 合併重複的行/列...防止細胞重複; 比較範圍...
  • 選擇重複或唯一 行; 選擇空白行 (所有單元格都是空的); 超級查找和模糊查找 在許多工作簿中; 隨機選擇...
  • 確切的副本 多個單元格,無需更改公式參考; 自動創建參考 到多張紙; 插入項目符號,複選框等...
  • 提取文字,添加文本,按位置刪除, 刪除空間; 創建和打印分頁小計; 在單元格內容和註釋之間轉換...
  • 超級濾鏡 (將過濾方案保存並應用於其他工作表); 高級排序 按月/週/日,頻率及更多; 特殊過濾器 用粗體,斜體...
  • 結合工作簿和工作表; 根據關鍵列合併表; 將數據分割成多個工作表; 批量轉換xls,xlsx和PDF...
  • 超過300種強大功能。 支持Office / Excel 2007-2019和365。支持所有語言。 在您的企業或組織中輕鬆部署。 完整功能30天免費試用。 60天退款保證。
kte選項卡201905

Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 每天將您的工作效率提高50%,並減少數百次鼠標單擊!
officetab底部
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Excel Dummy · 3 years ago
    oh my gosh, that was so easy and helpful (paste special)
  • To post as a guest, your comment is unpublished.
    Arman · 3 years ago
    Thanks a lots...
  • To post as a guest, your comment is unpublished.
    William Leong · 4 years ago
    Thank you for the guidance. Clear and easy to understand.
  • To post as a guest, your comment is unpublished.
    Vicky · 4 years ago
    Helpful..thanks. would need more help in future..
  • To post as a guest, your comment is unpublished.
    Barnaby · 5 years ago
    Put the figure in brackets
  • To post as a guest, your comment is unpublished.
    SeSe84 · 5 years ago
    AWESOME!! nice, quick, easy.
  • To post as a guest, your comment is unpublished.
    sahdev · 5 years ago
    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.
  • To post as a guest, your comment is unpublished.
    ARAVINDAN · 5 years ago
    Helped at the time of requirement , saved a lot of time
    :-)
  • To post as a guest, your comment is unpublished.
    BookGirlNJ · 5 years ago
    You can also just highlight all the cells, Copy, right-click, Paste Special... and choose Subtract. It changes them all to negative.
  • To post as a guest, your comment is unpublished.
    lee p · 6 years ago
    Just use the following formula:

    =A2*-1

    Works a treat, none of this faffing about with Paste Special and suchlike
  • To post as a guest, your comment is unpublished.
    Sushil Joshi · 6 years ago
    Thank you very very Much... This simple but important formula helped me a lot.... Once again thank you.
  • To post as a guest, your comment is unpublished.
    vinod james · 6 years ago
    Very helpfull thank you very much
  • To post as a guest, your comment is unpublished.
    Raghu · 6 years ago
    Perfect!!

    Thank You!

    Raghu
  • To post as a guest, your comment is unpublished.
    Lynne · 7 years ago
    Excellent instructions with pics...followed perfectly and worked perfectly!
  • To post as a guest, your comment is unpublished.
    Aman · 7 years ago
    Thank you and it was very helpfull.
  • To post as a guest, your comment is unpublished.
    Jay Chivo · 7 years ago
    @Jay Chivo [quote name="Jay Chivo"][quote name="Dominic"]Hello,
    I am trying to make a customer statement in excel.
    I want to have a coloumn for date, description, amount ,currency, exchange rate, Debit , credit and balance.

    I want it that when i put a negative figure on the amount, it multiplies with the exchange rate and posts on the debit automatically. and vice versa for the credit !

    How can i do that in excel please.

    Dominic[/quote]

    Please try to do as follows:

    http://www.extendoffice.com/images/stories/doc-comments/11.png

    http://www.extendoffice.com/images/stories/doc-comments/22.png[/quote]

    In Debit, please use =if(C2>0,"",C2*E3)
    In Credit, please use =if(C2
  • To post as a guest, your comment is unpublished.
    Jay Chivo · 7 years ago
    @Dominic [quote name="Dominic"]Hello,
    I am trying to make a customer statement in excel.
    I want to have a coloumn for date, description, amount ,currency, exchange rate, Debit , credit and balance.

    I want it that when i put a negative figure on the amount, it multiplies with the exchange rate and posts on the debit automatically. and vice versa for the credit !

    How can i do that in excel please.

    Dominic[/quote]

    Please try to do as follows:

    [img]http://www.extendoffice.com/images/stories/doc-comments/11.png[/img]

    [img]http://www.extendoffice.com/images/stories/doc-comments/22.png[/img]
  • To post as a guest, your comment is unpublished.
    Dominic · 7 years ago
    Hello,
    I am trying to make a customer statement in excel.
    I want to have a coloumn for date, description, amount ,currency, exchange rate, Debit , credit and balance.

    I want it that when i put a negative figure on the amount, it multiplies with the exchange rate and posts on the debit automatically. and vice versa for the credit !

    How can i do that in excel please.

    Dominic