Μετάβαση στο κύριο περιεχόμενο

Πώς να αλλάξετε αρνητικούς αριθμούς σε θετικούς στο Excel;

Όταν επεξεργάζεστε λειτουργίες στο Excel, μερικές φορές, ίσως χρειαστεί να αλλάξετε τους αρνητικούς αριθμούς σε θετικούς αριθμούς ή το αντίστροφο. Υπάρχουν γρήγορα κόλπα που μπορείτε να εφαρμόσετε για την αλλαγή αρνητικών αριθμών σε θετικά; Αυτό το άρθρο θα σας παρουσιάσει τα ακόλουθα κόλπα για τη μετατροπή όλων των αρνητικών αριθμών σε θετικά ή αντίστροφα εύκολα.

Αλλαγή αρνητικών σε θετικών αριθμών με ειδική λειτουργία επικόλλησης

Αλλάξτε εύκολα αρνητικούς αριθμούς σε θετικούς με το Kutools για Excel

Χρήση κωδικού VBA για τη μετατροπή όλων των αρνητικών αριθμών μιας περιοχής σε θετική


Αλλαγή αρνητικών σε θετικών αριθμών με ειδική λειτουργία επικόλλησης

Μπορείτε να αλλάξετε τους αρνητικούς αριθμούς σε θετικούς αριθμούς με τα ακόλουθα βήματα:

1. Εισάγετε αριθμό -1 σε ένα κενό κελί, μετά επιλέξτε αυτό το κελί και πατήστε Ctrl + C κλειδιά για την αντιγραφή του.

2. Επιλέξτε όλους τους αρνητικούς αριθμούς στο εύρος, κάντε δεξί κλικ και επιλέξτε Επικόλληση ειδικού ... από το μενού περιβάλλοντος. Δείτε το στιγμιότυπο οθόνης:

:
(1) Εκμετάλλευση Ctrl κλειδί, μπορείτε να επιλέξετε όλους τους αρνητικούς αριθμούς κάνοντας κλικ σε αυτούς ένα προς ένα.
(2) Εάν έχετε εγκαταστήσει το Kutools για Excel, μπορείτε να το εφαρμόσετε Επιλέξτε Ειδικά κελιά δυνατότητα γρήγορης επιλογής όλων των αρνητικών αριθμών. Κάντε μια δωρεάν δοκιμή!

3. Και ένα Επικόλληση ειδική θα εμφανιστεί το πλαίσιο διαλόγου, επιλέξτε Όλα επιλογή από ζυμαρικά, Επιλέξτε Πολλαπλασιάστε επιλογή από Επιχείρηση, Κλίκ OK. Δείτε το στιγμιότυπο οθόνης:

4. Όλοι οι επιλεγμένοι αρνητικοί αριθμοί θα μετατραπούν σε θετικούς αριθμούς. Διαγράψτε τον αριθμό -1 όπως χρειάζεστε. Δείτε το στιγμιότυπο οθόνης:

Αλλάξτε εύκολα αρνητικούς αριθμούς σε θετικούς στο καθορισμένο εύρος στο Excel

Σε σύγκριση με την κατάργηση του αρνητικού σημείου από τα κελιά ένα προς ένα χειροκίνητα, το Kutools for Excel's Αλλαγή σημείου τιμών Η δυνατότητα παρέχει έναν εξαιρετικά εύκολο τρόπο γρήγορης αλλαγής όλων των αρνητικών αριθμών σε θετικούς στην επιλογή. Αποκτήστε μια δωρεάν δοκιμή 30 ημερών με πλήρεις δυνατότητες τώρα!

η διαφήμιση μετατρέπεται αρνητική σε θετική

Kutools για Excel - Supercharge Excel με πάνω από 300 βασικά εργαλεία. Απολαύστε μια ΔΩΡΕΑΝ δοκιμή 30 ημερών με πλήρεις δυνατότητες χωρίς να απαιτείται πιστωτική κάρτα! Παρ'το Τώρα


Αλλάξτε γρήγορα και εύκολα αρνητικούς αριθμούς σε θετικούς με το Kutools για Excel

