I want to assign Color Values to Lines based on certain value comparisons. Attached pic for reference.
Excel Color Coding Explanation.
The example I have provided is where I have set the color coding manually. The coding on the spreadsheet is not exactly correct.
The Colors should depend on the Explanation I have provided.
Please let me know which formulas to apply in which cell and how so the Color Coding applies automatically.
Thanks in advance!!
It seems to be working on rows but not all. Ive highlighted the parts with the desired color to illustrate.
Try this in conditional formatting. Each should apply to the whole array of cells. Ensure that the first row of the row matches the row number used in the formulas. The key here is the row number lineup and the $ to lock the reference to the column but for the whole row.
You also need to highlight the whole array to which you want it to apply before putting in the formulas. If you change it after you put in the formulas the cell references may change and you will need to paste them in again.
==OR($M4<>"",$M4<>0) with green fill
=AND($I4<0,OR($M3="",$M3=0)) with red fill
=AND($I4<$L4,$M4="") with orange fill
=AND($L4>$L4,OR($M4=0,$M4="")) with no fill (you do need to go in and select no fill
Related
if a cell has specific formatting or text, i need it to then tell another cell to be a specific value. see example picture enter image description here
notice how because the cell is green and has white bold text, the cell right above it has a value of 2 and the red cell does not have a value.
The same can apply if a cell is red with yellow bold text. if this is the case, it can subtract 1 point. if cell is yellow text and green background, no points are awarded or taken away. enter image description here
does anyone know how to accomplish this without having to manually do this every time?
Thank you in advance.
Color is not data. You can't change a cell value based on another cell's color. Not with a formula and not with VBA. This approach is the wrong way around.
It is quite easy to change a cell's color based on the value of another cell. That can even be done without any formulas or VBA code, using simple conditional formatting.
If you or your users are in the habit of applying color and that color has a specific meaning, well, the best advice here is to change that habit. Excel works on values. Color is not data. It's metadata, and not suitable to serve as the primary tool for data classification.
On the “Inventory” worksheet, apply formatting to the rows of data that bolds the text and changes to text color to RGB “0”, “176”, “80” if the number “Sold Last Month” is more than 90% of the number “In Stock”.
database-inventoryWorksheet
This is the formula you need.
=SoldLastMonth>(InStock*0.9)
It's tested to work with two named ranges "SoldLastMonth" and "InStock" because those are the names you provided. In your worksheet they might actually be cells. The actual formula you might use therefore might look more like the one below.
=$D2>($G2*.9)
To apply this formula to CF, select the entire range you wish to format, then enter the formula for the first row of the selected range (row 2 in my example).
After entering the formula you can select the format you want, for example Bold and coloured. You will be able to select the colour from the pallet. No need (and no chance) to specify RGB. For more information about conditional formatting please read up on the subject online. Such tuition isn't provided here.
I'd like to change background color of cells if the value of $E2=$F1 (comparing different row and column). The range I have selected is =$E:$F.
I want the background color changed in both same value cells or at least on the first column cell. The problem is that I don't know of to tell excel to change the "1st. column, 2nd. row" of every comparison. Excel is changing only the cells of the first row and not the cells that have the same value.
Excel Sheet
Formula
I don't speak English, I hope you can understand what I am saying. :-)
Thank you!!!
Create a custom formula rule as =$E1=$F1, and apply it to the range =$E:$F.
Be careful that this will see two blank cells as equals and turn them red, so you're better off doing =$E3=$F3 applied to the range =$E3:$F12.
EDIT
Now I understand your question, just create two different rules,
=$E4=$F3 applied to range =$E4:$E12
=$E4=$F3 applied to range =$F3:$F12
I have searched for this solution and I have found many drop-down lists that can change the color and the data of the cell or change the color depending on what data is entered.
What I would like to do is have a cell with a number inside (#'s 1-10) and also have a drop-down list (pass, fail, marginal) and depending on which item from the drop-down list is selected it would change the cell's background color to red, green, or yellow, from it's default of white.
Any help would be appreciated. Thanks!
You can use conditional formatting to achieve the same. For the cells with numbers add conditional formatting
Home -> Conditional formatting -> New Rule
Select Use a formula to determine which cells to format. Now you set a formula here. You can refer to drop-down list value here to set format. (eg: if column A has numbers and column B has the drop-down, you can set the formula as =$B1="Marginal" and set the formatting.
Hope this helps.
Screenshots for reference:
I think I've found the best solution for this situation:
I had two cells side by side. One with the data and one with the drop-down box. The two cells bordered together so that they appear as one cell (even though they aren't). I then put two separate conditional formats on the two cells. The conditional format of the data cell changed the background color of the cell based on the value of the drop-down box cell. The conditional format of the drop-down box cell changed the background and text color to the same color as the other cell (to blend in) depending on its own value.
When the two cells were bordered and spaced correctly they appear as being one cell with one value. Quite a bit of work with the formatting and all but I think this may be the best option for this situation.
Thanks again, Konstant for your help. :)
I want a macro to find all the words written a column in another excel & make them bold.
For EX: I have Words like new, grow, etc written in a column B of Excel an the macro has to Find theses words individually in another excel & make them bold and change the Background of the cell to Red Color.
Thanks in Advance.
You may want to have a look into conditionnal formatting.
Assume for example you have the values you want to look for in column B, and you want to highlight all values in a range, say, D4:F15.
Select the range D4:F15, make a new formatting rule and choose "Use a formula to determine which cells to format". Enter =ISNUMBER(MATCH(D4;$B:$B)) as formula, and make the format as you wish. Note that D4 in the formula has to be the first cell of the range.
If you don't need more than that, the benefit is that you don't need a macro at all, and the formatting can be done in real time too.