Salt la conținutul principal

Cum se schimbă numerele negative în pozitive în Excel?

Când prelucrați operațiuni în Excel, uneori, poate fi necesar să schimbați numerele negative în numere pozitive sau invers. Există trucuri rapide pe care le puteți aplica pentru schimbarea numerelor negative în pozitive? Acest articol vă va prezenta următoarele trucuri pentru a converti cu ușurință toate numerele negative în pozitiv sau invers.

Schimbați numerele negative în pozitive cu funcția specială Lipire

Schimbați cu ușurință numerele negative în pozitive cu Kutools pentru Excel

Utilizarea codului VBA pentru a converti toate numerele negative ale unui interval la pozitiv


Schimbați numerele negative în pozitive cu funcția specială Lipire

Puteți schimba numerele negative în numere pozitive urmând pașii următori:

1. Introdu numarul -1 într-o celulă goală, apoi selectați această celulă și apăsați Ctrl + C chei pentru copiere.

2. Selectați toate numerele negative din interval, faceți clic dreapta și selectați Lipiți special ... din meniul contextual. Vedeți captura de ecran:

note:
(1) Deținere Ctrl , puteți selecta toate numerele negative făcând clic pe ele unul câte unul;
(2) Dacă aveți instalat Kutools pentru Excel, îl puteți aplica Selectați celule speciale pentru a selecta rapid toate numerele negative. Aveți o încercare gratuită!

3. Și a Lipiți special se va afișa caseta de dialog, selectați TOATE opțiune din Pastă, Selectați Multiplica opțiune din Ziua Operației, Faceți clic pe OK. Vedeți captura de ecran:

4. Toate numerele negative selectate vor fi convertite în numere pozitive. Ștergeți numărul -1 după cum aveți nevoie. Vedeți captura de ecran:

Schimbați cu ușurință numerele negative în pozitive în intervalul specificat în Excel

Comparând cu eliminarea semnului negativ din celule unul câte unul manual, Kutools pentru Excel Schimbați semnul valorilor caracteristica oferă o modalitate extrem de ușoară de a schimba rapid toate numerele negative în pozitive în selecție. Obțineți acum o perioadă de încercare gratuită cu funcții complete de 30 de zile!

anunțul convertește negativ în pozitiv

Kutools pentru Excel - Supercharge Excel cu peste 300 de instrumente esențiale. Bucurați-vă de o încercare GRATUITĂ completă de 30 de zile, fără card de credit necesar! Ia-L Acum


Schimbați rapid și ușor numerele negative în pozitive cu Kutools pentru Excel

Majoritatea utilizatorilor Excel nu doresc să utilizeze codul VBA, există trucuri rapide pentru a schimba numerele negative în pozitive? Kutools pentru excel vă poate ajuta ușor și confortabil să realizați acest lucru.

Kutools pentru Excel - Supercharge Excel cu peste 300 de instrumente esențiale. Bucurați-vă de o încercare GRATUITĂ completă de 30 de zile, fără card de credit necesar! Ia-L Acum

1. Selectați un interval care include numerele negative pe care doriți să le modificați și faceți clic Kutools > Conţinut > Schimbați semnul valorilor.

2. Verificați Schimbați toate valorile negative în pozitive în Ziua Operației, și faceți clic pe Ok. Vedeți captura de ecran:

Acum veți vedea că toate numerele negative se schimbă în numere pozitive așa cum se arată mai jos:

notițe: Cu asta Schimbați semnul valorilor caracteristică, puteți, de asemenea, să remediați semnele negative finale, să schimbați toate numerele pozitive în negative, să inversați semnul tuturor valorilor și să schimbați toate valorile negative la zero. Aveți o încercare gratuită!

(1) Schimbați rapid toate valorile pozitive la negative în intervalul specificat:

(2) Inversați cu ușurință semnul tuturor valorilor din intervalul specificat:

(3) Schimbați cu ușurință toate valorile negative la zero în intervalul specificat:

(4) Remediați cu ușurință semnele negative finale în intervalul specificat:

varful: Pentru a utiliza această caracteristică, ar trebui să instalați Kutools pentru Excel întâi, te rog faceți clic pentru a descărca și aveți o probă gratuită de 30 de zile acum.

Utilizarea codului VBA pentru a converti toate numerele negative ale unui interval la pozitiv

Ca profesionist Excel, puteți rula codul VBA pentru a schimba numerele negative în numere pozitive.

1. Apăsați tastele Alt + F11 pentru a deschide fereastra Microsoft Visual Basic pentru aplicații.

2. Va fi afișată o nouă fereastră. Clic Insera > Module, apoi introduceți următoarele coduri în modul:

