Ga naar hoofdinhoud

Hoe verander je de achtergrond- of letterkleur op basis van de celwaarde in Excel?

Wanneer u met enorme gegevens in Excel te maken heeft, wilt u misschien wat waarde uitkiezen en deze markeren met een specifieke achtergrond- of letterkleur. In dit artikel wordt besproken hoe u de achtergrond- of lettertypekleur snel kunt wijzigen op basis van celwaarden in Excel.


Methode 1: verander de achtergrond- of letterkleur dynamisch op basis van de celwaarde met voorwaardelijke opmaak

 

De Conditionele opmaak functie kan u helpen om de waarden groter dan x, kleiner dan y of tussen x en y te markeren.

Stel dat u een gegevensbereik heeft en u nu de waarden tussen 80 en 100 moet kleuren, voer dan de volgende stappen uit:

1. Selecteer het celbereik waarin u bepaalde cellen wilt markeren en klik op Home > Conditionele opmaak > Nieuwe regel, zie screenshot:

doc highlight op waarde 1

2. In de Nieuwe opmaakregel dialoogvenster, selecteert u het Formatteer alleen cellen met item in het Selecteer een regeltype box, en in de Formatteer alleen cellen met sectie, specificeer de voorwaarden die u nodig heeft:

  • Selecteer in de eerste vervolgkeuzelijst het Celwaarde;
  • Selecteer in het tweede vervolgkeuzemenu de criteria:tussen;
  • Voer in het derde en vierde vak de filtervoorwaarden in, zoals 80, 100.

doc highlight op waarde 2

3. Dan klikken Formaat knop, in de Cellen opmaken dialoogvenster, stel de achtergrond- of letterkleur als volgt in:

Verander de achtergrondkleur op celwaarde: Wijzig de lettertypekleur op celwaarde
Klik Vulling tabblad en kies vervolgens een achtergrondkleur die u mooi vindt Klik doopvont tabblad en selecteer de lettertypekleur die u nodig hebt.
doc highlight op waarde 3 doc highlight op waarde 4

4. Nadat u de achtergrond- of letterkleur heeft geselecteerd, klikt u op OK > OK om de dialoogvensters te sluiten, en nu worden de specifieke cellen met een waarde tussen 80 en 100 gewijzigd in de bepaalde achtergrond- of letterkleur in de selectie. Zie screenshot:

Markeer specifieke cellen met achtergrondkleur: Markeer specifieke cellen met lettertypekleur:
doc highlight op waarde 5 doc highlight op waarde 6

NoteDe Conditionele opmaak is een dynamische functie, de celkleur zal veranderen als de gegevens veranderen.


Methode 2: verander de achtergrond- of letterkleur statisch op basis van de celwaarde met de zoekfunctie

 

Soms moet u een specifieke opvul- of lettertypekleur toepassen op basis van de celwaarde en ervoor zorgen dat de opvul- of lettertypekleur niet verandert wanneer de celwaarde verandert. In dit geval kunt u de VIND DE PLEK DIE PERFECT VOOR JOU IS functie om alle specifieke celwaarden te vinden en vervolgens de achtergrond- of letterkleur naar wens aan te passen.

Als u bijvoorbeeld de achtergrond- of lettertypekleur wilt wijzigen als de celwaarde "Excel" -tekst bevat, doet u dit als volgt:

1. Selecteer het gegevensbereik dat u wilt gebruiken en klik op Home > Zoek en selecteer > VIND DE PLEK DIE PERFECT VOOR JOU IS, zie screenshot:

doc highlight op waarde 7

2. In de Zoeken en vervangen dialoogvenster onder het VIND DE PLEK DIE PERFECT VOOR JOU IS typ de waarde die u wilt zoeken in het Zoeken naar tekstvak, zie screenshot:

doc highlight op waarde 8

Tips: Als u de waarden hoofdlettergevoelig wilt vinden of de volledige celinhoud wilt matchen, klikt u op de Opties knop om de geavanceerde zoekopties te krijgen, zoals 'match Case"En"Match volledige celinhoud"zoals je nodig hebt.

3. En klik dan Vind alle Klik op een item in het vak met zoekresultaten en druk vervolgens op Ctrl + A zie screenshot om alle gevonden items te selecteren:

doc highlight op waarde 9

4. Klik ten slotte op Sluiten knop om dit dialoogvenster te sluiten. Nu kunt u een achtergrond- of lettertypekleur invullen voor deze geselecteerde waarden, zie screenshot:

Pas de achtergrondkleur toe voor de geselecteerde cellen: Pas de lettertypekleur toe voor de geselecteerde cellen:
doc highlight op waarde 10 doc highlight op waarde 11

Methode 3: verander de achtergrond- of letterkleur op basis van de celwaarde statisch met Kutools voor Excel

 

Kutools for Excel's Super zoeken functie ondersteunt veel voorwaarden voor het vinden van waarden, tekstreeksen, datums, formules, opgemaakte cellen enzovoort. Nadat u de overeenkomende cellen hebt gevonden en geselecteerd, kunt u de achtergrond- of lettertypekleur naar wens wijzigen.

Na het installeren van Kutools for Excel, doe dit als volgt:

1. Selecteer het gegevensbereik dat u wilt zoeken en klik op Kutools > Super zoeken, zie screenshot:

doc highlight op waarde 12

2. In de Super zoeken Voer de volgende bewerkingen uit:

  • (1.) Klik eerst op het Values optie icoon;
  • (2.) Kies het zoekbereik uit de Binnen drop-down, in dit geval zal ik kiezen Selectie;
  • (3.) Van de Type vervolgkeuzelijst, selecteer de criteria die u wilt gebruiken;
  • (4.) Klik vervolgens VIND DE PLEK DIE PERFECT VOOR JOU IS knop om alle overeenkomende resultaten in de keuzelijst weer te geven;
  • (5.) Klik ten slotte op kies knop om de cellen te selecteren.

doc highlight op waarde 13

3. En dan zijn alle cellen die aan de criteria voldoen in één keer geselecteerd, zie screenshot:

doc highlight op waarde 14

4. En nu kunt u de achtergrondkleur of lettertypekleur voor de geselecteerde cellen naar behoefte wijzigen.


Druk werk in het weekend, gebruik Kutools for Excel,
geeft je een ontspannend en vreugdevol weekend!

In het weekend schreeuwen de kinderen om te gaan spelen, maar er is te veel werk om je heen om tijd met het gezin te hebben. De zon, het strand en de zee zo ver weg? Kutools for Excel helpt u bij het los Excel-puzzels op, bespaar werktijd.

foto strand
  •  Promotie krijgen en salaris verhogen zijn niet ver weg;
  •  Bevat geavanceerde functies, los toepassingsscenario's op, sommige functies besparen zelfs 99% werktijd;
  •  Word Excel-expert in 3 minuten en krijg erkenning van je collega's of vrienden;
  •  U hoeft niet langer naar oplossingen van Google te zoeken, zeg gedag tegen pijnlijke formules en VBA-codes;
  •  Alle herhaalde bewerkingen kunnen worden voltooid met slechts enkele klikken, zodat u uw vermoeide handen bevrijdt;
  •  Slechts $ 39, maar de moeite waard dan de Excel-tutorial van $ 4000 van anderen;
  •  Wordt gekozen door 110,000 elites en 300+ bekende bedrijven;
  •  Gratis proefperiode van 30 dagen en binnen 60 dagen volledig geld terug zonder enige reden;
  •  Verander de manier waarop u werkt en verander vervolgens uw levensstijl!
 

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