Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Conditional formating for a range of cells

Hi Guys,
Sorry about the confusion and poor explanation.
The formulas as suggested by Ossie or Dallman don't do what I am trying to do:
Columns A through E contain 5 days/week production levels, column F contain
the customer order. What I am trying to do is to examine production against
orders and higlight or shade (same thing) what will be used from production.
To put this into a numeric example:
A B C D E F
5 3 3 4 2 10

if the order is 10, then what will be used from production is 5 + 3 +3 (Then
A, B & C should be shaded or highlited). Since 5 + 3 + 3 = 11 and 11 is
than 10, cell C should be higlighted although it will only be partially used.
In another scenario, if F = 8, A and B should only be shaded
or if F = 15, then A, B, C & D should be shaded.

Trying to generalize what I just explained using an if statement:
If F1 0, shade A1 and continue evaluation, else stop
if F1A1+0, shade B1 and continue evaluation, else stop
if F1A1+B1, shade C1 and continue evaluation, else stop
if F1 A1+B1+C1, shade D1 and continue evaluation else stop
if F1 A1+B1+C1+D1, shade E1 else stop

The question in this case is how to formulate this programatically or using
conditional formating.

Sorry again about the confusion and I hope that this was a clear enough
explanation.
Thanks a lot for your help

Karim

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 Formating on Several Cells Damon Excel Discussion (Misc queries) 6 June 9th 09 06:58 PM
Conditional formating based on other cells Kimti Excel Worksheet Functions 3 June 25th 08 02:29 AM
Using conditional formating to copy range of cells HTawb Excel Discussion (Misc queries) 1 June 22nd 07 10:31 PM
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
Conditional Formating a range Patrick Simonds Excel Programming 2 October 9th 05 12:35 AM


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