انتقل إلى المحتوى الرئيسي

كيفية تغيير الأرقام السالبة إلى الإيجابية في Excel؟

عندما تقوم بمعالجة العمليات في Excel ، في بعض الأحيان ، قد تحتاج إلى تغيير الأرقام السالبة إلى أرقام موجبة أو العكس. هل هناك أي حيل سريعة يمكنك تطبيقها لتغيير الأرقام السالبة إلى الإيجابية؟ ستقدم لك هذه المقالة الحيل التالية لتحويل جميع الأرقام السالبة إلى موجبة أو العكس بسهولة.

تغيير الأرقام السلبية إلى الموجبة باستخدام لصق وظيفة خاصة

يمكنك بسهولة تغيير الأرقام السالبة إلى إيجابية باستخدام Kutools for Excel

استخدام كود فبا لتحويل جميع الأرقام السالبة للنطاق إلى موجبة


تغيير الأرقام السلبية إلى الموجبة باستخدام لصق وظيفة خاصة

يمكنك تغيير الأرقام السالبة إلى أرقام موجبة باتباع الخطوات التالية:

1. أدخل رقم -1 في خلية فارغة ، ثم حدد هذه الخلية ، واضغط على CTRL + C مفاتيح لنسخه.

2. حدد جميع الأرقام السالبة في النطاق ، وانقر بزر الماوس الأيمن ، وحدد لصق خاص ... من قائمة السياق. انظر لقطة الشاشة:

الملاحظات:
(1) القابضة CTRL مفتاح ، يمكنك تحديد جميع الأرقام السالبة بالنقر فوقها واحدًا تلو الآخر ؛
(2) إذا كان لديك Kutools for Excel مثبتًا ، فيمكنك تطبيقه حدد خلايا خاصة ميزة لتحديد جميع الأرقام السالبة بسرعة. احصل على نسخة تجريبية مجانية!

3. و لصق خاص سيتم عرض مربع الحوار ، حدد الكل الخيار من لصق، حدد ضرب الخيار من عملية، اضغط هنا OK. انظر لقطة الشاشة:

4. سيتم تحويل جميع الأرقام السالبة المحددة إلى أرقام موجبة. احذف الرقم -1 حسب حاجتك. انظر لقطة الشاشة:

يمكنك بسهولة تغيير الأرقام السالبة إلى موجبة في النطاق المحدد في Excel

مقارنة بإزالة العلامة السلبية من الخلايا واحدة تلو الأخرى يدويًا ، Kutools for Excel's تغيير علامة القيم توفر الميزة طريقة سهلة للغاية لتغيير جميع الأرقام السالبة بسرعة إلى إيجابية في الاختيار. احصل على نسخة تجريبية مجانية كاملة الميزات لمدة 30 يومًا الآن!

إعلان تحويل سلبي إلى إيجابي

كوتولس ل إكسيل - شحن برنامج Excel بأكثر من 300 أداة أساسية. استمتع بتجربة مجانية كاملة المواصفات لمدة 30 يومًا دون الحاجة إلى بطاقة ائتمان! احصل عليه الآن


قم بتغيير الأرقام السالبة إلى إيجابية بسرعة وسهولة باستخدام Kutools for Excel

لا يرغب معظم مستخدمي Excel في استخدام رمز VBA ، فهل هناك أي حيل سريعة لتغيير الأرقام السالبة إلى أرقام إيجابية؟ كوتولس اكسل يمكن أن تساعدك بسهولة ويسر لتحقيق ذلك.

كوتولس ل إكسيل - شحن برنامج Excel بأكثر من 300 أداة أساسية. استمتع بتجربة مجانية كاملة المواصفات لمدة 30 يومًا دون الحاجة إلى بطاقة ائتمان! احصل عليه الآن

1. حدد نطاقًا يشتمل على الأرقام السالبة التي تريد تغييرها ، وانقر فوق كوتولس > وصف المنتج > تغيير علامة القيم.

2. الاختيار قم بتغيير كل القيم السالبة إلى موجبة مع عملية، ثم انقر Ok. انظر لقطة الشاشة:

الآن سترى جميع الأرقام السالبة تتغير إلى أرقام موجبة كما هو موضح أدناه:

ملاحظات: مع هذا تغيير علامة القيم ميزة ، يمكنك أيضًا إصلاح العلامات السالبة الزائدة ، وتغيير جميع الأرقام الموجبة إلى سلبية ، وعكس علامة جميع القيم وتغيير جميع القيم السلبية إلى الصفر. احصل على نسخة تجريبية مجانية!

(1) قم بتغيير جميع القيم الموجبة بسرعة إلى قيمة سالبة في النطاق المحدد:

(2) عكس بسهولة علامة جميع القيم في النطاق المحدد:

(3) قم بتغيير جميع القيم السالبة بسهولة إلى الصفر في النطاق المحدد:

(4) قم بإصلاح العلامات السلبية اللاحقة بسهولة في النطاق المحدد:

معلومه- سرية: لاستخدام هذه الميزة، يجب عليك تثبيت كوتولس ل إكسيل أولا من فضلك انقر للتنزيل واحصل على نسخة تجريبية مجانية مدتها 30 يومًا الآن.

استخدام كود فبا لتحويل جميع الأرقام السالبة للنطاق إلى موجبة

بصفتك محترفًا في 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 for 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