Skip i'r prif gynnwys

Sut i gyfrif / swm rhifau positif neu negyddol yn unig yn Excel?

Fel rheol, mae'n hawdd i ni grynhoi neu gyfrif ystod o ddata mewn taflen waith, ond yma, rwyf am gyfrif neu grynhoi rhifau cadarnhaol neu negyddol yn unig. A oes unrhyw ffyrdd effeithiol o ddatrys y broblem hon?

Cyfrif rhifau positif neu negyddol yn unig mewn ystod gyda fformwlâu

Swmiwch rifau positif neu negyddol yn unig mewn ystod gyda fformwlâu


Cyfrif rhifau positif neu negyddol yn unig mewn ystod gyda fformwlâu

Yma, gall swyddogaeth COUNTIF eich helpu'n gyflym i gyfrif faint o rifau positif neu rifau negyddol mewn ystod.

1. I gyfrif y gwerthoedd positif yn unig, mewn cell wag, nodwch y fformiwla hon = COUNTIF ($ A $ 1: $ D $ 7, "> 0") i mewn iddo, gweler y screenshot:

doc-cyfrif-positif1

2. Yna pwyswch Rhowch yn allweddol, ac mae'r holl rifau positif wedi'u cyfrif a dangosir y canlyniad yn y gell. Gweler y screenshot:

doc-cyfrif-positif1

Nodiadau:

1. Os ydych chi am gyfrif nifer y gwerthoedd negyddol yn unig, defnyddiwch y fformiwla hon = COUNTIF ($ A $ 1: $ D $ 7, "<0").

2. Ac yn y fformiwla uchod, A1: D7 yw'r ystod ddata rydych chi am ei defnyddio.


Swmiwch rifau positif neu negyddol yn unig mewn ystod gyda fformwlâu

Yn Excel, gall swyddogaeth SUMIF eich helpu i adio dim ond y gwerthoedd cadarnhaol neu'r gwerthoedd negyddol. Gallwch gymhwyso'r fformiwla hon fel hyn:

1. Teipiwch y fformiwla hon = SUMIF ($ A $ 1: $ D $ 7, "> 0") i mewn i gell wag, gweler y screenshot:

doc-cyfrif-positif1

2. Yna pwyswch Rhowch allweddol, a dim ond yr holl rifau positif sydd wedi'u hadio.

doc-cyfrif-positif1

Nodiadau:

1. I grynhoi'r holl rifau negyddol mewn ystod yn unig, defnyddiwch y fformiwla hon = SUMIF ($ A $ 1: $ D $ 7, "<0").

2. Yn y fformiwla uchod, A1: D7 yw'r ystod ddata rydych chi am ei defnyddio.


Erthyglau cysylltiedig:

Sut i gyfri / cyfrif rhifau beiddgar mewn ystod o gelloedd yn Excel?

Sut i gyfrif nifer y celloedd gwall / celloedd nad ydynt yn wallau yn Excel?

Offer Cynhyrchiant Swyddfa Gorau

