Ga naar hoofdinhoud

Hoe tekens van waarden in cellen in Excel om te keren?

Wanneer we Excel gebruiken, zijn er zowel positieve als negatieve getallen in een werkblad. Stel dat we de positieve getallen in negatief moeten veranderen en vice versa. We kunnen ze natuurlijk handmatig wijzigen, maar als er honderden nummers moeten worden gewijzigd, is deze methode geen goede keuze. Zijn er snelle trucs om dit probleem op te lossen?

Keer het teken van waarden in cellen om met de functie Plakken speciaal

Keer het teken van waarden in cellen snel om met Kutools voor Excel

Keer het teken van waarden in cellen om met VBA-code


Keer het teken van waarden in cellen om met de functie Plakken speciaal

We kunnen het teken van waarden in cellen omkeren met de plakken speciaal functie in Excel, doe dan als volgt:

1. Tik op nummer -1 in een lege cel en kopieer deze.

2. Selecteer het bereik waarvan u het teken van waarden wilt omkeren, klik met de rechtermuisknop en kies plakken speciaal. Zie screenshot:

3. In het plakken speciaal dialoogvenster, klik Alles opties van pasta en Vermenigvuldigen optie van Werking. Zie screenshot:

4. Dan klikken OKen alle tekens van de cijfers in de reeks zijn omgekeerd.

5. Verwijder het nummer -1 zoals je nodig hebt.


Draai het teken van alle cijfers tegelijk om

Kutools for Excel's Verander Sign of Values hulpprogramma kan u helpen om de positieve getallen in negatief te veranderen en vice versa, het kan u ook helpen het teken van de waarden om te keren en het negatieve negatieve teken naar normaal te herstellen.  Klik om Kutools voor Excel te downloaden!

Kutools for Excel: met meer dan 300 handige Excel-invoegtoepassingen, gratis te proberen zonder beperking in 30 dagen. Download en probeer nu gratis!


Keer het teken van waarden in cellen snel om met Kutools voor Excel

Met kunnen we het teken van waarden snel omkeren Verander Sign of Values kenmerk van Kutools for Excel.

Kutools for Excel : met meer dan 300 handige Excel-invoegtoepassingen, gratis te proberen zonder beperking in 30 dagen

Na het installeren van Kutools for Excelgaat u als volgt te werk:

1. Selecteer het bereik waarvan u de tekens van de cijfers wilt omkeren.

2. Klikken Kutools > Content > Verander Sign of Values…, Zie screenshot:

3. In de Verander Sign of Values dialoogvenster, controleer de Keer het teken van alle waarden om, zie screenshot:

doc-reverse-tekens-van-waarden5

4. En klik vervolgens op OK or Solliciteer. Alle tekens van de cijfers zijn omgekeerd.

Tips:

Keer het teken van waarden in cellen om met VBA-code

We kunnen ook een VBA-code gebruiken om het teken van waarden in cellen om te keren. Maar we moeten weten hoe we de VBA het ding kunnen laten doen. We kunnen het doen als de volgende stappen:

1. Selecteer het bereik waarvoor u het teken van waarden in cellen wilt omkeren.

2. Klikken Ontwikkelaar > Visual Basic in Excel, een nieuw Microsoft Visual Basic voor applicaties venster wordt weergegeven, of gebruik de sneltoetsen (Alt + F11) om het te activeren. Dan klikken Invoegen > Moduleen kopieer en plak vervolgens de volgende VBA-code:

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

3. Dan klikken doc-reverse-teken-6 knop om de code uit te voeren. En het teken van cijfers in het geselecteerde bereik is meteen omgekeerd.


Keer het teken van waarden in cellen om met Kutools voor Excel


Kutools for Excel: Ruim 300 handige tools binnen handbereik! Start vandaag nog uw gratis proefperiode van 30 dagen zonder functiebeperkingen. Nu downloaden!
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