Conditional formatting of three rows based on `Sent`, `Received` and `Distributed` - excel

I need the cells to change color based on the condition (blank = ) of a date being recorded in the prospective cells. Placing the first date in the Sent column turns RED, to YELLOW in Received and the all three turn GREEN when the date is filled in the Received column.

I am assuming the Sent column is F, the Received is G and the Distributed one is H. Also that these dates are filled consecutively, ie there won't be a Received without a Sent and so on. Please select the columns to which you want the formatting applied. Then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$F1<>""
Format..., red, OK, OK.
Repeat with for yellow:
=$G1<>""
and for green:
=$H1<>""
Note that if, as recommended, you have labelled your columns this will fill the labels green. If that is a problem either select a range that does not include Row1 and row references to suit, or adjust the formulae (say by wrapping in =AND(row()<>=1, ... ) specifically to exclude Row1, or add an additional rule for Row1 only (with no formatting set), or reduce the Applies to range.
Note also that the order in which the rules are applied may be important. This can be changed in the Conditional Formatting Rules Manager (green should be above yellow and yellow above red). The rules are applied in the reverse order I am expecting the dates to be entered. So if you opt for 'no formatting' for Row1 that should be above green with Stop If True checked, or at the bottom.

Related

dynamic conditional formatting based on dropdown

I have 7 Columns, 5 with data and the first two with names. Is there a formula I can use in conditional formatting where if I change my column from the drop-down, conditional formatting will look in that column and highlight the name with less than 25, and when i change the value of Capture, the purple highlight across the columns changes too?
.
Hope it makes sense
Suppose you have the following named ranges:
Capture being the column number that you want to change dynamically;
ListFOR being the list of names you have in the FOR column;
RngData being the values in your table excluding the first column and column headers.
I will use the following example to demonstrate my answer:
To highlight a specific column by changing Capture value:
Highlight range B3:G10 (which is the 6 columns including headers on the right) with cell B3 being the active cell;
Use the following formula as the Formatting Rule in conditional formatting and set the background color as desired:
=COLUMN(A$1)=Capture
The logic is to compare the value returned by COLUMN function with the Capture value, if they are the same i.e. TRUE, apply the conditional format.
To highlight a specific name or names with value less than 25 in the highlighted column from previous step:
Highlight range A4:A10 (which is the first column without header) with cell A4 being the active cell;
Use the following formula as the Formatting Rule in conditional formatting and set the background color as desired:
=INDEX(RngData<25,MATCH($A4,ListFOR,0),Capture)
The logic is to first convert the values into TRUE or FALSE by comparing them with 25, then use INDEX+MATCH function to return the logical result based on the given name, if TRUE apply the conditional format.
Here is a live demo:
Let me know if you have any questions. Cheers :)

How can I represent different status' through colour coding?

I want to change the colours of cells in a specific column when I enter "Y" in one of 3 other columns.
example: when I enter a "Y" in B3 the cell A3 turns red.
There is more, I want to create a whole table that has three columns each representing a form of communication. When a person requests to be contacted I can put a "Y" in one of the columns depending on the communication type.
When I put a "Y" in one of the three columns the cell in column A of the corresponding row turns red.
example: when a "Y" in one of any of the cells from B3-B33; C3-C33; D3-D33 the cells in for corresponding row from the A column turns red.
example: when a "Y" is placed in B30, A30 turns red; when a "Y" is placed in C7, A7 turns Red; If a "Y" is entered into D16, A16 turns red etc.
Then, I want the cell in the A column to turn yellow when an "X" is placed into the corresponding E column on the same row this is represented by the person have being contacted.
Then, I want the cell in column A to turn green, when the and "X" is place into the F column of the corresponding cell in Column A on the same row. This represents that the person has responded and dealt with.
I have tried work out excel code to make these conditions work but I am struggling. Any suggestions?
You can use conditional formatting in this order:
First apply conditional formatting for Column F (check mark on "Stop if True")
Second apply conditional formatting for Column E (check mark on "Stop if True")
Third Apply conditional formatting for Column B,C & D
To add conditional formatting, follow these step:
Go to Home tab > Conditional formatting > New Rule
Select: Use a formula to determine which cells to format
Input the formula shown in image
Format the fill color per your requirement
Click on Apply
To apply to the column A, you need to change applies to range using:
Conditional Formatting > Manage Rules > Select the rule and change
range address depending on your data size.
Please see this image:
The third condition is as under:
Have you tried to use conditional formatting? you can start off by doing a simple case.
In order to have multiple cases apply to the same cell you can access the conditional formatting rules manager from the conditional formatting menu.
From there you can add additional rules for a cell.
For the formula itself i'd advise choosing: use a formula to determine which cells to format.
When the formula returns "true" the formatting will be used, so then you can make it search for all the row range you mentioned for the character you decide, you will need 1 rule for each color/character.
once you have done the formatting for one row you can drag it to apply it to all the rows if i remember correctly.

