Note: The other languages of the website are Google-translated. Back to English
Logáil isteach  \/ 
x
or
x
Cláraigh  \/ 
x

or

Conas comharthaí luachanna i gcealla in Excel a aisiompú?

Nuair a úsáidimid barr feabhais, bíonn uimhreacha dearfacha agus diúltacha i mbileog oibre. Ag glacadh leis go gcaithfimid na huimhreacha dearfacha a athrú go diúltach agus a mhalairt. Ar ndóigh, is féidir linn iad a athrú de láimh, ach má tá na céadta uimhreacha ann is gá iad a athrú, ní rogha mhaith é an modh seo. An bhfuil aon chleasanna gasta ann chun an fhadhb seo a réiteach?

Aisiompaigh comhartha luachanna i gcealla a bhfuil feidhm speisialta Greamaigh acu

Déan comhartha luachanna i gcealla le cód VBA a aisiompú

Déan comhartha luachanna i gcealla le Kutools le haghaidh Excel a aisiompú go tapa


mboilgeog cheart gorm saighead Aisiompaigh comhartha luachanna i gcealla a bhfuil feidhm speisialta Greamaigh acu

Is féidir linn comhartha luachanna i gcealla leis an Greamaigh Speisialta feidhm in Excel, déan mar a leanas le do thoil:

1. Beartaíonn uimhir -1 i gcill bhán agus cóipeáil é.

2. Roghnaigh an raon a theastaíonn uait comhartha luachanna a aisiompú, cliceáil ar dheis agus roghnaigh Greamaigh Speisialta. Féach an pictiúr:

3. sa Greamaigh Speisialta dialóg, cliceáil Gach roghanna ó Greamaigh agus Méadaigh rogha ó Oibríocht. Féach an pictiúr:

4. Ansin cliceáil OK, agus tá comharthaí uile na n-uimhreacha sa raon droim ar ais.

5. Scrios an uimhir -1 de réir mar is gá duit.


Déan comhartha na n-uimhreacha go léir a aisiompú ag an am céanna

Kutools le haghaidh Excel'S Athraigh Comhartha Luachanna is féidir le fóntais cabhrú leat na huimhreacha dearfacha a athrú go diúltach agus a mhalairt, is féidir leis cabhrú leat comhartha na luachanna a aisiompú agus comhartha diúltach rianaithe a shocrú go gnáth.  Cliceáil chun Kutools a íoslódáil le haghaidh Excel!

Kutools le haghaidh Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá. Íoslódáil agus triail saor in aisce Anois!


mboilgeog cheart gorm saighead Déan comhartha luachanna i gcealla le cód VBA a aisiompú

Chomh maith leis sin, is féidir linn cód VBA a úsáid chun comhartha luachanna i gcealla a aisiompú. Ach ní mór dúinn a bheith ar an eolas faoi conas an VBA a fháil chun an rud a dhéanamh. Is féidir linn é a dhéanamh mar na céimeanna seo a leanas:

1. Roghnaigh an raon is mian leat comhartha luachanna i gcealla a aisiompú.

2. Cliceáil Forbróir > Visual Basic in Excel, nua Microsoft Visual Basic d’iarratais taispeánfar an fhuinneog, nó úsáidfear na heochracha aicearra (Alt + F11) é a ghníomhachtú. Ansin cliceáil Ionsáigh > Modúil, agus ansin an cód VBA seo a leanas a chóipeáil agus a ghreamú:

Sub Convert()
Dim C As Range
For Each C In Selection
C.Value = -C.Value
Next C
End Sub

3. Ansin cliceáil doc-droim ar ais-chomhartha-6 cnaipe chun an cód a rith. Agus tá comhartha na n-uimhreacha sa raon roghnaithe droim ar ais ag an am céanna.


mboilgeog cheart gorm saighead Déan comhartha luachanna i gcealla le Kutools le haghaidh Excel a aisiompú go tapa

Is féidir linn comhartha na luachanna a aisiompú go tapa le Athraigh Comhartha Luachanna gné de Kutools le haghaidh Excel.

Kutools le haghaidh Excel : le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá

Tar éis a shuiteáil Kutools le haghaidh Excel, déan mar a leanas le do thoil:

1. Roghnaigh an raon a theastaíonn uait comharthaí na n-uimhreacha a aisiompú.

2. Cliceáil Kutools > Ábhar > Athraigh Comhartha Luachanna…, Féach an pictiúr:

3. Sa an Athraigh Comhartha Luachanna bosca dialóige, seiceáil an Droim ar ais comhartha na luachanna uile, féach ar an scáileán:

doc-droim ar ais comharthaí-de-luachanna5

4. Agus ansin cliceáil OK or Cuir iarratas isteach. Tá comharthaí uile na n-uimhreacha droim ar ais.

An Athraigh Comhartha Luachanna de Kutools for Excel is féidir freisin comharthaí diúltacha trailing a shocrú, Cna luachanna diúltacha go léir a chrochadh go dearfach agus athraigh na luachanna dearfacha go diúltach. Le haghaidh faisnéise níos mionsonraithe faoi Athraigh Comhartha Luachanna, Tabhair cuairt ar Cur síos ar ghné Athraigh Luachanna.

Cliceáil chun Íoslódáil agus triail saor in aisce Kutools le haghaidh Excel Now!


