LibreOffice Calc: Is there a possibility to copy a background color from another cell? - background-color

I have created a table that has a value on one column that I have used to generate a background colour (Format -> Conditional Formatting -> Color Scale... -> Colour Scale). Now I would like that all the row to have that colour. Is it possible to copy the background colour from another cell?
EDIT:
So this is my table:
And what I want is to colour all the cells from class group with the same colour as its total group.
Meaning that for the class 101 I want all the cells to have the same yellow-orange as the cell containing 592:
(this is done manually)
I want this to be some kind of formula, so any change in the last column is going to change all the colours. Is it possible?

Set the condition of each cell in a row to be the same as the condition you used for "total_group" cell in the same row. Meaning base the condition on the value of the "total_group" cell (Exact same condition no changes)

I found a simple workaround that effectively is a copy color operation:
Select the source cell. This will place the color of the cell into
the "recently used" section of the background color tool.
Select the target cell.
Select the color from the background color tool, where it is now easy to find in the "recently used" section.
The background color tool is next to the font color tool. The above method works in libreoffice 7.3

Related

How to put certain font colour in the formula for countif?

I have a spreadsheet that counts only N's. But I want specific colour (Red) in my countif formula.
You can't. Color is a metadata property of a cell that is not exposed to worksheet functions.
Why is the N red? What made it red?
If you manually set the font color to red, then that's bad practice, because the reason exists just in your head and Excel cannot use it for processing.
If the font color is changed to red by conditional formatting, then you can also build a formula with the same logic and use that in a helper cell to serve as the basis for worksheet formula processing.

How to change the background of a cell in excel, by using a formula, no Conditional Formatting

I have a column with numbers 0 to 100 and I want to change the background colour of the next column according to those values
with 0 as red, and 100 as normal green
and as the number gets higher, the colour fades from red to light red, to white in 50 and then, light green to green in 100
The question is how do I do that, without using conditional formatting
I was trying to use ColourIndex, as
=Range("A1").Interior.ColorIndex = RGB(255,0,0)
but the function is not working, and I do not want to use conditional formatting
Any ideas?
If you don't want to use conditional formatting, your only other avenue is VBA. But this can easily be done with ONE SINGLE conditional format applied to the range of 100 cells.
If you want to format the column to the right of the original values, use a formula to pull the values from the column to the left, then apply a color scale conditional format to the target column.
Set a custom number format of ;;; to hide the numbers in the formatted column.
Answering your question as stated in your title (How to change the background of a cell in excel, by using a formula, no Conditional Formatting) - You can't. Not with a worksheet formula.

How to use filter option for no fill

I would like to know the excel VBA coding for the below scenario.
I have highlighted the cells in yellow color that matches my condition and now i want to filter the no fill cells. But, the bad part is there is no cell that doesn't matches my condition and thus there is no cells without yellow color. which doesn't show the no fill option in the filter drop down.
How can i able to get the data of those no fill cells.
Change a color of one cell to empty (no color)
Start recording a macro
Select the filter for no color
Stop recording macro
Change color of cell to yellow again
Run recorded macro

Excel- Change Background Color of 2 different cells

So guys, I'm using Excel 2013, and I want to do this :
I have 3 cells:
Entry date
Color
Retrieval parts date.
So:
Entry date will be entered by my for example- 24.10.2016 - and color cell will be filled automatically with green color.
After a while when someone inserts a new retrieval parts date than the color cell will turn red (like it s occupied)
I have done so far: when I insert a date in Entry date cell, then the Color cell will turn green using =$R$4: $R$18 (conditional formatting rules)
And it works but when I insert a new Retrieval date it won't change the color into red.
Thank you very much
You'll need to use two conditional formatting rules and then order them accordingly in the Conditional Formatting Rules Manager (Home -> Conditional Formatting -> Manage Rules).
Conditionally format the second cell using a formula (Home -> Conditional Formatting -> Highlight Cells Rules -> More Rules -> bottom option) where the formula should be =[first cell] <> "" (this is saying that whenever there is a value in the first cell (e.g. A1), apply this rule). Then format as you wish, e.g. background colour green.
Then apply a new rule for the same cell, but this time reference the third cell =[third cell] <> "". Set the background colour to red.
Now you can define the order of which the rules are applied by moving them up or down in the rules manager. Put the red rule on top and it overrides the green rule when you have data in both cells, but by all means play around with the settings to get familiar to them.

Excel 2007 drop-down list that effects the cell's color but not the content

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. :)

Resources