انتقل إلى المحتوى الرئيسي

كيفية تظليل خلية بناءً على قيمة خلية أخرى في إكسيل؟

لنفترض أنك تريد تظليل خلية (مثل A1) بلون خلفية معين إذا كانت الخلية B4 تفي بالمعايير مثل أن تحتوي على قيمة معينة أو أن القيمة أكبر أو أقل من رقم معين. ماذا كنت ستفعل؟ ستوضح لك هذه المقالة الطريقة.

قم بتظليل خلية بناءً على قيمة خلية أخرى باستخدام التنسيق الشرطي


قم بتظليل خلية بناءً على قيمة خلية أخرى باستخدام التنسيق الشرطي

يمكنك القيام بما يلي لتظليل خلية بناءً على قيمة خلية أخرى في Excel.

1. حدد الخلية (مثل A1) التي تريد تظليلها بناءً على قيمة خلية أخرى ، ثم انقر فوق تنسيق مشروط > قانون جديد تحت الصفحة الرئيسية علامة التبويب.

2. في ال قاعدة تنسيق جديدة مربع الحوار ، تحتاج إلى:

  • 2.1 اختر استخدم صيغة لتحديد الخلايا المطلوب تنسيقها الخيار في حدد نوع القاعدة صندوق؛
  • 2.2 إذا كنت تريد تظليل الخلية A1 عندما تكون قيمة B4 أكبر من 500 ، فأدخل الصيغة = B4 دولار> 500 في تنسيق القيم حيث تكون هذه الصيغة صحيحة صندوق؛
    نصائح: إذا كنت تريد تظليل الخلية A1 عندما يكون للخلية B4 قيمة معينة مثل "اختبار" ، فاستخدم هذه الصيغة = B4 دولار = "اختبار". يمكنك تغيير المتغير في الصيغة بناءً على احتياجاتك.
  • شنومك انقر فوق شكل زر لتحديد لون الخلفية ؛
  • شنومك انقر فوق OK زر عندما يعود إلى قاعدة تنسيق جديدة صندوق المحادثة. انظر لقطة الشاشة:

ثم يمكنك أن ترى أن الخلية المحددة مظللة بناءً على قيمة خلية أخرى كما هو موضح أدناه.


مقالات ذات صلة:

أفضل أدوات إنتاجية المكتب

🤖 مساعد Kutools AI: إحداث ثورة في تحليل البيانات على أساس: التنفيذ الذكي   |  إنشاء التعليمات البرمجية  |  إنشاء صيغ مخصصة  |  تحليل البيانات وإنشاء الرسوم البيانية  |  استدعاء وظائف Kutools...
الميزات الشعبية: البحث عن التكرارات أو تمييزها أو تحديدها   |  حذف الصفوف الفارغة   |  دمج الأعمدة أو الخلايا دون فقدان البيانات   |   جولة بدون صيغة 
سوبر بحث: معايير متعددة VLookup    VLookup ذات القيمة المتعددة  |   VLookup عبر أوراق متعددة   |   بحث غامض ....
قائمة منسدلة متقدمة: إنشاء القائمة المنسدلة بسرعة   |  القائمة المنسدلة التابعة   |  قائمة منسدلة متعددة التحديد ....
مدير العمود: إضافة عدد محدد من الأعمدة  |  نقل الأعمدة  |  تبديل حالة رؤية الأعمدة المخفية  |  مقارنة النطاقات والأعمدة 
الميزات المميزة: التركيز على الشبكة   |  عرض تصميم   |   شريط الفورمولا الكبير    مدير المصنفات والأوراق   |  مكتبة الموارد (النص السيارات)   |  منتقي التاريخ   |  اجمع أوراق العمل   |  تشفير/فك تشفير الخلايا    إرسال رسائل البريد الإلكتروني عن طريق القائمة   |  سوبر تصفية   |   مرشح خاص (تصفية غامق / مائل / يتوسطه خط ...) ...
أفضل 15 مجموعة أدوات12 نص الأدوات (إضافة نص, إزالة الأحرف، ...)   |   +50 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى Office ، ويجعل عملك أسهل بكثير

  • تمكين التحرير والقراءة المبوبة في Word و Excel و PowerPointوالناشر والوصول و Visio والمشروع.
  • فتح وإنشاء مستندات متعددة في علامات تبويب جديدة من نفس النافذة ، بدلاً من النوافذ الجديدة.
  • يزيد من إنتاجيتك بنسبة 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