LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default conditional formatting formula

An alternative

=MATCH(D1,{"S","T","L+E","MN","MJ"},0)=(5-MATCH(C1-B1,{539,221,89,55,50},-1)
)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"neowok " wrote in message
...
I need to work out quite a complicated formula for conditional
formatting.

I have column B which will contain a given date.
Column C which will contain another date.
column D which may contain one of "MJ", "MN", "L+E", "S" or "T".


What I need to do is colour column D Green if ANY of the following
statements is true
D1="MJ" AND C1-B1=540
D1="MN" AND C1-B1=222
D1="L+E" AND C1-B1=90
D1="T" AND C1-B1=56
D1="S" AND C1-B1=51

then i can simply adjust those numbers down for yellow and again for
red once i have the formula in place.

Basically a different amount of days notice must be given for each of 5
different types of work (symbolised by the 5 abbreviations above). B
is the date it has been applied for, C is the date they plan to start.
So I need to colour the cell green if the cell contains xx type of work
AND the number of days between B and C is greater than the required
notice (which would be 540 if the cell contained "MJ" for example). So
the formula needs to check which type of work it is, and then check
that enough days notice for that work has been given, if it has then
itll be green.

Thanks


---
Message posted from http://www.ExcelForum.com/



 
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 Formula Missile Excel Discussion (Misc queries) 6 May 24th 10 08:09 AM
Conditional Formatting Formula bdmatlock Excel Worksheet Functions 5 May 21st 08 07:08 PM
Conditional Formatting within a Formula Connie Martin Excel Worksheet Functions 5 February 7th 07 09:30 PM
Conditional formatting is set with a formula, but now I need to ch cstwoplus Excel Discussion (Misc queries) 4 January 31st 07 11:12 PM
Conditional Formatting Formula Cachod1 New Users to Excel 1 March 29th 05 01:57 AM


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