Conditional Formatting - tricky one ( Atleast for me )

javedmati

Board Regular
Joined
Dec 19, 2008
Messages
213
Hi,

I am trying to do the following.

Thu Fri Sat Sun Mon Tue Wed
-----------------------------------------------------
Emp 1 V V 0 0 0 0 0
Emp 2 SL V 0 0 0 0 0
Emp 3 V V 0 0 0 0 0

FYI - V stands for Vacation and SL for Sick Leave.

Currently I am using the following 2 conditional formatting.

1> If the day = SAT or SUN then Mark a cell with one color Say RED
2> If there is a new entry of employee, Say EMP4 then do BOARDERS in that particular row from THU till WED.

On the top of the above 2 conditional formatting I want to do the following.

1> If the value in the cell = V ( Mark with one color )
2> If the value in the cell = SL ( Mark with other color )
3>
4>
....... and so on. There are total 8 possible values that can be entered.

Initially it looked very simple to me but I was not able to do it.

NOTE - The values that are populated in the cell i.e. V,SL etc changes as and when user selects a month from a given drop down. That is, for January The value in say C4 can be V where as for February C4 can be SL. The MACRO should take care of this and should change the color accordingly.

A QUICK RESPONSE TO THIS WILL BE HIGHLY APPRECIATED. Because I have created a Vacation Tracker for my project and we have not yet implemented just because of this one reason.

Thanks in advance.

Regards,
Javed.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi,

Looks like there is some problem. I am not able to download that software with the help of which I can add a screen shot. I can explain further if it is required....

Regards,
Javed.
 
Upvote 0
<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
EFGHIJKLM
5ThuFriSatSunMonTue
6123456
7Emp 1VV00VV
8Emp 2SLSL00SLSL
9Emp 3000000
10Emp 4000000
11Emp 5000000
Monthly View


</body></html>
 
Upvote 0
<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
EFGHIJKLM
5***ThuFriSatSunMonTue
6***123456
7Emp 1VV00VV
8Emp 2SLSL00SLSL
9Emp 3000000
10Emp 4000000
11Emp 5000000
Monthly View


</body></html>

Sorry Folks. I was not sure as to how I should give examples. Just came to know. Let me explain the question once again.

in H7, currently it is showing White background. I want that to be filled with some other colour. So from H7 to M11 wherever the value of the cell is V then it should change the colour.

Note - Current formatting which I already have in place is that, if H5=Sat or if H5=SUN and E7>0 then fill with coffee colour. The same conditional formatting is applied from H7 to M11. Hence J7 to k11 are marked with coffee colour.

But on the top of this, I also want the background colour to change when the value of the cell is V or SL ? ?

Hope it is clear now...
 
Upvote 0
javedmati,

There are total 8 possible values that can be entered.

What are the 8 possible values? And, what color is assigned to each?
Values: Color:
1. V ?
2. SL ?
3. ? ?
4. ? ?
5. ? ?
6. ? ?
7. ? ?
8. ? ?


What version of Excel are you using?

Are you using a new worksheet for each month?


Have a great day,
Stan
 
