ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   use an if formula to fill cells with color (https://www.excelbanter.com/excel-worksheet-functions/183262-use-if-formula-fill-cells-color.html)

Parker

use an if formula to fill cells with color
 
I am creating a table to show employees new and old,
in colum A I have the employee name in colum B I have whether or not they
are still working for the company and in columns C and D I have information I
would like to hide by filling black if they don't work with us anymore.

I am using excel 2007, I would greatly appreciate any help you could provide
in the means of a formula to accomplish this.

Thank you

curious engineer[_2_]

use an if formula to fill cells with color
 
I will assume that the data begins in A1,B1,C1,D1 even though those probably
have the column titles in them.

C1 and D1 need to be selected here and go to the Format menu and select
conditional format. The drop down menu should default to Cell Value Is. You
need to change that to Formula Is.

Type the following into the formula box
=AND($B1="Yes")
Then choose the format to fill in black.

This is assuming you have Yes in column B if they still work there, if not
whatever word you use is to be used in the formula as well. You can then copy
this to all cells in column D and the rest of the cells in column C.

Hope this helps

"Parker" wrote:

I am creating a table to show employees new and old,
in colum A I have the employee name in colum B I have whether or not they
are still working for the company and in columns C and D I have information I
would like to hide by filling black if they don't work with us anymore.

I am using excel 2007, I would greatly appreciate any help you could provide
in the means of a formula to accomplish this.

Thank you


T. Valko

use an if formula to fill cells with color
 
I am using excel 2007

Assuming column B contains Y or N

Assume the range of interest is C2:D10

Select the range C2:C10
Home tabStylesConditional FormattingNew RuleUse a formula....

=$B2="N"

Click the Format button
Select the Fill tab
Select a nice shade of black
OK out

--
Biff
Microsoft Excel MVP


"Parker" wrote in message
...
I am creating a table to show employees new and old,
in colum A I have the employee name in colum B I have whether or not they
are still working for the company and in columns C and D I have
information I
would like to hide by filling black if they don't work with us anymore.

I am using excel 2007, I would greatly appreciate any help you could
provide
in the means of a formula to accomplish this.

Thank you





All times are GMT +1. The time now is 01:51 AM.

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