How to add some text to selected cells in sheet Google Drive - google-sheets

How can I add some text to selected cells in a Google Spreadsheet. Can I perform it by using a regular expressions?

Yes; select the desired cells (they must be contiguous), Ctrl+H (brings up the Find and replace tool).
In Find, type $
In Replace with, type some_text
Ensure "Specific range" is selected, and check "Search using regular expressions".
Click "Replace all".

Related

Google Sheets: How to fill cells in colour depending on the data indicated on another sheet

This is quite a hard question to explain. Here is how it looks.
I have a script on Google Sheets that exports data to Google Form quiz. There are 500+ questions in quiz, properly filled with that script. To put the Right answers (Key answers) in Google Form I need to fill right cells in Google Sheet in green colour, then the script will do its job.
Key answers are filled in column M. Digits: 1=(right key answer) in column 1 (I), 2=J, 3=K and 4=L.
Can I use a formula or a macro that will check column M and fill in green colour Right answer cells on the same row?
If I'm understanding you correctly, this can be done with a custom Conditional Format formula. Do the following:
Click on cell I4. Select from the menu Format > Conditional
Formatting
When the CF window opens, the "Apply to range" field
will say I4. Change it to I4:L.
Under "Format rules / Format
cells if..." click the dropdown arrow and select the last option:
"Custom formula is"
In the blank field that appears below that (it
will show a "Value or formula" placeholder), enter the following
custom formula: =(ISNUMBER($M4))*(COLUMN(I4)=COLUMN($I4)+($M4-1))
In the "Formatting style" panel, click the paint bucket icon and
select the background color of your choice.
Click the "Done" button and close the Conditional Formatting dialog
window.

How to automatically select OpenOffice Calc cells based on a formula?

I can select cells with a mouse to copy them to clipboard.
Is there a way to have them selected based on a formula?
Go to Edit -> Find and Replace. Under Other options, Search in Formulas is the default setting.
Enter what you want to search for in the Find box, then press Find All. After the dialog is closed, the cells will still be selected.

Conditional Formatting based on column values

I'm trying to make a column change color whenever a specific range within that same column has the same character, per example, I want cells C1:C50 to change to the color green when all the cells in C10:C50 have the value 1 on them.
I've tried this custom formula, that doesn't seem to work.
=C10:C50=CHAR(10004)
Sorry if this is an easy fix, but have been looking for answers and haven't found something that suits my problem
This should get you what you're after:
Select the rows you want the conditional format to apply to.
Click format > conditional formatting
Click + Add another rule
Below "Format Rules" click the drop down and select Is equal to
Type what you want the box to be equal to in the input (for example, "1" in your case)
Click the "Done" button.
Behold your beautifully formatted sheet and the new found power that you wield!
try:
=COUNTIF(C$10:C$50, CHAR(10004))=50

Paste comma separated content into different cells in google sheets

Say I have the string "1,2,3,4". Is it possible to paste that string into Google Spreadsheets in such a way that each of the comma-separated values goes into a different cell to the right of the selected one?
This is what the spreadsheet would look like after pasting.
Since the file is a CSV. Ensure it is saved with the .CSV extension and upload the file to google sheets.
You also have the option of opening it with Microsoft excel and then pasting the cell formatted text into the google sheet.
Also You can paste the comma separated values into the google sheet and then click the paste icon that appears below the cell and select the 'Split text into columns' Option
Enter into the spreadsheet
=SPLIT("1,2,3,4", ",")
No. If you try inserting any formula by overwriting the selected cell the data the formula needs will be overwritten, hence not be available to the formula.
You could use say:
=split(A1,",")
to obtain the results you want to the right of the cell with data in, but this would have to be placed to the right of the cell with data, not in it.
#Treyten's A would also achieve the result you seek except that it would not be to the right of the chosen cell (etc) but in the chosen cell (and to its right etc, assuming the usual LTR).
Similarly with #tks.tman's A. The contents spill out to the right but they do not start in a "cell to the right of the selected one" but in the selected one.
First select the cell on of your action and click Data
1st step
Now, select 'split text to column', it will name it a number
2nd step
now, again goto data and select split text to column open it will transfer every comma separated element into individual columns
3rd step

How to use conditional formatting in Google Sheets to highlight row based on value in cell

I have a google sheets document where I have cells A1:Z1. In AA1, I have a value total. If that value is greater than 5, I would like A1:Z1 to be highlighted in red. I then want to do this for every row down the sheet. Could somebody help be out with this? I tried using other answers here, but I can't get it to work.
First of all take a look at Use conditional formatting rules in Google Sheets.
On your computer, open a spreadsheet in Google Sheets.
Select the cells you want to apply format rules to (A1:Z1).
Click Format and then Conditional formatting. A toolbar will open to the right.
Under the "Format cells if" drop-down menu, click Custom formula is. If there's already a rule, click it or Add new rule > and then Custom formula is.
On custom formula put this =SUM(A1:Z1) > 5
Choose other formatting properties.
Click Done.
The result will be this.

Resources