Vai al contenuto principale

Come invertire i segni dei valori nelle celle in Excel?

Quando usiamo Excel, ci sono numeri positivi e negativi in ​​un foglio di lavoro. Supponiamo di dover cambiare i numeri positivi in ​​negativi e viceversa. Certo, possiamo cambiarli manualmente, ma se ci sono centinaia di numeri da modificare, questo metodo non è una buona scelta. Esistono trucchi rapidi per risolvere questo problema?

Invertire il segno dei valori nelle celle con la funzione Incolla speciale

Inverti rapidamente il segno dei valori nelle celle con Kutools per Excel

Invertire il segno dei valori nelle celle con codice VBA


Invertire il segno dei valori nelle celle con la funzione Incolla speciale

Possiamo invertire il segno dei valori nelle celle con l'estensione Incolla speciale funzione in Excel, eseguire le seguenti operazioni:

1. Tocca il numero -1 in una cella vuota e copiarlo.

2. Seleziona l'intervallo in cui desideri invertire il segno dei valori, fai clic con il pulsante destro del mouse e scegli Incolla speciale. Vedi screenshot:

3. Nel Incolla speciale finestra di dialogo, fare clic Tutti opzioni da Incolla ed Moltiplicare opzione da Funzionamento. Vedi screenshot:

4. Quindi fare clic OKe tutti i segni dei numeri nell'intervallo sono stati invertiti.

5. Elimina il numero -1 di cui hai bisogno.


Inverti il ​​segno di tutti i numeri contemporaneamente

Kutools for Excel'S Cambia segno di valori L'utilità può aiutarti a cambiare i numeri positivi in ​​negativi e viceversa, può anche aiutarti a invertire il segno dei valori e correggere il segno negativo finale alla normalità.  Fai clic per scaricare Kutools per Excel!

Kutools for Excel: con più di 300 utili componenti aggiuntivi di Excel, liberi di provare senza limitazioni in 30 giorni. Scarica e prova gratuita ora!


Inverti rapidamente il segno dei valori nelle celle con Kutools per Excel

Possiamo invertire rapidamente il segno dei valori con Cambia segno di valori caratteristica di Kutools for Excel.

Kutools for Excel : con oltre 300 utili componenti aggiuntivi di Excel, da provare gratuitamente senza limitazioni in 30 giorni

Dopo l'installazione Kutools for Excel, si prega di fare come segue:

1. Seleziona l'intervallo in cui desideri invertire i segni dei numeri.

2. Clic Kutools > Contenuti > Cambia segno di valori..., vedi screenshot:

3. Nel Cambia segno di valori finestra di dialogo, selezionare Inverti il ​​segno di tutti i valori, vedi screenshot:

doc-reverse-segni-di-valori 5

4. E poi clicca OK or APPLICA. Tutti i segni dei numeri sono stati invertiti.

Suggerimenti::

Invertire il segno dei valori nelle celle con codice VBA

Inoltre, possiamo utilizzare un codice VBA per invertire il segno dei valori nelle celle. Ma dobbiamo sapere come fare in modo che VBA faccia la cosa. Possiamo farlo come i seguenti passaggi:

1. Seleziona l'intervallo in cui desideri invertire il segno dei valori nelle celle.

2. Clic Costruttori > Visual Basic in Excel, un nuovo Microsoft Visual Basic per le applicazioni verrà visualizzata la finestra o utilizzando i tasti di scelta rapida (Alt + F11) per attivarlo. Quindi fare clic su inserire > Moduli, quindi copia e incolla il seguente codice VBA:

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

3. Quindi fare clic su doc-segno-inverso-6 pulsante per eseguire il codice. E il segno dei numeri nell'intervallo selezionato è stato invertito immediatamente.


Invertire il segno dei valori nelle celle con Kutools per Excel


Kutools for Excel: Oltre 300 strumenti utili a portata di mano! Inizia oggi la tua prova gratuita di 30 giorni senza limitazioni di funzionalità. Scarica ora!
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