Saltar al contenido principal

¿Cómo cambiar el fondo o el color de la fuente según el valor de la celda en Excel?

Cuando maneja grandes datos en Excel, es posible que desee seleccionar algún valor y resaltarlos con un fondo o un color de fuente específicos. Este artículo habla sobre cómo cambiar rápidamente el color de fondo o fuente en función de los valores de celda en Excel.


Método 1: cambie el fondo o el color de la fuente según el valor de la celda de forma dinámica con el formato condicional

 

La Formato condicional La función puede ayudarlo a resaltar los valores mayores que x, menores que y, o entre xey.

Suponiendo que tiene un rango de datos, y ahora necesita colorear los valores entre 80 y 100, siga los siguientes pasos:

1. Seleccione el rango de celdas en las que desea resaltar ciertas celdas y luego haga clic en Inicio > Formato condicional > Nueva regla, ver captura de pantalla:

doc resaltar por valor 1

2. En la Nueva regla de formato cuadro de diálogo, seleccione el Aplicar formato solo a las celdas que contienen artículo en el Seleccione un tipo de regla caja, y en el Dar formato solo a celdas con sección, especifique las condiciones que necesita:

  • En el primer cuadro desplegable, seleccione el Valor de celda;
  • En el segundo cuadro desplegable, seleccione los criterios:entre;
  • En el tercer y cuarto cuadro, ingrese las condiciones del filtro, como 80, 100.

doc resaltar por valor 2

3. Luego, haz clic Formato botón, en el Formato de celdas cuadro de diálogo, establezca el color de fondo o fuente como este:

Cambie el color de fondo por valor de celda: Cambiar el color de la fuente por valor de celda
Haga Clic en Llene pestaña, y luego elige un color de fondo que te guste Haga Clic en Fuente pestaña, y seleccione el color de fuente que necesita.
doc resaltar por valor 3 doc resaltar por valor 4

4. Después de seleccionar el fondo o el color de la fuente, haga clic en OK > OK para cerrar los cuadros de diálogo, y ahora, las celdas específicas con un valor entre 80 y 100 se cambian a cierto color de fondo o fuente en la selección. Ver captura de pantalla:

Resalte celdas específicas con color de fondo: Resalte celdas específicas con color de fuente:
doc resaltar por valor 5 doc resaltar por valor 6

Note: Los Formato condicional es una función dinámica, el color de la celda cambiará a medida que cambien los datos.


Método 2: cambie el fondo o el color de la fuente según el valor de la celda de forma estática con la función Buscar

 

A veces, es necesario aplicar un color de fuente o relleno específico según el valor de la celda y hacer que el color de la fuente o el relleno no cambie cuando cambia el valor de la celda. En este caso, puede utilizar el Encuentre función para encontrar todos los valores de celda específicos y luego cambiar el fondo o el color de la fuente según sus necesidades.

Por ejemplo, si desea cambiar el fondo o el color de la fuente si el valor de la celda contiene texto "Excel", haga lo siguiente:

1. Seleccione el rango de datos que desea usar y luego haga clic en Inicio > Buscar y seleccionar > Encuentre, ver captura de pantalla:

doc resaltar por valor 7

2. En la Buscar y reemplazar cuadro de diálogo, debajo del Encuentre pestaña, ingrese el valor que desea encontrar en la Encuentra lo que cuadro de texto, ver captura de pantalla:

doc resaltar por valor 8

Tips: Si necesita encontrar los valores que distinguen entre mayúsculas y minúsculas o hacer coincidir todo el contenido de la celda, haga clic en el Opciones para obtener las opciones de búsqueda avanzada, como "Coincidencia"Y"Coincidir con todo el contenido de la celda" como necesites.

3. Y luego, haga clic en Encuentra todos , en el cuadro de resultados de búsqueda, haga clic en cualquier elemento y luego presione Ctrl + A para seleccionar todos los elementos encontrados, vea la captura de pantalla:

doc resaltar por valor 9

4. Por último, haz clic Cerrar para cerrar este cuadro de diálogo. Ahora, puede rellenar un color de fondo o fuente para estos valores seleccionados, vea la captura de pantalla:

Aplica el color de fondo para las celdas seleccionadas: Aplicar el color de fuente para las celdas seleccionadas:
doc resaltar por valor 10 doc resaltar por valor 11

Método 3: cambie el fondo o el color de la fuente según el valor de la celda estáticamente con Kutools para Excel

 

Kutools for Excel, Super hallazgo La función admite muchas condiciones para buscar valores, cadenas de texto, fechas, fórmulas, celdas formateadas, etc. Después de encontrar y seleccionar las celdas coincidentes, puede cambiar el fondo o el color de la fuente a su gusto.

Después de instalar Kutools for Excel, haz lo siguiente:

1. Seleccione el rango de datos que desea buscar y luego haga clic en Kutools > Super hallazgo, ver captura de pantalla:

doc resaltar por valor 12

2. En la Super hallazgo panel, realice las siguientes operaciones:

  • (1.) Primero, haga clic en el Nuestros Valores icono de opción;
  • (2.) Elija el alcance de búsqueda del En un radio de desplegable, en este caso, elegiré Selección;
  • (3.) Desde el Tipo de Propiedad lista desplegable, seleccione los criterios que desea utilizar;
  • (4.) Luego haga clic en Encuentre botón para listar todos los resultados correspondientes en el cuadro de lista;
  • (5.) Por fin, haga clic en Seleccione para seleccionar las celdas.

doc resaltar por valor 13

3. Y luego, todas las celdas que coinciden con los criterios se han seleccionado a la vez, vea la captura de pantalla:

doc resaltar por valor 14

4. Y ahora, puede cambiar el color de fondo o el color de la fuente de las celdas seleccionadas según lo necesite.


Trabajo ocupado el fin de semana, use Kutools for Excel,
te da un fin de semana relajante y alegre!

El fin de semana, los niños claman por salir a jugar, pero hay demasiado trabajo a tu alrededor como para tener tiempo para acompañar a la familia. ¿El sol, la playa y el mar tan lejos? Kutools for Excel le ayuda a resuelve rompecabezas de Excel, ahorra tiempo de trabajo.

pic playa
  •  Conseguir un ascenso y aumentar el sueldo no está lejos;
  •  Contiene funciones avanzadas, resuelve escenarios de aplicaciones, algunas funciones incluso ahorran un 99% de tiempo de trabajo;
  •  Conviértase en un experto en Excel en 3 minutos y obtenga el reconocimiento de sus colegas o amigos;
  •  Ya no es necesario buscar soluciones de Google, decir adiós a fórmulas dolorosas y códigos VBA;
  •  Todas las operaciones repetidas se pueden completar con solo varios clics, libere sus manos cansadas;
  •  Solo $ 39 pero vale más que el tutorial de Excel de $ 4000 de otras personas;
  •  Ser elegido por 110,000 élites y más de 300 empresas conocidas;
  •  Prueba gratuita de 30 días y devolución total del dinero en 60 días sin ningún motivo;
  •  ¡Cambie su forma de trabajar y luego cambie su estilo de vida!
 

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