Note: The other languages of the website are Google-translated. Back to English
Mewngofnodi  \/ 
x
or
x
Cofrestru  \/ 
x

or

Sut i newid rhifau negyddol i bositif yn Excel?

Pan fyddwch chi'n prosesu gweithrediadau yn Excel, weithiau, efallai y bydd angen i chi newid y rhifau negyddol i'r rhifau positif neu i'r gwrthwyneb. A oes unrhyw driciau cyflym y gallwch wneud cais am newid rhifau negyddol i bositif? Bydd yr erthygl hon yn cyflwyno'r triciau canlynol i chi ar gyfer trosi'r holl rifau negyddol yn bositif neu i'r gwrthwyneb yn hawdd.


Newid negyddol i rifau positif gyda swyddogaeth arbennig Gludo

Gallwch newid y rhifau negyddol i rifau positif gyda'r camau canlynol:

1. Rhowch rif -1 mewn cell wag, yna dewiswch y gell hon, a gwasgwch Ctrl + C allweddi i'w gopïo.

2. Dewiswch yr holl rifau negyddol yn yr ystod, cliciwch ar y dde, a dewiswch Gludo Arbennig ... o'r ddewislen cyd-destun. Gweler y screenshot:

Nodiadau:
(1) Daliad Ctrl allwedd, gallwch ddewis pob rhif negyddol trwy eu clicio fesul un;
(2) Os oes gennych Kutools for Excel wedi'i osod, gallwch gymhwyso ei Dewiswch Gelloedd Arbennig nodwedd i ddewis yr holl rifau negyddol yn gyflym. Cael Treial Am Ddim!

3. Ac a Gludo arbennig bydd blwch deialog yn cael ei arddangos, dewiswch All opsiwn o Gludo, dewiswch Lluoswch opsiwn o Ymgyrch, Cliciwch OK. Gweler y screenshot:

4. Bydd yr holl rifau negyddol a ddewisir yn cael eu trosi'n rhifau positif. Dileu'r rhif -1 yn ôl yr angen. Gweler y screenshot:

Newid rhifau negyddol yn hawdd i rai positif yn yr ystod benodol yn Excel

O gymharu â thynnu'r arwydd negyddol o gelloedd fesul un â llaw, Kutools for Excel's Newid Arwydd Gwerthoedd nodwedd yn darparu ffordd hynod o hawdd i newid pob rhif negyddol yn gyflym i gadarnhaol wrth ddewis. Treial Am Ddim Nodwedd Llawn 30 diwrnod!
ad trosi negyddol i gadarnhaol

Kutools ar gyfer Excel - Yn cynnwys mwy na 300 o offer defnyddiol ar gyfer Excel. Treial llawn am ddim nodwedd 30 diwrnod, nid oes angen cerdyn credyd! Get It Now

Defnyddio cod VBA i drosi holl rifau negyddol amrediad yn bositif

Fel gweithiwr proffesiynol Excel, gallwch hefyd redeg y cod VBA i newid y rhifau negyddol i rifau positif.

1. Pwyswch allweddi Alt + F11 i agor ffenestr Microsoft Visual Basic for Applications.

2. Bydd ffenestr newydd yn cael ei harddangos. Cliciwch Mewnosod > Modiwlau, yna mewnbwn y codau canlynol yn y modiwl:

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. Yna cliciwch Run botwm neu wasg F5 yn allweddol i redeg y cais, a bydd yr holl rifau negyddol yn cael eu newid i rifau positif. Gweler y screenshot:


Newid rhifau negyddol yn gyflym ac yn hawdd i Kutools ar gyfer Excel

Nid yw'r mwyafrif o ddefnyddwyr Excel eisiau defnyddio cod VBA, a oes unrhyw driciau cyflym ar gyfer newid y rhifau negyddol yn bositif? Kutools am excel yn gallu'ch helpu chi yn hawdd ac yn gyffyrddus i gyflawni hyn.

Kutools ar gyfer Excel - Yn cynnwys mwy na 300 o offer defnyddiol ar gyfer Excel. Treial llawn am ddim nodwedd 30 diwrnod, nid oes angen cerdyn credyd! Get It Now

1. Dewiswch ystod gan gynnwys y rhifau negyddol rydych chi am eu newid, a chlicio Kutools > Cynnwys > Newid Arwydd Gwerthoedd.

2. Gwirio Newid pob gwerth negyddol i bositif dan Ymgyrch, a chliciwch Ok. Gweler y screenshot:

Nawr fe welwch yr holl rifau negyddol yn newid i rifau positif fel y dangosir isod:

