Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
color fill cells based on IF function or formula Victor Jones Excel Worksheet Functions 1 November 23rd 05 03:17 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM
Formula to count the cells in a range that have a fill color. Slainteva Excel Discussion (Misc queries) 2 January 19th 05 08:25 PM
Formula to count the cells in a range that have a fill color. Molly F Excel Discussion (Misc queries) 2 January 19th 05 06:15 PM


All times are GMT +1. The time now is 10:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"