Οι περισσότεροι χρήστες του Excel δεν θέλουν να χρησιμοποιήσουν τον κώδικα VBA, υπάρχουν γρήγορα κόλπα για την αλλαγή των αρνητικών αριθμών σε θετικά; Kutools για το Excel μπορεί να σας βοηθήσει εύκολα και άνετα για να το επιτύχετε.

Kutools για Excel - Supercharge Excel με πάνω από 300 βασικά εργαλεία. Απολαύστε μια ΔΩΡΕΑΝ δοκιμή 30 ημερών με πλήρεις δυνατότητες χωρίς να απαιτείται πιστωτική κάρτα! Παρ'το Τώρα

1. Επιλέξτε ένα εύρος συμπεριλαμβανομένων των αρνητικών αριθμών που θέλετε να αλλάξετε και κάντε κλικ στο Kutools > Περιεχόμενο > Αλλαγή σημείου τιμών.

2. Ελέγξτε Αλλάξτε όλες τις αρνητικές τιμές σε θετικές υπό Επιχείρηση, και κάντε κλικ στο κουμπί Ok. Δείτε το στιγμιότυπο οθόνης:

Τώρα θα δείτε όλους τους αρνητικούς αριθμούς να αλλάζουν σε θετικούς αριθμούς όπως φαίνεται παρακάτω:

Note: Με αυτό Αλλαγή σημείου τιμών δυνατότητα, μπορείτε επίσης να διορθώσετε τα αρνητικά σημάδια, να αλλάξετε όλους τους θετικούς αριθμούς σε αρνητικά, να αντιστρέψετε το σύμβολο όλων των τιμών και να αλλάξετε όλες τις αρνητικές τιμές στο μηδέν. Κάντε μια δωρεάν δοκιμή!

(1) Αλλάξτε γρήγορα όλες τις θετικές τιμές σε αρνητικές στο καθορισμένο εύρος:

(2) Αντιστρέψτε εύκολα το σύμβολο όλων των τιμών στο καθορισμένο εύρος:

(3) Αλλάξτε εύκολα όλες τις αρνητικές τιμές στο μηδέν στο καθορισμένο εύρος:

(4) Διορθώστε εύκολα τα αρνητικά σημάδια στο καθορισμένο εύρος:

Άκρο: Για να χρησιμοποιήσετε αυτήν τη δυνατότητα, θα πρέπει να εγκαταστήσετε Kutools για Excel πρώτα, παρακαλώ κάντε κλικ για λήψη και έχετε μια δωρεάν δοκιμή 30 ημερών τώρα.

Χρήση κωδικού VBA για τη μετατροπή όλων των αρνητικών αριθμών μιας περιοχής σε θετική

Ως επαγγελματίας του Excel, μπορείτε επίσης να εκτελέσετε τον κωδικό VBA για να αλλάξετε τους αρνητικούς αριθμούς σε θετικούς αριθμούς.

1. Πατήστε τα πλήκτρα Alt + F11 για να ανοίξετε το παράθυρο της Microsoft Visual Basic for Applications.

2. Θα εμφανιστεί ένα νέο παράθυρο. Κάντε κλικ Κύριο θέμα > Μονάδα μέτρησηςκαι, στη συνέχεια, εισαγάγετε τους ακόλουθους κωδικούς στη λειτουργική μονάδα:

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. Στη συνέχεια κάντε κλικ στο κουμπί τρέξιμο πατήστε το κουμπί F5 κλειδί για την εκτέλεση της εφαρμογής και όλοι οι αρνητικοί αριθμοί θα αλλάξουν σε θετικούς αριθμούς. Δείτε το στιγμιότυπο οθόνης:


Επίδειξη: Αλλάξτε αρνητικούς αριθμούς σε θετικούς ή αντίστροφα με το Kutools για Excel


Kutools για Excel: Πάνω από 300 εύχρηστα εργαλεία στα χέρια σας! Ξεκινήστε τη δωρεάν δοκιμή 30 ημερών χωρίς περιορισμούς δυνατοτήτων σήμερα. Κατεβάστε τώρα!
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