ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change cell colour according to conditions (https://www.excelbanter.com/excel-programming/315509-change-cell-colour-according-conditions.html)

696796

Change cell colour according to conditions
 

Hi all,

For example's sake and not to sound too confusing here's what i want t
achieve.

I need to get a cell on a spreadsheet to change colour according to
result which is calculated. So for example, in cell A1, the figur
used for the calculation is placed. Cell B1, is where the answer wil
be held. I want cell B1 to go green if the answer is between 1 and 5
and the cell to turn red if anything else.

I'm guessing i need an if statement

if B1 less then 1 or more than 5
cellB1 = red

else

cellB1 = green

But how exactly is this done?

Any feedback and help is much apreciated,

Alex Marchan

--
69679
-----------------------------------------------------------------------
696796's Profile: http://www.excelforum.com/member.php...fo&userid=1597
View this thread: http://www.excelforum.com/showthread.php?threadid=27444


mangesh_yadav[_152_]

Change cell colour according to conditions
 

Select the cell whose color you want to change. In the toolbar go t
Format Conditional Format. Enter the required condition i.e. if Cel
Value is between and in the boxes enter 1 and 5.

- Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=27444



All times are GMT +1. The time now is 03:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com