Fill a cell with a color in excel
Solved
mariang
Posted messages
30
Status
Member
-
chossette9 Posted messages 6855 Registration date Status Contributor Last intervention -
chossette9 Posted messages 6855 Registration date Status Contributor Last intervention -
Hello,
I would like to know if it is possible to fill a cell with a color using a formula.
I have searched several forums and read that the solution would be VBA.
I don't know this software and apparently it is not installed by default with Excel.
Also, I am a novice with Excel, apart from a few basic formulas, VBA seems beyond my "comprehension."
So that's my topic.
I have a table.
When I enter a number that is between a and c, I would like the cell to become green and gray if the number is below or above (without using the "fill color" icon).
Is there a formula for that?
Thank you
Configuration: Windows 7 / Firefox 5.0.1
I would like to know if it is possible to fill a cell with a color using a formula.
I have searched several forums and read that the solution would be VBA.
I don't know this software and apparently it is not installed by default with Excel.
Also, I am a novice with Excel, apart from a few basic formulas, VBA seems beyond my "comprehension."
So that's my topic.
I have a table.
When I enter a number that is between a and c, I would like the cell to become green and gray if the number is below or above (without using the "fill color" icon).
Is there a formula for that?
Thank you
Configuration: Windows 7 / Firefox 5.0.1
15 answers
Hello,
since you sent us your spreadsheet in 2007, I assume you are using that version. So, it should be easy to explain. Just use conditional formatting, nothing more
1°) Select the range on which you want to apply your colors
2°) Home tab / Style sub-tab, click on 'Conditional Formatting' -> Highlight Cell Rules -> Greater Than...
3°) Change the value in the left box (here 180). In the dropdown list, choose custom format, and set the format you want.
4°) Repeat steps 2 and 3 this time with 'Less Than...', specifying 150.
5°) Repeat steps 2 and 3 with 'Between...', specifying 150 and 180.
Best regards.
--
That guy wasn't bright, because he was foolish.
since you sent us your spreadsheet in 2007, I assume you are using that version. So, it should be easy to explain. Just use conditional formatting, nothing more
1°) Select the range on which you want to apply your colors
2°) Home tab / Style sub-tab, click on 'Conditional Formatting' -> Highlight Cell Rules -> Greater Than...
3°) Change the value in the left box (here 180). In the dropdown list, choose custom format, and set the format you want.
4°) Repeat steps 2 and 3 this time with 'Less Than...', specifying 150.
5°) Repeat steps 2 and 3 with 'Between...', specifying 150 and 180.
Best regards.
--
That guy wasn't bright, because he was foolish.