Nodyn: Gyda hyn Newid arwydd Gwerthoedd nodwedd, gallwch hefyd drwsio arwyddion negyddol sy'n llusgo, newid pob rhif positif i negyddol, gwrthdroi arwydd yr holl werthoedd a newid yr holl werthoedd negyddol i sero. Cael Treial Am Ddim!

(1) Newid yr holl werthoedd positif yn gyflym i negyddol yn yr ystod benodol:

(2) Gwrthdroi arwydd yr holl werthoedd yn yr ystod benodol yn hawdd:

(3) Newid yr holl werthoedd negyddol yn hawdd i sero yn yr ystod benodol:

(4) Trwsio arwyddion negyddol sy'n llusgo yn yr ystod benodol yn hawdd:

Kutools ar gyfer Excel - Yn cynnwys mwy na 300 o offer defnyddiol ar gyfer Excel. Treial llawn am ddim nodwedd 30 diwrnod, nid oes angen cerdyn credyd! Get It Now


Demo: Newid rhifau negyddol i bositif neu i'r gwrthwyneb gyda Kutools ar gyfer Excel


Kutools ar gyfer Excel yn cynnwys mwy na 300 o offer defnyddiol ar gyfer Excel, am ddim i geisio heb gyfyngiad mewn 30 diwrnod. Dadlwythwch a Threial Am Ddim Nawr!

Erthyglau cymharol:


Yr Offer Cynhyrchedd Swyddfa Gorau

Mae Kutools for Excel yn Datrys y rhan fwyaf o'ch Problemau, ac yn Cynyddu Eich Cynhyrchedd 80%

  • Ailddefnyddio: Mewnosod yn gyflym fformwlâu cymhleth, siartiau ac unrhyw beth rydych chi wedi'i ddefnyddio o'r blaen; Amgryptio Celloedd gyda chyfrinair; Creu Rhestr Bostio ac anfon e-byst ...
  • Bar Fformiwla Gwych (golygu llinellau lluosog o destun a fformiwla yn hawdd); Cynllun Darllen (darllen a golygu nifer fawr o gelloedd yn hawdd); Gludo i'r Ystod Hidlo...
  • Uno Celloedd / Rhesi / Colofnau heb golli Data; Cynnwys Celloedd Hollt; Cyfuno Rhesi / Colofnau Dyblyg... Atal Celloedd Dyblyg; Cymharwch y Meysydd...
  • Dewiswch Dyblyg neu Unigryw Rhesi; Dewiswch Blank Rows (mae pob cell yn wag); Darganfyddiad Gwych a Darganfyddiad Niwlog mewn Llawer o Lyfrau Gwaith; Dewis ar Hap ...
  • Copi Union Celloedd Lluosog heb newid cyfeirnod fformiwla; Auto Creu Cyfeiriadau i Daflenni Lluosog; Mewnosod Bwledi, Blychau Gwirio a mwy ...
  • Testun Detholiad, Ychwanegu Testun, Tynnu yn ôl Swydd, Tynnwch y Gofod; Creu ac Argraffu Subtotals Paging; Trosi rhwng Cynnwys a Sylwadau Celloedd...
  • Hidlo Super (arbed a chymhwyso cynlluniau hidlo i ddalenni eraill); Trefnu Uwch yn ôl mis / wythnos / dydd, amlder a mwy; Hidlo Arbennig gan feiddgar, italig ...
  • Cyfuno Llyfrau Gwaith a Thaflenni Gwaith; Uno Tablau yn seiliedig ar golofnau allweddol; Rhannwch Ddata yn Daflenni Lluosog; Trosi Swp xls, xlsx a PDF...
  • Mwy na 300 o nodweddion pwerus. Yn cefnogi Swyddfa / Excel 2007-2019 a 365. Yn cefnogi pob iaith. Defnydd hawdd yn eich menter neu sefydliad. Nodweddion llawn treial am ddim 30 diwrnod. Gwarant arian yn ôl 60 diwrnod.
tab kte 201905

Mae Tab Office yn Dod â rhyngwyneb Tabbed i'r Swyddfa, a Gwneud Eich Gwaith yn Haws o lawer

  • Galluogi golygu a darllen tabbed yn Word, Excel, PowerPoint, Cyhoeddwr, Mynediad, Visio a Phrosiect.
  • Agor a chreu dogfennau lluosog mewn tabiau newydd o'r un ffenestr, yn hytrach nag mewn ffenestri newydd.
  • Yn cynyddu eich cynhyrchiant 50%, ac yn lleihau cannoedd o gliciau llygoden i chi bob dydd!