Sub Positive
Dim Cel As Range
For Each Cel In Selection
If IsNumeric(Cel.Value) Then
Cel.Value = Abs(Cel.Value)
End If
Next Cel
End Sub

3. Apoi apasa Alerga sau apăsați F5 tasta pentru a rula aplicația și toate numerele negative vor fi schimbate în numere pozitive. Vedeți captura de ecran:


Demo: Schimbați numerele negative în pozitive sau invers cu Kutools pentru Excel


Kutools pentru Excel: Peste 300 de instrumente la îndemână la îndemână! Începeți astăzi perioada de încercare gratuită de 30 de zile, fără limitări ale funcțiilor. Descarcă acum!
Comments (31)
Rated 4.5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=sqrt((numbers)^2)
This comment was minimized by the moderator on the site
Hi Kevin Alexander,
The SQRT function is a good way. However, if you want to convert a negative number to positive by excel formula/function, you can use the ABS function directly, =ABS(your_negative_number). For example, =ABS(-5) will return 5.
This comment was minimized by the moderator on the site
I chose a simpler solution, no formulas needed. First, to preserve the original data in case I goofed up, I copied the raw CMM measurement data in Worksheet 1 to Worksheet 2. Next, In Worksheet 2, I selected the multiple disconnected blocks of cells which had some negative numbers I wanted to convert to positive numbers. Then, I simply used the “replace” function to replace the minus sign with … nothing! It worked perfectly, and was clean; no formulas, no conditional formatting, and the raw unaltered data remained on Worksheet 1 as my backup resource. Applying a formula is not always the answer. I love using Excel to do data logging, tracking, analysis, and to answer so many math questions, both at work and personally. At work, I measure parts, and the machine measures distances to the left as negative numbers, and not just a positive number distance. Other measurements, though, are at a position of being on a datum X or Y, at zero. Those measurements will be off zero in the positive or negative direction, and I need hose occasional negative numbers to remain negative. That meant I had to select a partial column here, another there, and skip ones that measured around a zero target, then apply that “negative sign removal) to only those measurements that were negatives, but did not have zero as the target dimension. It is probably confusing until actually seeing the spreadsheet I was fixing, but the method I chose worked perfectly, and had no formula involved, just a clean minus-sign removal done as a “replace” edit. Thank you, Joel
This comment was minimized by the moderator on the site
Thank you so much!
This comment was minimized by the moderator on the site
use this formula (A1 is a cell reference in which you want to convert) =max(A1,-A1) What this formula does is to choose the highest number, and positive will normally be the highest number.
This comment was minimized by the moderator on the site
Taimoor, Your solution requires adding a column of formulas. The easiest way is to use "find and replace", as I explained here on 4/20/16. Enter a dash in the first line, nothing in the second, and replace as many of them as you want ("find next" or "replace all"). Not "complexed" at all. Your method creates clutter on the spreadsheet with a new column of formulas that requires the first column of negative numbers to remain, although it is now just a sub-component of the formulas column. Then, if you want to clean up the spreadsheet, you would have to hide that first column of negative numbers. Messy. No thank you. You say other people's methods are "complexed", but yours is not, IMHO, much, if any, of an improvement.
This comment was minimized by the moderator on the site
"Formulas? We don' need no ... " Click on Find and Replace. Enter a dash in the "Find What" section. Leave the "Replace With" section blank. Click "Replace All" and BAM! Negativity" gone. If you want to play it safe, and aren't sure about whether or not you will muck up your spreadsheet, copy Sheet 1 to Sheet 2, then perform the Find and Replace action with Sheet 2. If you like it, copy what you want and paste it back into Sheet 1. Safe as can be!
This comment was minimized by the moderator on the site
Click on that Negative Number. Right Click & go on Format Cell & click on 1234.
This comment was minimized by the moderator on the site
Sachin, when you go to "Format Cell, and do as you suggested, that does not change the value of the number, it will only change the format, the color. And you left out a couple steps: 1. what tab to click on (number?), and 2. what category in that tab do you choose, then 3. which style option do you select (which still will not change the VALUE of the number, only the appearance (negative numbers showing in red, for example).
This comment was minimized by the moderator on the site
It's so simple. Don't know why it's been explained in such a complexed manner. Suppose you have a column A with following values: Cell A: A2= -4000 A3= -5000 A4= -8000 Apply the formula in cell B2 =A2*(-1) And drag it down till the last value of column A. Done!
This comment was minimized by the moderator on the site
Just did the copy/paste -1 onto highlighted positive numbers and puff, like magic my job is done here. Big time saver big help
This comment was minimized by the moderator on the site
I've found highlighting the column hitting ctrl F, then replacing - with nothing will remove the -. Its easy
This comment was minimized by the moderator on the site
It is so simple if you multiply -1 with the value or column and drag the formula :)
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations