Přejít k hlavnímu obsahu

Jak zvrátit známky hodnot v buňkách v aplikaci Excel?

Když použijeme Excel, jsou v listu kladná i záporná čísla. Předpokládejme, že musíme změnit kladná čísla na záporná a naopak. Samozřejmě je můžeme změnit ručně, ale pokud je třeba změnit stovky čísel, tato metoda není dobrá volba. Existují nějaké rychlé triky, jak tento problém vyřešit?

Obrátit znaménko hodnot v buňkách pomocí funkce Vložit jinak

Rychle obraťte znaménko hodnot v buňkách pomocí Kutools pro Excel

Obrátit znaménko hodnot v buňkách pomocí kódu VBA


Obrátit znaménko hodnot v buňkách pomocí funkce Vložit jinak

Znak hodnot v buňkách můžeme zvrátit pomocí Vložit jinak funkce v aplikaci Excel, postupujte takto:

1. Klepněte na číslo -1 do prázdné buňky a zkopírujte ji.

2. Vyberte rozsah, který chcete obrátit na znaménko hodnot, klikněte pravým tlačítkem a vyberte Vložit jinak. Viz snímek obrazovky:

3. v Vložit jinak , klepněte na tlačítko OK Zobrazit vše možnosti od Pasta a Násobit možnost od Operace. Viz snímek obrazovky:

4. Pak klikněte na tlačítko OKa všechny znaky čísel v rozsahu byly obráceny.

5. Odstraňte číslo -1, jak potřebujete.


Obrátit znaménko všech čísel najednou

Kutools pro ExcelJe Změnit znaménko hodnot obslužný program vám může pomoci změnit kladná čísla na záporná a naopak, může vám také pomoci obrátit znaménko hodnot a opravit koncové záporné znaménko na normální.  Klikněte a stáhněte si Kutools pro Excel!

Kutools pro Excel: s více než 300 praktickými doplňky aplikace Excel, můžete vyzkoušet bez omezení do 30 dnů. Stáhněte si a vyzkoušejte zdarma hned teď!


Rychle obraťte znaménko hodnot v buňkách pomocí Kutools pro Excel

Znak hodnot můžeme rychle zvrátit pomocí Změnit znaménko hodnot vlastnost Kutools pro Excel.

Kutools pro Excel : s více než 300 praktickými doplňky Excel, můžete si je vyzkoušet bez omezení do 30 dnů

Po instalaci Kutools pro Excel, postupujte následovně:

1. Vyberte rozsah, ve kterém chcete obrátit znaménka čísel.

2, klikněte Kutools > Obsah > Změnit znaménko hodnot…, Viz screenshot:

3. V Změnit znaménko hodnot V dialogovém okně zaškrtněte Obrátit znaménko všech hodnot, viz screenshot:

doc-reverzní známky hodnot5

4. A pak klikněte na tlačítko OK or Podat žádost. Všechny znaky čísel byly obráceny.

Tipy:

Obrátit znaménko hodnot v buňkách pomocí kódu VBA

Můžeme také použít kód VBA k obrácení znaménka hodnot v buňkách. Ale musíme vědět, jak přimět VBA, aby to udělal. Můžeme to udělat jako následující kroky:

1. Vyberte rozsah, který chcete zvrátit znaménko hodnot v buňkách.

2, klikněte Vývojka > Visual Basic v aplikaci Excel, nový Microsoft Visual Basic pro aplikace se zobrazí okno nebo pomocí klávesových zkratek (Alt + F11) aktivovat. Poté klikněte Vložit > Modula potom zkopírujte a vložte následující kód VBA:

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

3. Pak klikněte na tlačítko doc-reverzní znamení-6 tlačítko pro spuštění kódu. A znaménko čísel ve vybraném rozsahu bylo obráceno najednou.


Obraťte znaménko hodnot v buňkách pomocí Kutools pro Excel


Kutools pro Excel: Více než 300 užitečných nástrojů na dosah ruky! Začněte svou 30denní bezplatnou zkušební verzi bez omezení funkcí ještě dnes. Stáhnout nyní!
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