gwaelod officetab
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Kevin Alexander · 2 years ago
    =sqrt((numbers)^2)
    • To post as a guest, your comment is unpublished.
      kellytte · 2 years ago
      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.
  • To post as a guest, your comment is unpublished.
    Joel · 4 years ago
    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
    • To post as a guest, your comment is unpublished.
      Roy · 3 years ago
      Thank you so much!
  • To post as a guest, your comment is unpublished.
    Zaki Dawood · 4 years ago
    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.
  • To post as a guest, your comment is unpublished.
    joe calkee-later · 5 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Joe Calkee-later · 5 years ago
    "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!
  • To post as a guest, your comment is unpublished.
    Sachin · 5 years ago
    Click on that Negative Number.
    Right Click & go on Format Cell & click on 1234.
    • To post as a guest, your comment is unpublished.
      joe calkee-later · 5 years ago
      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).
  • To post as a guest, your comment is unpublished.
    Taimoor Ahmed · 5 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Cheryl · 5 years ago
    Just did the copy/paste -1 onto highlighted positive numbers and puff, like magic my job is done here. Big time saver big help
  • To post as a guest, your comment is unpublished.
    kDibbs · 6 years ago
    I've found highlighting the column hitting ctrl F, then replacing - with nothing will remove the -. Its easy
  • To post as a guest, your comment is unpublished.
    Kripesh · 6 years ago
    It is so simple if you multiply -1 with the value or column and drag the formula :)
  • To post as a guest, your comment is unpublished.
    ashish · 6 years ago
    please use formula abs to change negative sign to positive
  • To post as a guest, your comment is unpublished.
    Deepak Jeet · 6 years ago
    Use only formula =abs(-10)=10 so easy...
  • To post as a guest, your comment is unpublished.
    USK · 6 years ago
    AUTHORIZED ALLOWED BALANCE UNIT PRICE AUTHORIZED ALLOWED UNDERRUN OVERRUN
    QUANTITY QUANTITY QUANTITY COST $ TO DATE $ BALANCE $ BALANCE $
    100.00 106.00 -6.00 $0.01 $1.00 $1.06 $0.00 -$0.06
    218.00 210.00 8.00 $0.01 $2.18 $2.10 $0.08 $0.00

    I wanted automatically overrun and underrun cost to be on the respect column. How to do on Excell.
  • To post as a guest, your comment is unpublished.
    Tom · 6 years ago
    Perfect, thanks so much
  • To post as a guest, your comment is unpublished.
    tonyboy · 6 years ago
    very help ful for me and all users
  • To post as a guest, your comment is unpublished.
    ravi · 7 years ago
    pls kindly help me out with this issue as i wanted to covert negative value to positive value by selecting empty cell and copying the negative value and going to paste special and selecting multiply option it is showin the negative value as 0
    kutools option is not availible in 2007 & 2010 in this version
    could you help me to come out to convert the neative value to positive value
    what are the formulaes which are used to convert negative to positive
  • To post as a guest, your comment is unpublished.
    Naseer · 7 years ago
    Dear Excel legend, with the above discreption has been usefull for me, thanks for your excellency.
  • To post as a guest, your comment is unpublished.
    Markg · 7 years ago
    If you want to be able to flip a number to + from - or visa versa you could use *-1 for example =(A1)*-1
  • To post as a guest, your comment is unpublished.
    Russell Berkeley · 7 years ago
    I wanted to show the % as a positive so I used : =(SQRT(A1*A1))/A2
  • To post as a guest, your comment is unpublished.
    Quintin · 7 years ago
    or... in 2 different cells = same number, multiply them with each other and take the square root of it.. =sqrt(A1*B1)
    Neg times neg = positive...
  • To post as a guest, your comment is unpublished.
    Tariq Faheem Khan · 7 years ago
    THANK YOU,THANK YOU,THANK YOU,THANK YOU!!!!!!!!! :roll:
    • To post as a guest, your comment is unpublished.
      Think_simple · 7 years ago
      Make sure all the numbers are present as 'value' and not as formula. Then hit ctrl+F and replace "-" (negative sign) with ""(empty). That should make all the numbers positive.
  • To post as a guest, your comment is unpublished.
    Renée · 7 years ago
    Very helpful, thanks!
  • To post as a guest, your comment is unpublished.
    A.J. · 7 years ago
    or you could just get the absolute value with the formula =abs(cell).
    • To post as a guest, your comment is unpublished.
      Gof · 6 years ago
      A.J. You're a true savior!
    • To post as a guest, your comment is unpublished.
      ravi · 7 years ago
      thank you very much which helps me to resolve the issue raised
      by my colleague
  • To post as a guest, your comment is unpublished.
    Anonymous · 7 years ago
    Thank you!!! Legend.