Search : in
By :

Conditional formatting with 4 IF statements

Last answer on Feb 25, 2009 1:49:29 am GMT cyberskatergirl, on Sep 24, 2008 11:37:10 am BST 
 Report this message to moderators

Hello,

I am trying to create a VBA code that will affect all cells from J2 to BZ1000.

Column I shows the revised milestone date
COlumn G shows the % complete
COlumn F shows the RAG status
Column J to BZ show a calendar (one week per column).

I have 4 conditions:

=IF(J3<$I3,0,IF($G3<1,AND($F3="G",ISNUMBER(J3)),0)) then J3 colour should be green

=IF(J3<$I3,0,IF($G3<1,AND($F3="A",ISNUMBER(J3)),0)) then J3 colour should be amber

=IF(J3<$I3,0,IF($G3<1,AND($F3="R",ISNUMBER(J3)),0)) then J3 colour should be red

=IF G3=100%, then J3 colour should be blue.



Any idea how to repsent this in VBA code please?

Thanks so much!

A:)

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « Conditional formatting with 4 IF statements » in :
Unlimited Conditional Formatting ShowUnlimited Conditional Formatting Introduction Principle Code Introduction The limitation of MFC (Conditional Formatting) to Excel version 2007 is less than 3. This is very short. Having seen many applications to push the limit, I am...
Fix a rotated screen problem ShowFix a rotated screen problem Solution 1 Solution 2 Solution 3 Solution 4 If you are facing a 90/180 degrees rotation issue with your displayed screen, this can be either due to a problem with your graphic card or a wrong manipulation...
Avoid duplicates in Excel ShowAvoid duplicates in Excel In order to avoid duplication when encoding in a column from an excel sheet: take the conditional format on the first cell under the headings (eg A2) choose the following formula:...
General Terms and Conditions of Use ShowAll Rights Reserved - 2009 - Communitic International Object These General Terms and Conditions are meant to define the ways in which the services of the website en.kioskea.net, hereafter "The Service," are made available, as well as the...
Spreadsheets - Conditional expressions ShowWhat is a Conditional Structure? Conditional structures are instructions that allow to test if a condition is true or not. Conditional structures may be associated together. To successfully execute these tests using logical functions, spreadsheets...

1

availlity, on Sep 24, 2008 6:59:51 pm BST

Hello,

here is a link which might help you a lot :

blogs.msdn.com/excel/archive/2005/10/14/481237.aspx

hope you get what you are in search of there and keeps me informed please

Reply to availlity

2

 Chuck, on Feb 25, 2009 1:49:29 am GMT

Access provides for conditional formatting without the messy CASE SELECT or IF-THEN statements. For an excellent review, look at http://msdn.microsoft.com/en-us/library/aa139965(office.10).­aspx

Reply to Chuck