Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default conditional formatting

I want to write a function that will enter text in a cell if a different cell
has yellow fill color.

Like this:

if cell A1 is yellow then put the text "caution" in this cell that has
the formula in it [=if(A1=yellow,"caution", "")]

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default conditional formatting

If you have manually coloured the cell yellow, then you cannot do what
you want to do with a standard formula (you could use a user-defined
function). However, if the yellow colour is the result of conditional
formatting, then you can apply the formula for that to the cell to
return "Caution".

Hope this helps.

Pete

On Mar 7, 3:52*pm, baronmarsh
wrote:
I want to write a function that will enter text in a cell if a different cell
has yellow fill color.

Like this:

if cell A1 is yellow then put the text "caution" in this cell that has
the formula in it *[=if(A1=yellow,"caution", "")]


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default conditional formatting

Why not do it the other way around.

Enter "caution" in the cell and have the cell Conditionally Formatted to turn
yellow when the cell is "caution".


Gord Dibben MS Excel MVP

On Fri, 7 Mar 2008 07:52:01 -0800, baronmarsh
wrote:

I want to write a function that will enter text in a cell if a different cell
has yellow fill color.

Like this:

if cell A1 is yellow then put the text "caution" in this cell that has
the formula in it [=if(A1=yellow,"caution", "")]


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
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional formatting max JH Excel Discussion (Misc queries) 13 August 29th 07 08:07 PM
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 that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 10:18 AM.

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

About Us

"It's about Microsoft Excel"