ไปยังเนื้อหาหลัก

วิธีเปลี่ยนพื้นหลังหรือสีแบบอักษรตามค่าของเซลล์ใน Excel

เมื่อคุณจัดการกับข้อมูลขนาดใหญ่ใน Excel คุณอาจต้องการเลือกค่าบางอย่างและเน้นด้วยพื้นหลังหรือสีแบบอักษรเฉพาะ บทความนี้พูดถึงวิธีการเปลี่ยนพื้นหลังหรือสีฟอนต์ตามค่าของเซลล์ใน Excel อย่างรวดเร็ว


วิธีที่ 1: เปลี่ยนพื้นหลังหรือสีฟอนต์ตามค่าของเซลล์แบบไดนามิกด้วยการจัดรูปแบบตามเงื่อนไข

 

พื้นที่ การจัดรูปแบบตามเงื่อนไข คุณลักษณะสามารถช่วยให้คุณเน้นค่าที่มากกว่า x น้อยกว่า y หรือระหว่าง x และ y

สมมติว่าคุณมีช่วงข้อมูลและตอนนี้คุณต้องกำหนดสีค่าระหว่าง 80 ถึง 100 โปรดทำตามขั้นตอนต่อไปนี้:

1. เลือกช่วงของเซลล์ที่คุณต้องการเน้นบางเซลล์จากนั้นคลิก หน้าแรก > การจัดรูปแบบตามเงื่อนไข > กฎใหม่ดูภาพหน้าจอ:

doc เน้นตามค่า 1

2. ใน กฎการจัดรูปแบบใหม่ กล่องโต้ตอบเลือกไฟล์ จัดรูปแบบเฉพาะเซลล์ที่มี รายการใน เลือกประเภทกฎ และใน จัดรูปแบบเฉพาะเซลล์ที่มี ระบุเงื่อนไขที่คุณต้องการ:

  • ในกล่องแบบเลื่อนลงแรกเลือกไฟล์ มูลค่าเซลล์;
  • ในกล่องแบบเลื่อนลงที่สองให้เลือกเกณฑ์:ระหว่าง;
  • ในช่องที่สามและสี่ให้ป้อนเงื่อนไขตัวกรองเช่น 80, 100

doc เน้นตามค่า 2

3. จากนั้นคลิก รูปแบบ ในปุ่ม จัดรูปแบบเซลล์ ไดอะล็อกบ็อกซ์กำหนดพื้นหลังหรือสีฟอนต์ดังนี้:

เปลี่ยนสีพื้นหลังตามค่าเซลล์: เปลี่ยนสีฟอนต์ตามค่าเซลล์
คลิก ใส่ จากนั้นเลือกสีพื้นหลังที่คุณต้องการ คลิก ตัวอักษร แล้วเลือกสีฟอนต์ที่คุณต้องการ
doc เน้นตามค่า 3 doc เน้นตามค่า 4

4. หลังจากเลือกพื้นหลังหรือสีแบบอักษรแล้วให้คลิก OK > OK เพื่อปิดกล่องโต้ตอบและตอนนี้เซลล์เฉพาะที่มีค่าระหว่าง 80 ถึง 100 จะเปลี่ยนเป็นสีพื้นหลังหรือสีแบบอักษรในการเลือก ดูภาพหน้าจอ:

เน้นเซลล์เฉพาะที่มีสีพื้นหลัง: เน้นเซลล์เฉพาะด้วยสีแบบอักษร:
doc เน้นตามค่า 5 doc เน้นตามค่า 6

หมายเหตุ: การจัดรูปแบบตามเงื่อนไข เป็นคุณสมบัติแบบไดนามิกสีของเซลล์จะเปลี่ยนไปเมื่อข้อมูลเปลี่ยนแปลง


วิธีที่ 2: เปลี่ยนพื้นหลังหรือสีฟอนต์ตามค่าเซลล์แบบคงที่ด้วยฟังก์ชัน Find

 

บางครั้งคุณต้องใช้สีเติมหรือสีแบบอักษรที่เฉพาะเจาะจงตามค่าของเซลล์และทำให้สีเติมหรือสีแบบอักษรไม่เปลี่ยนเมื่อค่าของเซลล์เปลี่ยนแปลง ในกรณีนี้คุณสามารถใช้ไฟล์ หา ฟังก์ชันเพื่อค้นหาค่าเซลล์เฉพาะทั้งหมดแล้วเปลี่ยนพื้นหลังหรือสีแบบอักษรตามที่คุณต้องการ

ตัวอย่างเช่นคุณต้องการเปลี่ยนพื้นหลังหรือสีแบบอักษรหากค่าของเซลล์มีข้อความ "Excel" โปรดดำเนินการดังนี้:

1. เลือกช่วงข้อมูลที่คุณต้องการใช้จากนั้นคลิก หน้าแรก > ค้นหาและเลือก > หาดูภาพหน้าจอ:

doc เน้นตามค่า 7

2. ใน ค้นหาและแทนที่ ภายใต้ หา ป้อนค่าที่คุณต้องการค้นหาลงในไฟล์ สิ่งที่ค้นหา กล่องข้อความดูภาพหน้าจอ:

doc เน้นตามค่า 8

เคล็ดลับ: หากคุณต้องการค้นหาค่าที่คำนึงถึงตัวพิมพ์เล็กและใหญ่หรือตรงกับเนื้อหาของเซลล์ทั้งหมดโปรดคลิกที่ Options เพื่อรับตัวเลือกการค้นหาขั้นสูงเช่น "Match กรณี"และ"จับคู่เนื้อหาของเซลล์ทั้งหมด"ตามที่คุณต้องการ

3. จากนั้นคลิก ค้นหาทั้งหมด ในกล่องค้นหาผลลัพธ์ให้คลิกรายการใดรายการหนึ่งจากนั้นกด Ctrl + เพื่อเลือกรายการที่พบทั้งหมดดูภาพหน้าจอ:

doc เน้นตามค่า 9

4. ในที่สุดคลิก ปิดหน้านี้ เพื่อปิดกล่องโต้ตอบนี้ ตอนนี้คุณสามารถเติมพื้นหลังหรือสีแบบอักษรสำหรับค่าที่เลือกเหล่านี้ได้ดูภาพหน้าจอ:

ใช้สีพื้นหลังสำหรับเซลล์ที่เลือก: ใช้สีแบบอักษรสำหรับเซลล์ที่เลือก:
doc เน้นตามค่า 10 doc เน้นตามค่า 11

วิธีที่ 3: เปลี่ยนพื้นหลังหรือสีแบบอักษรตามค่าของเซลล์แบบคงที่ด้วย Kutools for Excel

 

Kutools สำหรับ Excel's ค้นหาสุดยอด คุณสมบัติรองรับเงื่อนไขมากมายสำหรับการค้นหาค่าสตริงข้อความวันที่สูตรเซลล์ที่จัดรูปแบบและอื่น ๆ หลังจากค้นหาและเลือกเซลล์ที่ตรงกันแล้วคุณสามารถเปลี่ยนพื้นหลังหรือสีแบบอักษรตามที่คุณต้องการได้

หลังจากการติดตั้ง Kutools สำหรับ Excelโปรดทำตามนี้:

1. เลือกช่วงข้อมูลที่คุณต้องการค้นหาจากนั้นคลิก Kutools > ค้นหาสุดยอดดูภาพหน้าจอ:

doc เน้นตามค่า 12

2. ใน ค้นหาสุดยอด บานหน้าต่างโปรดดำเนินการดังต่อไปนี้:

  • (1. ) ขั้นแรกให้คลิกไฟล์ ความคุ้มค่า ไอคอนตัวเลือก;
  • (2. ) เลือกขอบเขตการค้นหาจาก ภายใน ดรอปดาวน์ในกรณีนี้ฉันจะเลือก การเลือก;
  • (3. ) จากไฟล์ ชนิดภาพเขียน รายการแบบหล่นลงเลือกเกณฑ์ที่คุณต้องการใช้
  • (4. ) จากนั้นคลิก หา ปุ่มเพื่อแสดงผลลัพธ์ที่เกี่ยวข้องทั้งหมดลงในกล่องรายการ
  • (5. ) ในที่สุดคลิก เลือก เพื่อเลือกเซลล์

doc เน้นตามค่า 13

3. จากนั้นเซลล์ทั้งหมดที่ตรงกับเกณฑ์ได้ถูกเลือกพร้อมกันดูภาพหน้าจอ:

doc เน้นตามค่า 14

4. และตอนนี้คุณสามารถเปลี่ยนสีพื้นหลังหรือสีแบบอักษรสำหรับเซลล์ที่เลือกได้ตามต้องการ


งานยุ่งในวันหยุดสุดสัปดาห์ใช้ Kutools สำหรับ Excel,
ให้คุณมีวันหยุดสุดสัปดาห์ที่ผ่อนคลายและสนุกสนาน!

ในวันหยุดสุดสัปดาห์เด็ก ๆ ส่งเสียงร้องอยากออกไปเล่น แต่มีงานมากเกินไปที่จะทำให้คุณมีเวลาอยู่กับครอบครัว ดวงอาทิตย์ชายหาดและทะเลอยู่ไกล ๆ ? Kutools สำหรับ Excel ช่วยให้คุณสามารถ ไขปริศนา Excel ประหยัดเวลาในการทำงาน

รูปชายหาด
  •  การได้รับการเลื่อนตำแหน่งและการขึ้นเงินเดือนไม่ใช่เรื่องไกลตัว
  •  มีคุณสมบัติขั้นสูง แก้ปัญหาสถานการณ์ของแอปพลิเคชัน ฟีเจอร์บางอย่างช่วยประหยัดเวลาในการทำงานได้ถึง 99%
  •  เป็นผู้เชี่ยวชาญ Excel ใน 3 นาทีและรับการยอมรับจากเพื่อนร่วมงานหรือเพื่อนของคุณ
  •  ไม่จำเป็นต้องค้นหาโซลูชันจาก Google อีกต่อไปบอกลาสูตรที่เจ็บปวดและรหัส VBA
  •  การดำเนินการซ้ำ ๆ ทั้งหมดสามารถทำได้ด้วยการคลิกเพียงไม่กี่ครั้งปลดปล่อยมือที่เหนื่อยล้าของคุณ
  •  เพียง $ 39 แต่คุ้มค่ากว่าการสอน Excel $ 4000 ของคนอื่น
  •  ได้รับเลือกจากชนชั้นสูง 110,000 คนและ บริษัท ที่มีชื่อเสียงกว่า 300 บริษัท
  •  ทดลองใช้ฟรี 30 วันและคืนเงินเต็มจำนวนภายใน 60 วันโดยไม่มีเหตุผลใด ๆ
  •  เปลี่ยนวิธีการทำงานแล้วเปลี่ยนรูปแบบชีวิตของคุณ!
 

Comments (79)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Good Day,

I have a schedule with different course modules that can be placed in different order ( 1 is metal, 2 is machining, 3 is refinishing, etc.) depending on course director preferences and staff availability.

What I am trying to do to wrap up the spreadsheet is color code the modules across the months based on their order in the overall course. So if Metal is first and is 35 days long, the first 35 days are background colored blue, but if machining is first and is 20 days long, then the first 20 days are purple.

How can you do and if statement that refers to a separate cell for the initial number of days, AND color the cells based on the range between 1 and 20 or 35 or whatever?

Can I do a conditional formatting If statement with a range between numbers?

This would have to be applied to all the modules (therefor multiple conditional formatting formulas) to account for any module being in any place in the order.
That is the issue I have. Please offer any suggestions. Note that I have built the spreadsheet without VBA. (I've never had the opportunity to learn it)
This comment was minimized by the moderator on the site
Can I give colour for a row of values with respect to previous value for a whole row.
Eg

23

45

32

56

can I give red for 23 and green for 45 and again red for 32 as it is less than the previous value and green for 56 as it is more than 32.
This comment was minimized by the moderator on the site
I do get to change a cell colour according to the text or letter in fill in the cell e.g.-H=YELLOW,E=GREEN
This comment was minimized by the moderator on the site
Hello, VANESSA,
For solving your problem, please apply the Conditional Formatting feature, in the New Formatting Rule dialog box, choose the conditions as following screenshot shown:
This comment was minimized by the moderator on the site
how do i change the colour of cell depending on what is in that cell IE. Y=green N=red.

thats how i need it if it has Y riten in the cell it turns green?
This comment was minimized by the moderator on the site
Hello, Leon,
To highlight the cells based on the cell value, you should apply the Conditional Formatting feature, go to the New Formatting Rule dialog box, and then do as the following screenshot shown to highlight the cells which are Y located as green:

Do with the same way to format the cells N as red color.

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
Trying to get a cell to highlight if its above a certain number, the problem is that the cell includes the number and a date. Is there a way i can get it to just look at the number? The cell will include a number+date.....1400(7/2/2018). I need the formulate just to look at the 1400 and not the date.
any ideas?
thanks
Z
This comment was minimized by the moderator on the site
Sir, I have value in cell A10, in A12. Now I entered a simple formula in A15 subtracting these (A10-A12). I want background color of result cell (A15) in green if A10 is large (means result in positive number) and background color in red if A12 is large ( result in negative number). Please provide solution
This comment was minimized by the moderator on the site
Hello,
You can select the formula cells, and then apply the Conditional Formatting > Greater than (0)-format it green, and then Less Than (0)-format it red, see screenshot:

Please try it, hope it can help you, thank you!
This comment was minimized by the moderator on the site
If I have a date in a cell, how do I make it change to orange when it is within 30 days of coming due, yellow when it is within 15 days of coming due and red when it exceeds the date (past due)
This comment was minimized by the moderator on the site
I thought this color of cells by value was going to be a real pain. It could not have been explained more easily and clearly. Thanks. It took no less than 1-2 minutes to understand what to do.
This comment was minimized by the moderator on the site
HI, I want if i change any value or number in any cell then that cell text color should get change for e.g. if number in any cell is 100 and I have to change it as 98 then that cell text 98 should change into red color. Is it possible in Excel?? Do clarify please
This comment was minimized by the moderator on the site
So I am creating a excel spreadsheet for fire department reports. What I am looking for is it to calculate the days a report is overdue, unless it has been completed: Column A Column B Column C Column D Column E Column F Incident # Incident Date Todays Date Completed Date Days Overdue Todays Date I want column B subtracting Column C to calculate in column E unless Column D is complete. I hope this makes sense. I want to use the conditional formatting to show me in colors how long a report is overdue (with the 3 color scale). I have the formula for the number of days it is overdue to have a correct value and color scale, but I want it to remain green when the report has been completed.
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