You can use conditional formatting to format the colors of these two cells based on values.
Conditional Formatting
Open the conditional formatting
Select the two cells that will be filled with color, a with the value and the result (Good, excellent, etc.)
Open the Formatação Condicional
> Nova Regra
> Usar uma fórmula para determinar quais células devem ser formatadas
Format by formula
On the field Formatar valores em que esta fórmula é verdadeira
insert the range of values in which the formula will fill the color, for example:
- For values between 5 and 6:
=E($A$5>=5;$A$5<6)
- For values between 6 and 7:
=E($A$5>=6;$A$5<7)
- And so on and so forth...
Choose color for formatting
In the field of Visualização
> click on Formatar...
A window will open and the Preenchimento
must be selected, in this tab, choose the fill color for the formula values.
Formatting should look like this:
To check the formatting and edit, go to Formatação Condicional
> Gerenciar Regras...
Select Esta Planilha
in Mostrar regras de formatação para:
, where the formatting should be this way:
Status Value
To change the value of the table, the following formula must be filled with the conditional values for face status.
=SES(E($A$5>=4;$A$5<5);"QUESTIONÁVEL";E($A$5>=5;$A$5<6);"BOM")
Where to add other values, just insert E(Célula_Referência>=valor_mín;Célula_Referência<valor_máx);"STATUS"
within the =SES(lógica_condicional1;"status1";lógica_condicional2;"status2";...;lógica_condicionalN;"statusN")
Upshot
What technology do you want to use to solve the problem? VBA, VS Tools for Office, OOXML, Sharepoint...?
– Oralista de Sistemas