mboilgeog cheart gorm saighead Déan comhartha luachanna i gcealla le Kutools le haghaidh Excel a aisiompú

Kutools le haghaidh Excel: le níos mó ná 300 breiseán áisiúil Excel, saor in aisce le triail gan aon teorannú i 30 lá. Íoslódáil agus triail saor in aisce Anois!

Earraí gaolmhara:


Na hUirlisí Táirgiúlachta Oifige is Fearr

Réitíonn Kutools for Excel an chuid is mó de do chuid Fadhbanna, agus Méadaíonn sé do Tháirgiúlacht 80%

  • Athúsáid: Cuir isteach go tapa foirmlí casta, cairteacha agus aon rud a d'úsáid tú roimhe seo; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin gan Sonraí a chailleadh; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna / Colúin Dúblacha... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Níos mó ná 300 gné chumhachtach. Tacaíochtaí Office / Excel 2007-2019 agus 365. Tacaíonn sé le gach teanga. Imscaradh éasca i d’fhiontar nó d’eagraíocht. Gnéithe iomlána triail saor in aisce 30 lá. Ráthaíocht ar ais airgid 60 lá.
cluaisín kte 201905

Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
bun 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.
    Aaron · 3 years ago
    Tried to do the developer option and I get a:
    Run-time error '438':
    Object doesn't support this property or method


    Any ideas?
  • To post as a guest, your comment is unpublished.
    Bob · 4 years ago
    @Taylor Yes. Yes it does. Enter "-1" in a cell. Copy that cell. Highlight all the values whose sign you wish to flip. Opt-Cmd-V opens paste special dialog box, choose multiply from the Operations section (I also find it beneficial to choose "values" in the Paste Section rather than "all" to preserve any formatting).
  • To post as a guest, your comment is unpublished.
    Taylor · 4 years ago
    I have a mac version of excel and the paste special doesn't allow me to do that :-/ dying.
  • To post as a guest, your comment is unpublished.
    Emoployee · 5 years ago
    Thx Bro for the useful thread
  • To post as a guest, your comment is unpublished.
    Hasan · 5 years ago
    Thank you so much, Sir. You helped me a lot. I hope I can return the favor. Thank you so much.
  • To post as a guest, your comment is unpublished.
    CHRISTINE · 5 years ago
    thank you

    i had just posted in the SUN system with the srong month. this has helped me to reverse all the 195 entries within 7 minutes...
  • To post as a guest, your comment is unpublished.
    Vikas · 6 years ago
    @Michaelq Michaelq please use abs function. It turns negative and positive values both to positive one.
  • To post as a guest, your comment is unpublished.
    David K · 6 years ago
    From my perspective it seems there is no foolproof way to simply remove a negative sign:

    Multiplying by -1 can screw up subsequent cell values if each one is using a formula.
    VBA requires saving in a different format.
    Kutools requires you to download/purchase an add-on.

    You can format a column to show negatives as positives, but it turns the font Red.
  • To post as a guest, your comment is unpublished.
    Kevin Cox · 6 years ago
    I'm looking to add multiple $ to cells with formulas example (=((I29+AM29+AV29+BH29+CG29+CP29+DS29+AJ78+BA91+BU91+CO91+DK78)-(V25+EF25+EN25))/4

    Is there away to do this quickly...
  • To post as a guest, your comment is unpublished.
    Michaelq · 6 years ago
    This is tangentially related. I have a workbook in Excel 2013 that's baffling me. I get a #VALUE! error with the formula =SUM(8-(F4:F23)) in cell F2.

    When I reverse that, =SUM(F4:F23)-8), I get (#) where (#) is the negative of what I expect.

    But when I use #Jonathon's formula with my working formula in it, I again get the #VALUE! error.

    How is this #VALUE! error even possible? What I want is for F2 to be a positive number that's the leftover balance when F4:F24 is less that 8.
  • To post as a guest, your comment is unpublished.
    Jonathan · 6 years ago
    @JAVED KHAN OMG THANK YOU SOOO MUCH. I have been looking all over the place for a way to simply do this. I was trying to find a way to have Excel take the SUM of a group of numbers and make it negative so that it would automatically do all the rest of the math on the sheet correctly. If anyone else is looking to do something similar, using the information I just obtained from #JAVED KHAN, enter the following function (this is just an example, change the cell references to match the ranges you are needing to use)

    =SUM(B2:H2) * -1

    This will now take the sum of the range and automatically change the value to a negative number.
  • To post as a guest, your comment is unpublished.
    CPH1810 · 6 years ago
    @JAVED KHAN You sir have just blown my mind with your Excel Ninja ways, I tip my hat to you sir :lol:
  • To post as a guest, your comment is unpublished.
    wolfstevent · 7 years ago
    @JAVED KHAN The goal was to change an entire range of cells easily, not just a single cell. The paste multiply method is basically a one step procedure to do just that.
  • To post as a guest, your comment is unpublished.
    wolfstevent · 7 years ago
    Very cool trick. I imported transactions from BofA and AMEX and of course they use different signs for debits. One multiply paste later and I'm all fixed up.

    Thanks.
  • To post as a guest, your comment is unpublished.
    JAVED KHAN · 7 years ago
    In a New Cell simply Multiply a the Cell-value by -1. It will reverse automatically. No need to perform such a long procedures.

    e.g if the value in B1 is -25 then in Cell C1 enter the formula :

    =B1 * -1

    :-)