Match other columns for Column Fill and Text Color to an other column

I was wondering if there was a way to match up Columns A and B, in this example with Column C, regarding color formatting. I used Conditional Formatting for Column C.
Is there any type of formula I could set up to match the color scheme of Column A and B to match that of Column C, without doing it manually?
Without knowing the example you are working with, the first thing that comes to mind is apply the same conditional formatting to to A and B that you do C.
So when C:C >= 3 then C:C is red
then apply the same to A and B
When C:C >= 3 then A:A is red
When C:C >= 3 then B:B is red
You could also use a VB macro to copy the formatting but that would be a lot more work doesn't sound like it's needed.
An example that converts a text rule (one that formats only the cells containing a specific string) into a formula rule that may apply to cells other than the trigger ones.
Select ColumnsA:C and:
HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$C1="Active"
Format..., select formatting, OK, OK.

Make cell color the same as another cell color and keep formula

In Excel 2007, I've conditional formatting for column Q:
values > -5 = green
values between -5 and -25 are yellow and
values less than -25 are red.
I want cell P5 to have the same color as Q5, Cell P6 to have the same color as Q6 and so forth.
The value in cell P5 is dependent on a formula (K5-C5),
the value in cell P6 is dependent on a formula (K6-C6) and so forth.
How can I change the color of the cells in column P so they are equal to their "matching" cells in column Q, without ruining the formulas created in column P?
If I have understood you correctly, then you don't need VBA for this. Simply highlight the relevant range and not just column Q while conditional formatting. See this example
I have not bothered with cutoffs since for example you have not specified the formatting you required for a cell in ColumnQ with value -5.
For consistency with the details in your link, I have assumed that the likes of values >-5 refer to -5% rather than -5.
To change the color of the cells in column P so they are equal to their "matching" cells in column Q, without ruining the formulas created in column P apply Conditional Formatting (which does not alter the actual cell content, only its appearance).
To format ColumnP cells according to rules determined by ColumnQ cells adjust the range to which the formatting is applied. Roughly, determine the format for Q and apply that to P:Q.
Since three colours are involved CF will require at least two rules where determined by formulae (a third colour could be applied by 'standard' fill, which CF rules override).
Formula rules as below appear to meet my limited understanding of your requirements:
Green: =$Q4>-0.05
Yellow: =AND($Q4>-0.25,$Q4<0.05)
Red: =$Q4<0.25
For the example I chose the applicable range for each as:
=$P$4:$Q$12
Note:
These do not directly address transition values such as -5%
Empty cells will also be formatted
The order of the rules makes a difference

Is it Possible to Color a Column/Row of Cells based on another Column/Row of Cells?

There are two columns; the first contains four colored cells, while the second contains numbers. Is there any way to color the second column so that it matches the colors of the first column in the same order.
Eg. A1=Green, A2=Red, A3=Grey, A4=Black (COLORED).
B1=4, B2=3, B3=2, B4=1 (BLANK).
= A1=Green, A2=Red, A3=Grey, A4=Black (COLORED).
= B1=4 (Green), B2=3 (Red), B3=2 (Grey), B4=1 (Black) (COLORED).
Manually coloring the column will not work here because I want a cell in the second column to be able to match the cell next to it if its color changes. So for instance if a cell in column A changes from "black" to "red", I want the corresponding cell in column B to change from "black" to "red" automatically.
Eg. A1=Green, A2=Red, A3=Grey, A4=Red (COLORED).
B1=4 (Green), B2=3 (Red), B3=2 (Grey), B4=1 (Black) (COLORED).
Here A4 is now "red", while B4 is still "black". I want it so that if A4 changes color, B4 will change color to match A4.
I tried experimenting with conditional formatting, but that doesn't seem to be working out so far, would there be a formula for something like this, or am I SOL?
This is possible using Conditional Formatting.
You would have to select both columns and then choose to use a formula for the conditional formatting.
There you would input
=$A1="Red"
and set the formatting to red.
The $ fixes the formula to the first column. If you omit it, only column A would be colored in.
That way you would have to write the cell background color in column A, and if you set the font color to the same value you won't see it...
Another option would be to use a VBA macro, that runs on every SheetChange Event that will copy the background color from column A to column B
Edit:
As #lowak pointed out, you will have to create one rule for each color.

Resources