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的 改变价值观 还可以 修复尾随的负号, 将所有负值更改为正值 等等。 有关值更改符号的更多详细信息,请访问 更改值的符号功能描述.

单击此处立即下载并免费试用Kutools for Excel!


箭头蓝色右气泡 演示:使用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 · 7 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