Skip i'r prif gynnwys

Sut i anwybyddu celloedd gwag neu sero wrth fformatio amodol yn Excel?

Gan dybio bod gennych chi restr o ddata gyda chelloedd sero neu wag, a'ch bod chi am fformatio'r rhestr hon o ddata yn amodol ond anwybyddu'r celloedd gwag neu sero, beth fyddech chi'n ei wneud? Yn yr erthygl hon, byddwn yn dangos i chi sut i ddefnyddio fformatio amodol wrth anwybyddu celloedd gwag neu sero yn Excel.

Anwybyddu celloedd gwag mewn fformatio amodol yn Excel
Anwybyddu sero gelloedd mewn fformatio amodol yn Excel


Anwybyddu celloedd gwag mewn fformatio amodol yn Excel

Ar ôl creu rheolau fformatio amodol ar gyfer y rhestr o ddata, mae angen ichi ychwanegu rheol newydd i anwybyddu'r celloedd gwag yn y rhestr.

1. Daliwch i aros yn y Rheolwr Rheolau Fformatio Amodol blwch deialog, yna cliciwch ar y Rheol Newydd botwm. Gweler y screenshot:

Nodyn: Gallwch chi agor y Rheolwr Rheolau Fformatio Amodol blwch deialog trwy glicio Fformatio Amodol > Rheoli Rheolau dan Hafan tab.

2. Yna mae'n mynd i mewn i'r Rheol Fformatio Newydd blwch deialog. Gallwch chi wneud fel y ddau ddull isod i anwybyddu celloedd gwag wrth fformatio amodol.

Dull 1

  • a. Dewiswch Fformatiwch gelloedd yn unig sy'n cynnwys yn y Dewiswch Math o Reol blwch;
  • b. Dewiswch Blanciau yn y Fformatiwch gelloedd yn unig â rhestr ostwng;
  • c. Peidiwch â dewis unrhyw fformat a chlicio ar y OK botwm. Gweler y screenshot:

Dull 2

  • a. Yn y Dewiswch Math o Reol blwch, dewiswch Defnyddiwch fformiwla i bennu pa gelloedd i'w fformatio;
  • b. Copïwch a gludwch y fformiwla = ISBLANK (A2) = GWIR i mewn i'r Gwerthoedd fformat lle mae'r fformiwla hon yn wir blwch;
  • Nodyn: yma yr A2 yn y fformiwla yw cell gyntaf yr ystod a ddewiswyd. Er enghraifft, yr ystod a ddewiswyd gennych yw B3: E12, mae angen ichi newid A2 i B3 yn y fformiwla.
  • c. Cliciwch y OK botwm heb nodi unrhyw fformat.

3. Yna mae'n dychwelyd i'r Rheolwr Rheolau Fformatio Amodol blwch deialog. Ni waeth pa ddull rydych chi'n ei ddefnyddio i anwybyddu bylchau, mae angen i chi wirio'r Stop Os Gwir blwch yn y blwch deialog hwn, ac yna cliciwch ar y OK botwm. Gweler y screenshot:

Yna mae'r celloedd a ddewiswyd yn cael eu fformatio ac eithrio'r bylchau.


Anwybyddu sero gelloedd mewn fformatio amodol yn Excel

Os oes gennych chi restr o ddata yn ystod B2: B12, a'ch bod chi eisiau fformatio'r pum gwerth isaf yn eu plith ond anwybyddu'r celloedd sero, gwnewch fel a ganlyn.

1. Dewiswch yr ystod B2: B12, yna cliciwch Fformatio Amodol > Rheol Newydd dan Hafan tab.

2. Yn y Golygu Rheol Fformatio blwch deialog, mae angen i chi:

  • 1). Yn y Dewiswch Math o Reol blwch, dewiswch Defnyddiwch fformiwla i bennu pa gelloedd i'w fformatio;
  • 2). Copi a gludo fformiwla =AND(B2<>0,B2<=SMALL(IF(B$2:B$12<>0,$B$2:$B$12),5)) i mewn i'r Gwerthoedd fformat lle mae'r fformiwla hon yn wir blwch;
  • 3). Cliciwch y fformat botwm i nodi fformat ar gyfer y celloedd;
  • 4). Ar ôl nodi'r fformat, cliciwch y OK botwm. Gweler y screenshot:

Nodyn: Mae angen ichi newid ystod y celloedd yn y fformiwla i ddiwallu'ch anghenion.

Ar ôl hynny, gallwch weld bod y pum gwerth isaf yn y rhestr a ddewiswyd yn cael eu fformatio ar unwaith heb fformatio'r gwerthoedd sero.


Erthyglau cysylltiedig:

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 (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Literally none of this is working for me. I simply want to highlight anything 9 & below as green and anything 10 and above as red AND any cells that do not have a number stays empty/white. I have done every way of formatting and no matter what I do, all blank cells are green.

What's the deal?? I am using a VLOOKUP formula to locate the data, is that messing up the conditional formatting?
This comment was minimized by the moderator on the site
Hi Penny,

After adding you rules, create a new Formula rule and use this formula =ISBLANK(B2)=TRUE (B2 is the first cell of the selected range). When it returns to the Conditional Fprmatting Rules Manager, check the Stop if True box at the end of the ISBLANK rule, then click the OK button.
https://www.extendoffice.com/images/stories/comments/comment-picture-zxm/ignore-blank.png
This comment was minimized by the moderator on the site
Thank you so much! This helped me solve a problem! :)
This comment was minimized by the moderator on the site
Please help with this problem. I am trying to apply conditional formatting for these cells
For example: E5 is Y(Y can only be selected within (C:E)) but I5 in (G:I) and M5 in (K:M) are blank then I5 M5 will be shaded as red using these 2 formulas
- IF(AND(C5="Y", ISBLANK(G5), ISBLANK(K5)),TRUE,FALSE).
OR
- AND(C8="Y",G8="",K8="")
These 2 formulas only shade the cells from the adjacent range. For the example above it only shades I5 but if I enter Y in H6, L6 will be shaded
This comment was minimized by the moderator on the site
just an FYI, if you don't click stop if true before clicking apply, the rule will not work. even if you go back and click stop if true, it won't work.
This comment was minimized by the moderator on the site
THANKS MATE, you save me.
This comment was minimized by the moderator on the site
Neat solution and the way to go if you're using the inbuilt options for your other conditional formatting or have multiple rules, but if you are using a formula to determine formatting you can ignore blanks with a single rule by encapsulating your formula within an IF statement: =IF([CellRef]="","",[Your Formula])
Also your approach stops all further formatting rules, but you might still want to conditionally format a blank cell, e.g. shade or fill it, based on the contents of another cell or other not directly related criteria (although in that case you could re-order the rules).
It's a shame that Microsoft don't just include an 'ignore blanks' tick box on a per rule basis...
This comment was minimized by the moderator on the site
Brilliant! I used this today on a large dataset. Very helpful!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations