Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel Macro for colouring cells

Hi

I would like to colour a sum cell - ie forecast less Actual

if the Actual is greater than forecast 105% I want the cell to be red

if the Actual is less than forecast < 95% I want the cell to be green

if the actual v forecast is close - between 95% and 105% then the cell
should be white

if someone can help we with this it would be great. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
SR SR is offline
external usenet poster
 
Posts: 18
Default Excel Macro for colouring cells

not good at macro but you can do it by using option Format/conditional
formatting. this one limits to max 3 conditions.
--
sr


"Flash" wrote:

Hi

I would like to colour a sum cell - ie forecast less Actual

if the Actual is greater than forecast 105% I want the cell to be red

if the Actual is less than forecast < 95% I want the cell to be green

if the actual v forecast is close - between 95% and 105% then the cell
should be white

if someone can help we with this it would be great. Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Excel Macro for colouring cells

SR has pointed you in what is probably the best direction - use Conditional
Formatting (under Format in the menu bar) you'll only need to set 2
conditions, in either order,
set one for Value is Less Than (or less than or equal to) 95% choose green
color
set second one for Value Greater Than (or GT or equal to) 105% choose red
color
this leaves you with all other conditions (between 95-105) with the cells
displayed in normal color.
In the area where you enter the parameter, be sure to enter .95 and 1.05

But empty cells will be colored when no value has been calculated in them.


"Flash" wrote:

Hi

I would like to colour a sum cell - ie forecast less Actual

if the Actual is greater than forecast 105% I want the cell to be red

if the Actual is less than forecast < 95% I want the cell to be green

if the actual v forecast is close - between 95% and 105% then the cell
should be white

if someone can help we with this it would be great. Thanks


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
Macro problem in Excel pd Excel Discussion (Misc queries) 2 March 14th 06 05:49 AM
excel 4.0 macro removal tool Sachin Shah Excel Discussion (Misc queries) 0 August 25th 05 04:17 AM
excel 4.0 macro remover tool Sachin Shah Excel Discussion (Misc queries) 0 August 25th 05 04:14 AM
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Cells User Select Locked after upgrade to Excel 2002 TWilson Excel Discussion (Misc queries) 1 August 5th 05 12:22 PM


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