Excel change text colour if a select option is selected - excel

On my worksheet I have text in cell D12, currently this text is bold and red.
I have a select drop-down in F12, if an option is selected in the drop-down I would like the text in D12 to be black and bold. If the option is set back to nothing or empty I would like the text to go back to being red and bold.
Can this be done ?
Thanks

Related

How to highlight column which has next column as empty

So far I tried using existing rule which will highlight empty cells.
Which will highlight empty cells only.
However, I want to highlight column before empty cell
Assuming your data starts in cell A2.
Select cell A2
On the Home tab ribbon, click on Conditional Formatting
Select "New Rule"
Select your rule type as "Use a formula to determine which cells to
format"
In the text box, enter =AND(A2<>"",A3="")
Click the format button
Click on the Fill tab and select your highlight color
Click OK until the windows close
Use the format Painter on the home ribbon to copy the conditional
formatting from cell A2 to any other cells you want to follow this
rule

Format as Table in Excel

I have a set of cells. All have a grey background color. When I mark all those cells and click on "Format as Table", the background colors of the cells don't change! I expect to see the first row in dark blue, second in light blue, third in dark blue again, and so on. If I mark all cells first and click on "clear formats", all cells are white. After this step it works: I can use "Format as Table" and get the expected output. However I cannot use "clear formats" first, because some cells have a red font. Because their content is important. I need to keep the red font in those cells! Why does "Format as Table" not change the background color of my cells according to the table scheme?
Format table indeed, applies a format to a range, but we even when you have a range of data formated as a table, you still can customize the background color of any cell.
To solve your problem, you should remove the background color of all cells before formatting as table. You can do it before or after formating your set of cells as table:
In example, I want to remove only the yellow background color of my cells, but keep the red font color.
If you use the option clear formats it will delete ALL formats. I want just to delete the background color, so use this instead:
Select all your set of cells
In the ribbon options, select the background color palette
Select the option "no fill color" (My excel is in spanish, I don't know the exact name of the option in english, but it should be there)
This will remove only the background color. Notice in the image that the font color is still red :)
Hope this works for you.

Change color to text in Excel 2007

I have cells with certain color without any text in Excel , now can i change that colors to specific text for Example if the cell color is blue it needs to be replaced with a text A
Something like this?
Excel formula to get cell color
Then you can just set a formula to change the cell color text to the appropriate value you need?

How can I color a cell based on character capitalization?

I have a list of text values I want to show as a drop down menu, which is mentioned below.
If the value contains capital letters, I want the cell to be colored blue. On uncapitalized letters, I want to use a yellow shading.
I have tried many things, but was unable to get what I want. Can I use conditional formatting to recognize the difference between small and capital letters?
{d;D;EZ;F;f;g;G;s;S;SU;U;u}
For the purpose of this example, I have assumed your dropdown list to be located in cell A1. Make sure to edit the formulas to fit your needs.
Go to conditional formatting and create three rules:
Select Use a formula to determine which cells to format, enter=EXACT(A1,UPPER(A1)) and format the cell with blue fill color.
Select Use a formula to determine which cells to format, enter=EXACT(A1,LOWER(A1)) and format the cell with yellow fill color.
Select Format only cells that contain. Under "Format only cells with:" select Blanks. There will be no need to change the formatting.
Hope this helps!
1. Create the drop down list
Select the cell where the drop down menu should be placed.
On the Data ribbon tab click 'Data Validation'.
Select Allow: List
Enter your text values at Source: without the curly brackets. The separator can differ from your localization. Standard english computers are using the comma as the separator. On my German machine, I have to use a semicolon.
Click OK. Your cell now has a fancy drop down button on the right.
2. Conditional formatting
Select the cell containing the drop down list
On the Home tab, click Conditional Formatting -> New Rule
Select 'Use a formula to determine which cells to format'
At 'Format values where this formula is true:' enter this formula:
=CODE(A1)<=90
Click format and select a blue cell shading.
Repeat the last steps to enter the formula for the yellow shading:
=CODE(A1)>=97
Click format and select a yellow cell shading.
Pay attention that you have to change A1 to the actual location of your drop down cell.

Excel conditional formatting using generic formula

I want to conditionally format cells in Excel. Is it possible to create a generic formula that does the following:
IF the value in column A of the given row = "A"
AND the value in the given cell is greater than .1
AND the value in the given cell is less than 1
THEN format the cell with a light grey background color
In the example below, I want the formula to apply to cells B1:K2, but I only want cells E1, I1 and K1 to be highlighted in grey.
Select B1:K[n]. B1 is the active cell.
Then, click Home > Conditional Formatting > New Rule.
In the New Formatting Rule dialog box, click Use a formula to
determine which cells to format.
Under Format values where this formula is true, type the formula:
=AND($A1="A",B1>0.1,B1<1)
Click Format.
In the Fill box, select your light gray color.
Click OK until the dialog boxes are closed.
Greetings
Axel
Tap F5 and when the GoTo dialog opens, type A:K (◄ just like that) into the Reference: box and click OK. You should have columns A through K selected with A1 as the Active Cell.
Create a new Conditional Formatting Rule using the Use a formula to determine which cells to format option and supply the following for Format values where this formula is true:
=AND($A1="A", A1>0.1, A1<1, ISODD(COLUMN(A:A)))
Click Format and select a light=grey Fill then click OK to accept the format and then OK again to create the new CF rule. Your results should resemble the following.
    
Edit: Revised from literal interpretation to subjective interpretation
Select cells E1:F2,I1:I2,K1:K2 (hold down Ctrl while selecting discontinuous range) so the conditional formatting will apply to them.
The cell K1 should have the focus, i.e. be highlighted with white background, while other selected cells are highlighted with dark background. Insert conditional formatting with following formula:
=($A1="A")*(K1>0.1)*(K1<1)

Resources