Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default If Stmt using background color to evaluate

Is there a way to do an If statement that will evaluate the background colour
of a cell?
ie. =If(B8.cell.Interior.colorindex=6, "", B8.cell_value)
I want to highlight certain rows in a worksheet and have a second worksheet
copy over those values unless the background color of the cell is a
particular color.

I've got an if stmt to filter out blank cells (without this it prints 0)
=IF (+Sheet2!A1="","",+Sheet2!A1)
I want to embed a 2nd IF stmnt in here to evaluate the background color of
the cell.

Ideally what I want to do is, create a second copy of a worksheet without
the values highlighted in color and be able to delete the worksheet with the
colored items for general distribution while the main workbook has limited
distribution.
ie. 2 worksheets full of data, some of which is confidential. Have a 3rd
worksheet that replicates the data without the confidential information.
Save the workbook as another name, delete the confidential worksheet and
distribute.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default If Stmt using background color to evaluate

See:

http://www.cpearson.com/excel/colors.aspx
--
Gary''s Student - gsnu200846


"Maureen" wrote:

Is there a way to do an If statement that will evaluate the background colour
of a cell?
ie. =If(B8.cell.Interior.colorindex=6, "", B8.cell_value)
I want to highlight certain rows in a worksheet and have a second worksheet
copy over those values unless the background color of the cell is a
particular color.

I've got an if stmt to filter out blank cells (without this it prints 0)
=IF (+Sheet2!A1="","",+Sheet2!A1)
I want to embed a 2nd IF stmnt in here to evaluate the background color of
the cell.

Ideally what I want to do is, create a second copy of a worksheet without
the values highlighted in color and be able to delete the worksheet with the
colored items for general distribution while the main workbook has limited
distribution.
ie. 2 worksheets full of data, some of which is confidential. Have a 3rd
worksheet that replicates the data without the confidential information.
Save the workbook as another name, delete the confidential worksheet and
distribute.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default If Stmt using background color to evaluate

I'm hoping to do this just with an IF stmnt in a cell and not having to do
macros or VB code.

"Gary''s Student" wrote:

See:

http://www.cpearson.com/excel/colors.aspx
--
Gary''s Student - gsnu200846


"Maureen" wrote:

Is there a way to do an If statement that will evaluate the background colour
of a cell?
ie. =If(B8.cell.Interior.colorindex=6, "", B8.cell_value)
I want to highlight certain rows in a worksheet and have a second worksheet
copy over those values unless the background color of the cell is a
particular color.

I've got an if stmt to filter out blank cells (without this it prints 0)
=IF (+Sheet2!A1="","",+Sheet2!A1)
I want to embed a 2nd IF stmnt in here to evaluate the background color of
the cell.

Ideally what I want to do is, create a second copy of a worksheet without
the values highlighted in color and be able to delete the worksheet with the
colored items for general distribution while the main workbook has limited
distribution.
ie. 2 worksheets full of data, some of which is confidential. Have a 3rd
worksheet that replicates the data without the confidential information.
Save the workbook as another name, delete the confidential worksheet and
distribute.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default If Stmt using background color to evaluate

No can do. That's why Chip developed his macro.

Regards,
Fred.

"Maureen" wrote in message
...
I'm hoping to do this just with an IF stmnt in a cell and not having to do
macros or VB code.

"Gary''s Student" wrote:

See:

http://www.cpearson.com/excel/colors.aspx
--
Gary''s Student - gsnu200846


"Maureen" wrote:

Is there a way to do an If statement that will evaluate the background
colour
of a cell?
ie. =If(B8.cell.Interior.colorindex=6, "", B8.cell_value)
I want to highlight certain rows in a worksheet and have a second
worksheet
copy over those values unless the background color of the cell is a
particular color.

I've got an if stmt to filter out blank cells (without this it prints
0)
=IF (+Sheet2!A1="","",+Sheet2!A1)
I want to embed a 2nd IF stmnt in here to evaluate the background color
of
the cell.

Ideally what I want to do is, create a second copy of a worksheet
without
the values highlighted in color and be able to delete the worksheet
with the
colored items for general distribution while the main workbook has
limited
distribution.
ie. 2 worksheets full of data, some of which is confidential. Have a
3rd
worksheet that replicates the data without the confidential
information.
Save the workbook as another name, delete the confidential worksheet
and
distribute.


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
Checkbox to change background color, font color and remove/ add bo Sara Excel Discussion (Misc queries) 2 May 1st 23 11:43 AM
background color Wayne Knazek via OfficeKB.com Excel Discussion (Misc queries) 2 March 12th 08 10:19 PM
how can I conditionally change font color, or background color? MOHA Excel Worksheet Functions 3 August 21st 06 06:57 PM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM
Excel 2003 Font Color and Background Color DrankPA6 Excel Discussion (Misc queries) 1 August 12th 05 11:43 PM


All times are GMT +1. The time now is 12:41 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"