🤖 Kutools AI Aide: Chwyldro dadansoddi data yn seiliedig ar: Cyflawniad Deallus   |  Cynhyrchu Cod  |  Creu Fformiwlâu Personol  |  Dadansoddi Data a Chynhyrchu Siartiau  |  Invoke Swyddogaethau Kutools...
Nodweddion Poblogaidd: Darganfod, Amlygu neu Adnabod Dyblygiadau   |  Dileu Rhesi Gwag   |  Cyfuno Colofnau neu Gelloedd heb Colli Data   |   Rownd heb Fformiwla ...
Super-edrych: VLookup Meini Prawf Lluosog    VLookup Gwerth Lluosog  |   VLookup Ar Draws Taflenni Lluosog   |   Edrych Niwlog ....
Rhestr gwympo Uwch: Creu Rhestr Gollwng yn Gyflym   |  Rhestr Gollwng Dibynnol   |  Rhestr Gollwng Aml-ddewis ....
Rheolwr Colofn: Ychwanegu Nifer Penodol o Golofnau  |  Symud Colofnau  |  Toglo Statws Gwelededd Colofnau Cudd  |  Cymharwch Ystodau a Cholofnau ...
Nodweddion dan Sylw: Ffocws ar y Grid   |  Golwg Dylunio   |   Bar Fformiwla Mawr    Rheolwr Llyfr Gwaith a Thaflen   |  Llyfrgell Adnoddau (Testun Auto)   |  Dewiswr Dyddiad   |  Cyfuno Taflenni Gwaith   |  Amgryptio/Dadgryptio Celloedd    Anfon E-byst trwy Restr   |  Hidlo Super   |   Hidlo Arbennig (hidlo mewn print trwm/italig/strikethrough...) ...
15 Set Offer Gorau12 Testun offer (Ychwanegu Testun, Dileu Cymeriadau,...)   |   50 + Siart Mathau (Siart Gantt,...)   |   40+ Ymarferol Fformiwlâu (Cyfrifwch oedran yn seiliedig ar ben-blwydd,...)   |   19 mewnosod offer (Mewnosod Cod QR, Mewnosod Llun o'r Llwybr,...)   |   12 Trosi offer (Rhifau i Eiriau, Trosi arian cyfred,...)   |   7 Uno a Hollti offer (Rhesi Cyfuno Uwch, Celloedd Hollt,...)   |   ... a mwy

Supercharge Eich Sgiliau Excel gyda Kutools ar gyfer Excel, a Phrofiad Effeithlonrwydd Fel Erioed Erioed. Kutools ar gyfer Excel Yn Cynnig Dros 300 o Nodweddion Uwch i Hybu Cynhyrchiant ac Arbed Amser.  Cliciwch Yma i Gael Y Nodwedd Sydd Ei Angen Y Mwyaf...

Disgrifiad


Mae Office Tab yn dod â rhyngwyneb Tabbed i Office, ac yn 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!
Comments (15)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
=SUMIF($H$9:$H$39;">0") el carácter es ; no ,
This comment was minimized by the moderator on the site
Hello Sir, i need a solution/Formula to count negative numbers from different cells e.g i have three column of deposit (Current Account, Saving Account and Total Deposit) in 12 months and count in how many many months one branch miss the Current, saving and total budget. but when i use =countifs(C1,E1,F1.....,",0") but it only accept range not selected cell what will be the solution. thanks

e.g
This comment was minimized by the moderator on the site
Hello, i need a solution/Formula to count negative numbers from different cells e.g i have three column of deposit (Current Account, Saving Account and Total Deposit) in 12 months and count in how many many months one branch miss the Current, saving and total budget. but when i use =countifs(C1,E1,F1.....,",0") but it only accept range not selected cell what will be the solution. thanks
This comment was minimized by the moderator on the site
Gracias!! por fortuna escontre está página donde encontré Soluciones. 👍
Rated 5 out of 5
This comment was minimized by the moderator on the site
Bonjour à tous,

je suis novice en excel. Existe il une fonction qui calcule automatiquement la différence entre deux nombres en incluant soit - où + devant le résultat.:
exemple, 1735-1685 = +50. (je l'ai fait avec la fonction somme automatique, mais je n'ai pas le + devant le résultat.
Pouvez vous m'envoyer un exemple de la formule avec ces nombres
Cdlt
This comment was minimized by the moderator on the site
Hello, LYS
Normally, there isn't a function to sove your problem, but, you can apply the SUM function to get the results first, and then use the Format Cells feature to set +0;-0;0 for the numbers, please see the below screenshot:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-format-cells.png

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Thank you!!! This worked like a charm for my bank's annoying single "amount" column.
This comment was minimized by the moderator on the site
Thanks a lot!
This comment was minimized by the moderator on the site
How to use the Countif formula to count Positive AND Negative values but exclude ZEROS from the counting?

For example (data below):
1
3
0
-5
0
-1
7

The Total counting that I am expecting is equal to 5.

I thought the formula should be like =COUNTIF(N18:N320,"<>0")
But it is not working in the way that I imagined.
Can anyone help please?

Thanks,
Fernando
This comment was minimized by the moderator on the site
@Ferras,


=(COUNTIF(N18:N320,">0")+COUNTIF(N18:N320,"<0"))

Try it and let me know.
This comment was minimized by the moderator on the site
=COUNTIF(N18:N320,"<>0").....Works for me
This comment was minimized by the moderator on the site
how to change color of the cell automatically, according to profit and loss
This comment was minimized by the moderator on the site
How can I add only the numbers that will give me 0? Thank you
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