Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional values based on formatting?

Hello,

I'd like to have Excel create a value based on a formula in a cell, if that
cell is highlighted/filled. It's kind of the inverse of conditional
formatting.

For instance, I'm setting up a spreadsheet to track who is involved in
various activities. I'd like to set it up so that if I fill a cell with
yellow, and that cell contains a "dormant" equation that equals zero
otherwise, that cell automatically performs the calculation to create a value.

Is this possible? Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Conditional values based on formatting?

You can employ Chip Pearson's CellColorIndex UDF in your formula.

=IF(cellcolorindex(C1)=6,"",B1*B2) entered in C1

Chip's site..............

http://www.cpearson.com/excel/colors.htm


Gord Dibben MS Excel MVP


On Tue, 22 May 2007 08:58:06 -0700, lerjia
wrote:

Hello,

I'd like to have Excel create a value based on a formula in a cell, if that
cell is highlighted/filled. It's kind of the inverse of conditional
formatting.

For instance, I'm setting up a spreadsheet to track who is involved in
various activities. I'd like to set it up so that if I fill a cell with
yellow, and that cell contains a "dormant" equation that equals zero
otherwise, that cell automatically performs the calculation to create a value.

Is this possible? Thank you!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional values based on formatting?

Thank you, Gord! that's pretty cool...

"Gord Dibben" wrote:

You can employ Chip Pearson's CellColorIndex UDF in your formula.

=IF(cellcolorindex(C1)=6,"",B1*B2) entered in C1

Chip's site..............

http://www.cpearson.com/excel/colors.htm


Gord Dibben MS Excel MVP


On Tue, 22 May 2007 08:58:06 -0700, lerjia
wrote:

Hello,

I'd like to have Excel create a value based on a formula in a cell, if that
cell is highlighted/filled. It's kind of the inverse of conditional
formatting.

For instance, I'm setting up a spreadsheet to track who is involved in
various activities. I'd like to set it up so that if I fill a cell with
yellow, and that cell contains a "dormant" equation that equals zero
otherwise, that cell automatically performs the calculation to create a value.

Is this possible? 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
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting Based on If and Or luvthavodka Excel Discussion (Misc queries) 5 August 10th 06 10:13 PM
Conditional Formatting based on other cells userzero Excel Worksheet Functions 4 April 6th 06 11:16 PM
Conditional formatting based on category Scott Bucher Charts and Charting in Excel 1 March 22nd 06 09:47 PM


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