- To post as a guest, your comment is unpublished.· 2 years agoHi 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.
Kako spremeniti negativne številke na pozitivne v Excelu?
Med obdelavo operacij v Excelu boste včasih morda morali negativne številke spremeniti v pozitivne številke ali obratno. Ali lahko uporabite kakšen hiter trik za spreminjanje negativnih števil v pozitivna? Ta članek vam bo predstavil naslednje trike za enostavno pretvorbo vseh negativnih števil v pozitivna ali obratno.
- Spremenite negativne v pozitivne številke s posebno funkcijo Prilepi;
- Uporaba kode VBA za pretvorbo vseh negativnih števil obsega v pozitivne;
- Z Kutools za Excel enostavno spremenite negativna števila v pozitivna.
Negativna števila lahko spremenite v pozitivna z naslednjimi koraki:
1. Vnesite številko -1 v prazno celico, nato izberite to celico in pritisnite Ctrl + C tipke za kopiranje.
2. Izberite vsa negativna števila v obsegu, z desno miškino tipko kliknite in izberite Prilepi posebno ... iz kontekstnega menija. Oglejte si posnetek zaslona:
(1) Holding Ctrl tipko, lahko izberete vsa negativna števila, tako da jih kliknete eno za drugo;
(2) Če imate nameščen Kutools za Excel, ga lahko uporabite Izberite Posebne celice funkcija za hitro izbiro vseh negativnih števil. Brezplačno preskusite!
3. In a Prilepite posebno prikaže se pogovorno okno, izberite vsi možnost od testeninetako, da izberete Pomnožite možnost od operacija, Kliknite OK. Oglejte si posnetek zaslona:
4. Vsa izbrana negativna števila bodo pretvorjena v pozitivna števila. Po potrebi izbrišite številko -1. Oglejte si posnetek zaslona:
Kot strokovnjak za Excel lahko tudi zaženete kodo VBA, da negativne številke spremenite v pozitivne številke.
1. Pritisnite tipki Alt + F11, da odprete okno Microsoft Visual Basic for Applications.
2. Prikazalo se bo novo okno. Kliknite Vstavi > Moduli, nato v modul vnesite naslednje kode:
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. Nato kliknite Run ali pritisnite F5 tipka za zagon aplikacije in vsa negativna števila bodo spremenjena v pozitivna. Oglejte si posnetek zaslona:
Večina uporabnikov Excela ne želi uporabljati kode VBA, ali obstajajo hitri triki za spreminjanje negativnih števil v pozitivne? Kutools za excel vam lahko pomaga enostavno in udobno doseči to.
1. Izberite obseg, vključno z negativnimi števili, ki jih želite spremeniti, in kliknite Kutools > vsebina > Spremeni znak vrednot.
2. Check Spremenite vse negativne vrednosti na pozitivne pod operacijain kliknite Ok. Oglejte si posnetek zaslona:
Zdaj boste videli, da se vsa negativna števila spremenijo v pozitivna, kot je prikazano spodaj:
Opombe: S tem Spremeni znak vrednosti funkcijo, lahko tudi popravite negativne znake, spremenite vsa pozitivna števila v negativna, obrnete predznak vseh vrednosti in spremenite vse negativne vrednosti na nič. Brezplačno preskusite!
(1) Hitro spremenite vse pozitivne vrednosti na negativne v določenem obsegu:
(2) Preprosto obrnite znak vseh vrednosti v določenem obsegu:
(3) Preprosto spremenite vse negativne vrednosti na nič v določenem obsegu:
(4) Preprosto popravite negativne znake v določenem obsegu:
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 2 years ago=sqrt((numbers)^2)
- To post as a guest, your comment is unpublished.· 4 years agoI 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.
- To post as a guest, your comment is unpublished.· 4 years agoThank you so much!
- To post as a guest, your comment is unpublished.· 4 years agouse this formula (A1 is a cell reference in which you want to convert)
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.· 5 years agoTaimoor, 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.· 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.· 5 years agoClick on that Negative Number.
Right Click & go on Format Cell & click on 1234.
- To post as a guest, your comment is unpublished.· 5 years agoSachin, 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.· 6 years agoIt'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:
Apply the formula in cell B2 =A2*(-1)
And drag it down till the last value of column A.
- To post as a guest, your comment is unpublished.· 6 years agoJust 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.· 6 years agoI'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.· 6 years agoIt 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.· 6 years agoplease use formula abs to change negative sign to positive
- To post as a guest, your comment is unpublished.· 6 years agoUse only formula =abs(-10)=10 so easy...
- To post as a guest, your comment is unpublished.· 7 years agoAUTHORIZED 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.· 7 years agoPerfect, thanks so much
- To post as a guest, your comment is unpublished.· 7 years agovery help ful for me and all users
- To post as a guest, your comment is unpublished.· 7 years agopls 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.· 7 years agoDear Excel legend, with the above discreption has been usefull for me, thanks for your excellency.
- To post as a guest, your comment is unpublished.· 7 years agoIf 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.· 7 years agoI wanted to show the % as a positive so I used : =(SQRT(A1*A1))/A2
- To post as a guest, your comment is unpublished.· 8 years agoor... 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.· 8 years agoTHANK YOU,THANK YOU,THANK YOU,THANK YOU!!!!!!!!! :roll:
- To post as a guest, your comment is unpublished.· 8 years agoMake 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.· 8 years agoVery helpful, thanks!
- To post as a guest, your comment is unpublished.· 8 years agoor you could just get the absolute value with the formula =abs(cell).
- To post as a guest, your comment is unpublished.· 7 years agoA.J. You're a true savior!
- To post as a guest, your comment is unpublished.· 7 years agothank you very much which helps me to resolve the issue raised
by my colleague
- To post as a guest, your comment is unpublished.· 8 years agoThank you!!! Legend.