Upvote 0
<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
EFGHIJKLM
5ThuFriSatSunMonTue
6123456
7Emp 1VV00VV
8Emp 2000000
9Emp 3000000
10Emp 4000000
11Emp 5000000
Monthly View
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E71. / Formula is =$E$7>0Abc
E72. / Formula is =$E$7=0Abc
H71. / Formula is =AP7=84Abc
H72. / Formula is =$E7>0Abc
I71. / Formula is =AQ7=84Abc
I72. / Formula is =$E7>0Abc
J71. / Formula is =AR7=84Abc
J72. / Formula is =$E7>0Abc
K71. / Formula is =AS7=84Abc
K72. / Formula is =$E7>0Abc
L71. / Formula is =AT7=84Abc
L72. / Formula is =$E7>0Abc
L73. / Cell Value equal to ="V"Abc
M71. / Formula is =AU7=84Abc
M72. / Formula is =$E7>0Abc
E81. / Formula is =$E$8>0Abc
H81. / Formula is =AP8=84Abc
H82. / Formula is =$E8>0Abc
I81. / Formula is =AQ8=84Abc
I82. / Formula is =$E8>0Abc
J81. / Formula is =AR8=84Abc
J82. / Formula is =$E8>0Abc
K81. / Formula is =AS8=84Abc
K82. / Formula is =$E8>0Abc
L81. / Formula is =AT8=84Abc
L82. / Formula is =$E8>0Abc
M81. / Formula is =AU8=84Abc
M82. / Formula is =$E8>0Abc
E91. / Formula is =$E$9>0Abc
H91. / Formula is =AP9=84Abc
H92. / Formula is =$E9>0Abc
I91. / Formula is =AQ9=84Abc
I92. / Formula is =$E9>0Abc
J91. / Formula is =AR9=84Abc
J92. / Formula is =$E9>0Abc
K91. / Formula is =AS9=84Abc
K92. / Formula is =$E9>0Abc
L91. / Formula is =AT9=84Abc
L92. / Formula is =$E9>0Abc
M91. / Formula is =AU9=84Abc
M92. / Formula is =$E9>0Abc
E101. / Formula is =$E$10>0Abc
H101. / Formula is =AP10=84Abc
H102. / Formula is =$E10>0Abc
I101. / Formula is =AQ10=84Abc
I102. / Formula is =$E10>0Abc
J101. / Formula is =AR10=84Abc
J102. / Formula is =$E10>0Abc
K101. / Formula is =AS10=84Abc
K102. / Formula is =$E10>0Abc
L101. / Formula is =AT10=84Abc
L102. / Formula is =$E10>0Abc
M101. / Formula is =AU10=84Abc
M102. / Formula is =$E10>0Abc
E111. / Formula is =$E$11>0Abc
H111. / Formula is =AP11=84Abc
H112. / Formula is =$E11>0Abc
I111. / Formula is =AQ11=84Abc
I112. / Formula is =$E11>0Abc
J111. / Formula is =AR11=84Abc
J112. / Formula is =$E11>0Abc
K111. / Formula is =AS11=84Abc
K112. / Formula is =$E11>0Abc
L111. / Formula is =AT11=84Abc
L112. / Formula is =$E11>0Abc
M111. / Formula is =AU11=84Abc
M112. / Formula is =$E11>0Abc


</body></html>


I have pasted the example once again along with Conditional formatting details which I have currently used. If you can just show me the way for any given 2 to 3 values and any color then I can do it for the rest. That should not be a problem.

If you can see in conditional formatting. I tried to put Green colour in LT for V but it is not getting populated. I understand that there is a overlap with other conditions but not sure as to how can I get rid of this ?

Regards,
Javed.
 
Upvote 0
javedmati,

Please answer the following questions?

[/b]There are total 8 possible values that can be entered.[/b]

What are the 8 possible values? And, what color is assigned to each?
Values and Colors:
V, what color
SL, what color
3. value, what color
4. value, what color
5. value, what color
6. value, what color
7. value, what color
8. value, what color



What version of Excel are you using?

Are you using a new worksheet for each month?


Have a great day,
Stan
 
Upvote 0
Hi,

Please find below the answer to your questions.

8 possible values along with color are.

1> V - Purple
2> SL - Pink
3> T - WHITE
4> PH - Red
5> ML - Orange
6> PL - Yellow
7> CTW - Blue
8> W - Green

Note - The intension is to have unique colors for all 8 values its fine if you use Pink for V and Blue for SL and so on...

I am using Excel 2003 V 11.5612.5606

I am using the same worksheet ( same table ) to display for all the months. But at a time only 1 month will be selected.

Please let me know if you need any more information.

Regards,
Javed.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top