Перейти до основного матеріалу

Як затінити комірку на основі іншого значення комірки в Excel?

Припустимо, ви хочете затінити комірку (каже А1) певним кольором тла, якщо комірка В4 відповідає таким критеріям, як наприклад, має певне значення або значення більше або менше певного числа. Що б ти зробив? Ця стаття покаже вам метод.

Затініть клітинку на основі іншого значення комірки за допомогою умовного форматування


Затініть клітинку на основі іншого значення комірки за допомогою умовного форматування

Ви можете зробити наступне, щоб затінити комірку на основі іншого значення комірки в Excel.

1. Виберіть клітинку (каже А1), яку потрібно затінити, виходячи з іншого значення комірки, а потім натисніть Умовне форматування > Нове правило під Головна Вкладка.

2 В Нове правило форматування у діалоговому вікні потрібно:

  • 2.1 Виберіть За допомогою формули визначте, які клітинки потрібно форматувати опція в Виберіть тип правила коробка;
  • 2.2 Якщо ви хочете затінити комірку A1, коли значення B4 перевищує 500, введіть формулу = $ B4> 500 в Форматувати значення, де ця формула відповідає дійсності коробка;
    Tips : якщо ви хочете затінити комірку A1, коли B4 має певне значення, наприклад, "test", використовуйте цю формулу = $ B4 = "тест". Ви можете змінити змінну у формулі залежно від ваших потреб.
  • 2.3 Натисніть кнопку сформований кнопка, щоб вказати колір тла;
  • 2.4 Натисніть кнопку OK , коли вона повертається до Нове правило форматування діалогове вікно. Дивіться знімок екрана:

Тоді ви можете побачити, що вказана комірка затінена на основі значення іншої комірки, як показано на знімку екрана нижче.


Статті по темі:

Найкращі інструменти продуктивності офісу

🤖 Kutools AI Aide: Революціонізуйте аналіз даних на основі: Інтелектуальне виконання   |  Згенерувати код  |  Створення спеціальних формул  |  Аналізуйте дані та створюйте діаграми  |  Викликати функції Kutools...
Популярні функції: Знайдіть, виділіть або визначте дублікати   |  Видалити порожні рядки   |  Об’єднайте стовпці або клітинки без втрати даних   |   Раунд без Формули ...
Супер пошук: VLookup за кількома критеріями    Багатозначний VLookup  |   VLookup на кількох аркушах   |   Нечіткий пошук ....
Розширений розкривний список: Швидке створення випадаючого списку   |  Залежний спадний список   |  Виберіть розкривний список, що вибирається ....
Менеджер колонок: Додайте конкретну кількість стовпців  |  Перемістити стовпці  |  Перемкнути статус видимості прихованих стовпців  |  Порівняйте діапазони та стовпці ...
Особливості: Фокус сітки   |  Перегляд дизайну   |   Велика панель формул    Диспетчер робочих книг і аркушів   |  Бібліотека ресурсів (автотекст)   |  Вибір дати   |  Об’єднайте робочі аркуші   |  Шифрування/розшифрування клітинок    Надсилайте листи за списком   |  Супер фільтр   |   Спеціальний фільтр (фільтр жирний/курсив/закреслений...) ...
Топ-15 наборів інструментів12 текст Tools (додати текст, Видалити символи, ...)   |   50 + Графік типи (діаграма Ганта, ...)   |   40+ Практичний Формули (Розрахуйте вік на основі дня народження, ...)   |   19 вставка Tools (Вставте QR-код, Вставити зображення зі шляху, ...)   |   12 Перетворення Tools (Числа до слів, Валютна конверсія, ...)   |   7 Злиття та розділення Tools (Розширені комбіновані ряди, Розділені клітини, ...)   |   ... і більше

Покращуйте свої навички Excel за допомогою Kutools для Excel і відчуйте ефективність, як ніколи раніше. Kutools для Excel пропонує понад 300 додаткових функцій для підвищення продуктивності та економії часу.  Натисніть тут, щоб отримати функцію, яка вам найбільше потрібна...

Опис


Вкладка Office Передає інтерфейс із вкладками в Office і значно полегшує вашу роботу

  • Увімкніть редагування та читання на вкладках у Word, Excel, PowerPoint, Publisher, Access, Visio та Project.
  • Відкривайте та створюйте кілька документів на нових вкладках того самого вікна, а не в нових вікнах.
  • Збільшує вашу продуктивність на 50% та зменшує сотні клацань миші для вас щодня!
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