ไปยังเนื้อหาหลัก

วิธีย้อนกลับสัญญาณของค่าในเซลล์ใน Excel

เมื่อเราใช้ excel มีทั้งตัวเลขบวกและลบในแผ่นงาน สมมติว่าเราจำเป็นต้องเปลี่ยนจำนวนบวกเป็นลบและในทางกลับกัน แน่นอนว่าเราสามารถเปลี่ยนได้ด้วยตนเอง แต่หากต้องเปลี่ยนตัวเลขหลายร้อยตัววิธีนี้ก็ไม่ใช่ทางเลือกที่ดี มีเคล็ดลับง่ายๆในการแก้ปัญหานี้หรือไม่?

ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วยฟังก์ชัน Paste Special

ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วย Kutools for Excel อย่างรวดเร็ว

ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วยรหัส VBA


ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วยฟังก์ชัน Paste Special

เราสามารถย้อนกลับเครื่องหมายของค่าในเซลล์ด้วยเครื่องหมาย วางแบบพิเศษ ใน Excel โปรดทำดังนี้:

1. แตะหมายเลข -1 ในเซลล์ว่างแล้วคัดลอก

2. เลือกช่วงที่คุณต้องการย้อนกลับสัญลักษณ์ของค่าคลิกขวาแล้วเลือก วางแบบพิเศษ. ดูภาพหน้าจอ:

3. ตัว Vortex Indicator ได้ถูกนำเสนอลงในนิตยสาร วางแบบพิเศษ คลิกตกลง ทั้งหมด ตัวเลือกจาก พาสต้า และ คูณ ตัวเลือกจาก การดำเนินการ. ดูภาพหน้าจอ:

4. จากนั้นคลิก OKและสัญญาณทั้งหมดของตัวเลขในช่วงนั้นถูกกลับรายการ

5. ลบหมายเลข -1 ตามที่คุณต้องการ


ย้อนกลับเครื่องหมายของตัวเลขทั้งหมดในครั้งเดียว

Kutools สำหรับ Excel's เปลี่ยนสัญลักษณ์ของค่า ยูทิลิตี้สามารถช่วยคุณในการเปลี่ยนตัวเลขบวกเป็นลบและในทางกลับกันมันยังสามารถช่วยคุณในการย้อนกลับสัญลักษณ์ของค่าและแก้ไขเครื่องหมายลบต่อท้ายให้เป็นปกติ  คลิกเพื่อดาวน์โหลด Kutools for Excel!

Kutools สำหรับ Excel: ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการให้ทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน ดาวน์โหลดและทดลองใช้ฟรีทันที!


ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วย Kutools for Excel อย่างรวดเร็ว

เราสามารถย้อนกลับเครื่องหมายของค่าได้อย่างรวดเร็วด้วย เปลี่ยนสัญลักษณ์ของค่า คุณลักษณะของ Kutools สำหรับ Excel.

Kutools สำหรับ Excel : ด้วย Add-in ของ Excel ที่มีประโยชน์มากกว่า 300 รายการทดลองใช้ฟรีโดยไม่มีข้อ จำกัด ใน 30 วัน

หลังจากการติดตั้ง Kutools สำหรับ Excelโปรดดำเนินการดังนี้:

1. เลือกช่วงที่คุณต้องการกลับสัญญาณของตัวเลข

2. คลิก Kutools > คอนเทนต์ > เปลี่ยนสัญลักษณ์ของค่า…, ดูภาพหน้าจอ:

3. ใน เปลี่ยนสัญลักษณ์ของค่า ให้ทำเครื่องหมายที่ ย้อนกลับเครื่องหมายของค่าทั้งหมดดูภาพหน้าจอ:

doc-reverse-sign-of-values ​​5

4. จากนั้นคลิก OK or ใช้. สัญญาณทั้งหมดของตัวเลขได้กลับด้านแล้ว

เคล็ดลับ:
  • หากต้องการใช้คุณลักษณะนี้ คุณควรติดตั้ง Kutools สำหรับ Excel ก่อนอื่นโปรด คลิกเพื่อดาวน์โหลดและทดลองใช้ฟรี 30 วัน ขณะนี้
  • พื้นที่ เปลี่ยนสัญลักษณ์ของค่า ของ Kutools สำหรับ Excel ได้เช่นกัน แก้ไขสัญญาณเชิงลบต่อท้าย, Cเปลี่ยนค่าลบทั้งหมดให้เป็นบวก และ เปลี่ยนค่าบวกทั้งหมดเป็นค่าลบ. สำหรับข้อมูลเพิ่มเติมเกี่ยวกับ เปลี่ยนสัญลักษณ์ของค่ากรุณาเยี่ยมชม เปลี่ยนคำอธิบายคุณลักษณะ Sign of Values.

ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วยรหัส VBA

นอกจากนี้เราสามารถใช้รหัส VBA เพื่อย้อนกลับเครื่องหมายของค่าในเซลล์ แต่เราต้องรู้วิธีรับ VBA เพื่อทำสิ่งนั้น สามารถทำได้ตามขั้นตอนต่อไปนี้:

1. เลือกช่วงที่คุณต้องการย้อนกลับสัญลักษณ์ของค่าในเซลล์

2. คลิก ผู้พัฒนา > ของ Visual Basic ใน Excel ไฟล์ Microsoft Visual Basic สำหรับแอปพลิเคชัน หน้าต่างจะปรากฏขึ้นหรือใช้ปุ่มลัด (Alt + F11) เพื่อเปิดใช้งาน จากนั้นคลิก สิ่งที่ใส่เข้าไป > โมดูลแล้วคัดลอกและวางรหัส VBA ต่อไปนี้:

Sub Convert()
Dim C As Range
For Each C In Selection
C.Value = -C.Value
Next C
End Sub

3. จากนั้นคลิก doc-ย้อนกลับ-ลงชื่อ-6 ปุ่มเพื่อเรียกใช้รหัส และเครื่องหมายของตัวเลขในช่วงที่เลือกจะถูกกลับรายการพร้อมกัน


ย้อนกลับเครื่องหมายของค่าในเซลล์ด้วย Kutools for Excel


Kutools สำหรับ Excel: เครื่องมือแสนสะดวกกว่า 300 รายการอยู่แค่เพียงปลายนิ้วสัมผัส! เริ่มทดลองใช้ฟรี 30 วันโดยไม่มีข้อจำกัดด้านฟีเจอร์ตั้งแต่วันนี้ Download Now!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Tried to do the developer option and I get a:
Run-time error '438':
Object doesn't support this property or method


Any ideas?
This comment was minimized by the moderator on the site
I have a mac version of excel and the paste special doesn't allow me to do that :-/ dying.
This comment was minimized by the moderator on the site
Yes. Yes it does. Enter "-1" in a cell. Copy that cell. Highlight all the values whose sign you wish to flip. Opt-Cmd-V opens paste special dialog box, choose multiply from the Operations section (I also find it beneficial to choose "values" in the Paste Section rather than "all" to preserve any formatting).
This comment was minimized by the moderator on the site
Thx Bro for the useful thread
This comment was minimized by the moderator on the site
Thank you so much, Sir. You helped me a lot. I hope I can return the favor. Thank you so much.
This comment was minimized by the moderator on the site
thank you i had just posted in the SUN system with the srong month. this has helped me to reverse all the 195 entries within 7 minutes...
This comment was minimized by the moderator on the site
From my perspective it seems there is no foolproof way to simply remove a negative sign: Multiplying by -1 can screw up subsequent cell values if each one is using a formula. VBA requires saving in a different format. Kutools requires you to download/purchase an add-on. You can format a column to show negatives as positives, but it turns the font Red.
This comment was minimized by the moderator on the site
I'm looking to add multiple $ to cells with formulas example (=((I29+AM29+AV29+BH29+CG29+CP29+DS29+AJ78+BA91+BU91+CO91+DK78)-(V25+EF25+EN25))/4 Is there away to do this quickly...
This comment was minimized by the moderator on the site
This is tangentially related. I have a workbook in Excel 2013 that's baffling me. I get a #VALUE! error with the formula =SUM(8-(F4:F23)) in cell F2. When I reverse that, =SUM(F4:F23)-8), I get (#) where (#) is the negative of what I expect. But when I use #Jonathon's formula with my working formula in it, I again get the #VALUE! error. How is this #VALUE! error even possible? What I want is for F2 to be a positive number that's the leftover balance when F4:F24 is less that 8.
This comment was minimized by the moderator on the site
Michaelq please use abs function. It turns negative and positive values both to positive one.
This comment was minimized by the moderator on the site
Very cool trick. I imported transactions from BofA and AMEX and of course they use different signs for debits. One multiply paste later and I'm all fixed up. Thanks.
This comment was minimized by the moderator on the site
In a New Cell simply Multiply a the Cell-value by -1. It will reverse automatically. No need to perform such a long procedures. e.g if the value in B1 is -25 then in Cell C1 enter the formula : =B1 * -1 :-)
This comment was minimized by the moderator on the site
OMG THANK YOU SOOO MUCH. I have been looking all over the place for a way to simply do this. I was trying to find a way to have Excel take the SUM of a group of numbers and make it negative so that it would automatically do all the rest of the math on the sheet correctly. If anyone else is looking to do something similar, using the information I just obtained from #JAVED KHAN, enter the following function (this is just an example, change the cell references to match the ranges you are needing to use) =SUM(B2:H2) * -1 This will now take the sum of the range and automatically change the value to a negative number.
This comment was minimized by the moderator on the site
You sir have just blown my mind with your Excel Ninja ways, I tip my hat to you sir :lol:
This comment was minimized by the moderator on the site
The goal was to change an entire range of cells easily, not just a single cell. The paste multiply method is basically a one step procedure to do just that.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations