Loncat ke daftar isi utama

Bagaimana cara mengubah latar belakang atau warna font berdasarkan nilai sel di Excel?

Saat Anda menangani data besar di Excel, Anda mungkin ingin memilih beberapa nilai dan menyorotnya dengan latar belakang atau warna font tertentu. Artikel ini membahas tentang cara mengubah latar belakang atau warna font berdasarkan nilai sel di Excel dengan cepat.


Metode 1: Ubah latar belakang atau warna font berdasarkan nilai sel secara dinamis dengan Pemformatan Bersyarat

 

Grafik Format Bersyarat fitur dapat membantu Anda menyorot nilai yang lebih besar dari x, kurang dari y, atau antara x dan y.

Misalkan Anda memiliki berbagai data, dan sekarang Anda perlu mewarnai nilai antara 80 dan 100, lakukan langkah-langkah berikut:

1. Pilih rentang sel yang ingin Anda sorot sel tertentu, lalu klik Beranda > Format Bersyarat > Aturan baru, lihat tangkapan layar:

doc sorot dengan nilai 1

2. di Aturan Pemformatan Baru kotak dialog, pilih Format hanya sel yang berisi item di Pilih Jenis Aturan kotak, dan di Format Hanya Sel dengan bagian, tentukan kondisi yang Anda butuhkan:

  • Di kotak drop-down pertama, pilih Nilai Sel;
  • Di kotak drop-down kedua, pilih kriteria:antara;
  • Di kotak ketiga dan keempat, masukkan kondisi filter, seperti 80, 100.

doc sorot dengan nilai 2

3. Lalu klik dibentuk tombol, di Format Cells kotak dialog, atur latar belakang atau warna font seperti ini:

Ubah warna latar belakang dengan nilai sel: Ubah warna font dengan nilai sel
Klik Mengisi tab, lalu pilih satu warna latar belakang yang Anda suka Klik Font tab, dan pilih warna font yang Anda butuhkan.
doc sorot dengan nilai 3 doc sorot dengan nilai 4

4. Setelah memilih background atau warna font, klik OK > OK untuk menutup dialog, dan sekarang, sel tertentu dengan nilai antara 80 dan 100 diubah menjadi latar belakang atau warna font tertentu dalam pemilihan. Lihat tangkapan layar:

Sorot sel tertentu dengan warna latar belakang: Sorot sel tertentu dengan warna font:
doc sorot dengan nilai 5 doc sorot dengan nilai 6

Note: Para Format Bersyarat adalah fitur dinamis, warna sel akan berubah seiring perubahan data.


Metode 2: Ubah latar belakang atau warna font berdasarkan nilai sel secara statis dengan fungsi Find

 

Terkadang, Anda perlu menerapkan warna isian atau font tertentu berdasarkan nilai sel dan membuat warna isian atau font tidak berubah saat nilai sel berubah. Dalam hal ini, Anda dapat menggunakan Menemukan berfungsi untuk menemukan semua nilai sel tertentu dan kemudian mengubah latar belakang atau warna font sesuai kebutuhan Anda.

Misalnya, Anda ingin mengubah latar belakang atau warna font jika nilai sel berisi teks "Excel", lakukan seperti ini:

1. Pilih rentang data yang ingin Anda gunakan, lalu klik Beranda > Temukan & Pilih > Menemukan, lihat tangkapan layar:

doc sorot dengan nilai 7

2. di Cari dan Ganti kotak dialog, di bawah Menemukan tab, masukkan nilai yang ingin Anda temukan ke dalam Temukan apa kotak teks, lihat tangkapan layar:

doc sorot dengan nilai 8

Tips: Jika Anda perlu menemukan nilai dengan case sensitive atau cocok dengan seluruh konten sel, klik Opsi untuk mendapatkan opsi pencarian lanjutan, seperti "pertandingan Kasus"Dan"Cocokkan seluruh konten sel"seperti yang Anda butuhkan.

3. Dan kemudian, klik Temukan semua tombol, dalam kotak hasil pencarian, klik salah satu item, lalu tekan Ctrl + A untuk memilih semua item yang ditemukan, lihat tangkapan layar:

doc sorot dengan nilai 9

4. Terakhir, klik Penyelesaian tombol untuk menutup dialog ini. Sekarang, Anda dapat mengisi latar belakang atau warna font untuk nilai-nilai yang dipilih ini, lihat tangkapan layar:

Terapkan warna latar belakang untuk sel yang dipilih: Terapkan warna font untuk sel yang dipilih:
doc sorot dengan nilai 10 doc sorot dengan nilai 11

Metode 3: Ubah latar belakang atau warna font berdasarkan nilai sel secara statis dengan Kutools for Excel

 

Kutools untuk Excel'S Temukan Super Fitur mendukung banyak kondisi untuk menemukan nilai, string teks, tanggal, rumus, sel yang diformat, dan sebagainya. Setelah menemukan dan memilih sel yang cocok, Anda dapat mengubah latar belakang atau warna font sesuai keinginan Anda.

Setelah menginstal Kutools untuk Excel, lakukan seperti ini:

1. Pilih rentang data yang ingin Anda temukan, lalu klik Kutools > Temukan Super, lihat tangkapan layar:

doc sorot dengan nilai 12

2. di Temukan Super panel, lakukan operasi berikut:

  • (1.) Pertama, klik Nilai - Nilai ikon opsi;
  • (2.) Pilih lingkup pencarian dari Dalam drop down, dalam hal ini, saya akan memilih Seleksi;
  • (3.) Dari Tipe daftar drop-down, pilih kriteria yang ingin Anda gunakan;
  • (4.) Kemudian klik Menemukan tombol untuk mencantumkan semua hasil yang sesuai ke dalam kotak daftar;
  • (5.) Terakhir, klik Pilih tombol untuk memilih sel.

doc sorot dengan nilai 13

3. Dan kemudian, semua sel yang cocok dengan kriteria telah dipilih sekaligus, lihat tangkapan layar:

doc sorot dengan nilai 14

4. Dan sekarang, Anda dapat mengubah warna latar belakang atau warna font untuk sel yang dipilih sesuai kebutuhan.


Pekerjaan sibuk di akhir pekan, Gunakan Kutools untuk Excel,
memberi Anda akhir pekan yang santai dan menyenangkan!

Di akhir pekan, anak-anak berteriak-teriak pergi bermain, tetapi terlalu banyak pekerjaan di sekitar Anda sehingga Anda tidak punya waktu menemani keluarga. Matahari, pantai, dan laut begitu jauh? Kutools untuk Excel membantu Anda untuk pecahkan teka-teki Excel, hemat waktu kerja.

foto pantai
  •  Dapatkan promosi dan kenaikan gaji tidak jauh;
  •  Berisi fitur-fitur canggih, menyelesaikan skenario aplikasi, beberapa fitur bahkan menghemat 99% waktu kerja;
  •  Menjadi ahli Excel dalam 3 menit, dan dapatkan pengakuan dari kolega atau teman Anda;
  •  Tidak perlu lagi mencari solusi dari Google, ucapkan selamat tinggal pada rumus dan kode VBA yang menyakitkan;
  •  Semua operasi berulang dapat diselesaikan hanya dengan beberapa klik, bebaskan tangan Anda yang lelah;
  •  Hanya $ 39 tapi bernilai dari $ 4000 Excel tutorial orang lain;
  •  Dipilih oleh 110,000 elit dan 300+ perusahaan terkenal;
  •  Uji coba gratis 30 hari, dan uang penuh kembali dalam 60 hari tanpa alasan apa pun;
  •  Ubah cara Anda bekerja, lalu ubah gaya hidup Anda!
 

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