Skip i'r prif gynnwys

Sut i gysgodi cell yn seiliedig ar werth cell arall yn Excel?

Gan dybio eich bod am gysgodi cell (meddai A1) gyda lliw cefndir penodol os yw cell B4 yn cwrdd â'r meini prawf megis sydd â gwerth penodol neu os yw'r gwerth yn fwy neu'n llai na rhif penodol. Beth fyddech chi'n ei wneud? Bydd yr erthygl hon yn dangos y dull i chi.

Cysgodwch gell yn seiliedig ar werth cell arall gyda Fformatio Amodol


Cysgodwch gell yn seiliedig ar werth cell arall gyda Fformatio Amodol

Gallwch wneud fel a ganlyn i gysgodi cell yn seiliedig ar werth cell arall yn Excel.

1. Dewiswch y gell (meddai A1) rydych chi am ei chysgodi yn seiliedig ar werth cell arall, yna cliciwch Fformatio Amodol > Rheol Newydd O dan y Hafan tab.

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

  • 2.1 Dewis Defnyddiwch fformiwla i bennu pa gelloedd i'w fformatio opsiwn yn y Dewiswch Math o Reol blwch;
  • 2.2 Os ydych chi am gysgodi cell A1 pan fo gwerth B4 yn fwy na 500, yna nodwch y fformiwla = $ B4> 500 i mewn i'r Gwerthoedd fformat lle mae'r fformiwla hon yn wir blwch;
    Awgrymiadau: os ydych chi am gysgodi cell A1 pan fydd gan B4 werth penodol fel “prawf”, defnyddiwch y fformiwla hon = $ B4 = “prawf”. Gallwch newid y newidyn yn y fformiwla yn seiliedig ar eich anghenion.
  • 2.3 Cliciwch y fformat botwm i nodi lliw cefndir;
  • 2.4 Cliciwch y OK botwm pan fydd yn dychwelyd i'r Rheol Fformatio Newydd blwch deialog. Gweler y screenshot:

Yna gallwch weld bod y gell benodol wedi'i chysgodi yn seiliedig ar werth cell arall fel islaw'r screenshot a ddangosir.


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 (17)
Rated 4 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
I just wanted to leave my experience after reading the comments left here when in need of accomplishing entire columns needing to correlate to their respective rows under another column.
I hope I can help out the community for anyone else in search for answers with the same needs as I had.

This example is if you need each cell to act independently according to a cell in its own respective row. For example: Looking at row 4 I need my cell in column H to change color based on a value in column F (still in row 4). Lets say in this case I need H4 to change when the word Complete is entered in F4. (But I need this rule to apply for all rows. -Lets say I have 104 rows total.)

Conditional Formatting: New Rule > "Use a formula to determine which cells to format" - Format values where this formula is true: (enter the following) =$F1:$F104="Complete" (-Choose Format desired)
(We now need to add the cells this new rule applies to, enter the following) =$H$1:$H$104 > Apply > OK

You should now have independent rows formatting cells in column H dependent on the value "Complete" being entered in cells in column F.
Rated 4 out of 5
This comment was minimized by the moderator on the site
I have two column Buy Units (A) and Sell unites (B). When typing sell units B column, If B1>A1 return red font in B1 value. (To say that there is typo= you can not sale more unit than you have got) FOR EACH TRANSACTIONS. Meaning same to be applied for B2>A2, B3>A3., B4>A4... I do not want to keep typing Conditional Formating for each single cell, just want to COPY and Paste. This seems relatively easy ask but taking me a toll! Can you please help?
This comment was minimized by the moderator on the site
Yes I want learn/ know this
This comment was minimized by the moderator on the site
How do I solve this ?
Say I have 5 Columns - CORRECT_ANS, PERSON1, PERSON2, PERSON3, PERSON4
and say 4 rows with values as below.

CORRECT_ANS, PERSON1, PERSON2, PERSON3, PERSON4
A B C A A
B A B D B
C C C A B
C A D C C

Values in Columns PERSON1 to PERSON4 should match against corrresponding row in CORRECT_ANS. If value is same, then Cell color to be GREEN, else RED.
So in 1st case, PERSON3 and PERSON4 cell should be GREEN, rest RED. Similarly 2nd row, PERSON2 and PERSON4 gets GREEN, rest RED, and so on.
This comment was minimized by the moderator on the site
what if I want a cell to be shaded based on the presence or absence of text in a different cell?
This comment was minimized by the moderator on the site
If you want the condition to format several cells on the same row, select them all and use the formula =$J1="your_text_here"
This comment was minimized by the moderator on the site
HI what if I want to condition a cell based on the presence or not of text in a different cell?
This comment was minimized by the moderator on the site
To apply this to multiple rows, use the same formula (Excel automatically continues the formula with relative values).
e.g. for the following sheet,
_|_A_B
1| 0 0
2| 0 1
3| 1 0
4| 1 1
to make A1 depend on B1, and A2 depend on B2, and so forth, use =$B1=0. To make all the cells in A depend on one cell in B, use =$B$1=0, and to make the cells in A depend on the cells in the next row of B, use =$B2=0 (with the A cells selected from A1).
This comment was minimized by the moderator on the site
Ho do I apply this rule by row
For example, I want Cell I2 to be formatted by G2. I3 by G3 and so on
This comment was minimized by the moderator on the site
Hey for doing it by row, let's say I want to make A red when B > 0.

For that I would go to A, and enter the formula =B:B > 0

That's how you would do this
This comment was minimized by the moderator on the site
Hi,
I want to dpo the following. Help me out.
A1 to be green if B1>0
A2 to be green if B1>0
.
.
.
.
A250 to be green if B250>0

I am unable to copy the formula to all the rows.
This comment was minimized by the moderator on the site
How can we apply the rule on multiple cells with a single formula? Applying the rule on every single cell will be a hectic job.
This comment was minimized by the moderator on the site
How might i format column N to be shaded according to value in column L? (Eg higher red, lower blue, equals green, no value - no shading)
Can i write a formula for column N in conditional formatting?

K L M N
DD 0.2 0.8

AM 0.8 1.0

TB 1.0 1.0

AM 1.0 1.0

TB 0.6 0.8

AM 0.4 0.4

AM 0.8 0.8


Any help appreciated
D
This comment was minimized by the moderator on the site
Hi Deb,
Sorry can't help you with that. Thank you for your comment.
This comment was minimized by the moderator on the site
Hey Deb and Crystal,

For doing it by row, let's say I want to make A red when B > 0.

For that I would go to A, and enter the formula =B:B > 0

That's how you would do this
This comment was minimized by the moderator on the site
i want to know formula for color change of cell on basis of two different cell values
This comment was minimized by the moderator on the site
Hi Manish,
Please try this formula =AND($A2="KTE", $B2>100)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations