Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Cell color depending on statement


I have a cell where i have a if

=if(a2<a3;"OK";"ERROR")

What I would like is that it still says OK or ERROR but also have a
color. Green for ok red for error..

Any ideas


--
kvadre
------------------------------------------------------------------------
kvadre's Profile: http://www.excelforum.com/member.php...o&userid=37023
View this thread: http://www.excelforum.com/showthread...hreadid=567451

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Cell color depending on statement

You can use Conditional Formating for this (Format menu). Just add the
conditions that the values should be exactly OK or ERROR and set the colors
you want.

Hope this helps,
Miguel.

"kvadre" wrote:


I have a cell where i have a if

=if(a2<a3;"OK";"ERROR")

What I would like is that it still says OK or ERROR but also have a
color. Green for ok red for error..

Any ideas


--
kvadre
------------------------------------------------------------------------
kvadre's Profile: http://www.excelforum.com/member.php...o&userid=37023
View this thread: http://www.excelforum.com/showthread...hreadid=567451


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Cell color depending on statement

Take a look at Format|Conditional formatting
Cell value is
Equal to
Ok
(set a nice format)

add another condition
cell value is
equal to
error
set a nice format



kvadre wrote:

I have a cell where i have a if

=if(a2<a3;"OK";"ERROR")

What I would like is that it still says OK or ERROR but also have a
color. Green for ok red for error..

Any ideas

--
kvadre
------------------------------------------------------------------------
kvadre's Profile: http://www.excelforum.com/member.php...o&userid=37023
View this thread: http://www.excelforum.com/showthread...hreadid=567451


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 301
Default Cell color depending on statement

Use Format/conditional formatting and enter value of OK & select format of
Green (click Format button, then Patterns tab), then click the Add button,
enter value of ERROR and select format of Red.
Bob Umlas
Excel MVP

"kvadre" wrote in
message ...

I have a cell where i have a if

=if(a2<a3;"OK";"ERROR")

What I would like is that it still says OK or ERROR but also have a
color. Green for ok red for error..

Any ideas


--
kvadre
------------------------------------------------------------------------
kvadre's Profile:

http://www.excelforum.com/member.php...o&userid=37023
View this thread: http://www.excelforum.com/showthread...hreadid=567451



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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Need help with an embedded IF statement Lari Excel Worksheet Functions 8 June 17th 06 04:59 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 07:49 AM.

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"