sheet/cell color change when print sheet - google-sheets

Is there a way we can use conditional formatting like when user print sheet to pdf or printer it will change color of Cell or cells ?
Maybe add button to cell with "ctrl+p" key binding so when it is clicked it changes color of specific cell.

Related

How to toggle cell color when clicking on that cell

I'm trying to find function that will change (toggle) cell color when you would click on it.
For example, I have cell that that only has number "1" on it and it's default color is white, so when I click that cell (like you would on click on a checkbox) the color should now be blue. If you would click it again, the color should go back to white etc.
What I tried so far:
Using Dta validation to change checkbox value to text so that both TRUE and FALSE statements simply are written as number 1, but I got validation error that both states couldn't be named the same
Using Conditional formatting. so when checkbox is checked, color of that cell is changed (this works to some degree, but for some reason not when I use it together with Data validation)
Does anyone have solution on how should I approach this?
In theory it could be possible with the onSelectionChange trigger on an apps script function. It could be a simple function that:
Gets the selected or active cell range
If the background color is white, changes it to blue
If the color is already blue, changes it back to white
Changing color is already doable with the setBackground function.

How can i change text depending on the date in another cell Spreadsheets

I am trying to make a cell change its text depending on another cell whit a date.
example how i would like the text to change
So basicly if there is one week past from today the text green needs to change in the text red. Is this possible? If so how beacuse im lost.
Error
Edit text
Be sure that the cell value is formatted as Date (Format>Number>Date)
Put this formula in column A and drag it down to match your dates:
=IF(B2<TODAY()-6, "Red", "Green")
Edit background color
Be sure that the cell value is formatted as Date (Format>Number>Date)
Create a Conditional formatting rule (Right-click>Conditional Formatting) with these parameters:
Format cells if...
Date is before
Exact date
=TODAY()-6
Formatting style
Put desired background color
Reference
Conditional Formatting

Google Sheets - Applying Fill Colour to Several Individual Cells (without having to use dropdown menu)

Very very minor thing I find annoying and / or haven't figured out what I am doing wrong on Google Sheets.
In Excel, when you turn a cell a specific colour, it remembers the last colour you used, so you can click on the colour fill button and it will apply the same colour, rather than having to re-select it in the dropdown menu (see example screenshot of 'Excel').
In Google Sheets, the button shows the current colour of the cell (which I think is self-evident anyway), so I have to go into the drop down menu each time to select the new colour (see example screenshot of 'Sheets').
So my question is - is there a way for Google Sheets to retain the last colour used on the fill colour button?
What might be handy, is the format painter (Circled icon). Not perfect, but may save you 1 or more clicks. Just select the cell you want to copy the format, click on the format painter and click on the new cell or range (with control) you want to apply the format.
unfortunately no. in Google Sheets you always need to enter the color picker so this can be done by a minimum of two clicks
the only tool that remembers color is border color

Conditionally formatting multiple rows with the same conditions

I am looking to format 500+ rows of data and essentially, G5-K5 (in every row) needs to be highlighted a light color (any color) if J5 equals "Regular".
This same condition will exist in every row, so it should be simple - but I am not an excel master by any means. I just don't think it's necessary to create 500+ conditions for each row!
That is actually pretty simple.
You right click one of the cells to do the formatting(one with
regular for example) and select Conditional Formatting on the menu.
Then you make sure the Range is the cell you right clicked, select
"The text is exactly" in the list and type "Regular in the field
under it.
Select the color under that field and press the blue button.
After that you just need to press the paint format tool(the paint
roll) and drag all the cells you want to have the same
behaviour(probably the entire column of the right clicked cell).

BlackBerry:List Field-How to Highlight only the text instead of the whole field

I have a list field displaying text, and I want only the text to display as focused when the field is selected. Instead of the whole field being highlighted in blue, I want only the text to be highlighted.
I have found methods to change the highlight color, but not how to limit the area being highlighted.
I haven't tried this, but you should be able to do just override drawFocus() to do nothing (that will get rid of the highlighting), and then in your drawListRow() check if the row is the selected row, and if that's the case draw the text a different color.

Resources