Check cell for a specific letter or set of letters
You can use RegExMatch: =IF(RegExMatch(A1;”Bla”);”YES”;”NO”)
You can use RegExMatch: =IF(RegExMatch(A1;”Bla”);”YES”;”NO”)
This works in Google Sheets for sure. Should work in Excel too. With the appropriate cells selected, navigate to: Google Sheets : Format -> Number -> More Formats -> Custom Number Format Excel : Format -> Cells -> Custom -> [Custom text box] Enter one of the following and Apply: A] For Lakhs and Crores … Read more
Try this: =QUERY(H4:L35,”select sum(L) where H=’First Week’ label sum(L) ””)
I just used =COUNTIF(Range, “<>”) and it counted non-empty cells for me.
When the number being returned by your formula is being formatted as a time, and you want it formatted as a plain number, change the format of the cell to a plain number format: click the cell and then click Format, Number, Normal. Time values in Google spreadsheet are represented as days and parts of … Read more
The following code does what is required function doTest() { SpreadsheetApp.getActiveSheet().getRange(‘F2’).setValue(‘Hello’); }
It looks like some of the other answers have become outdated, but for me this worked: Click on the cell with the text/formula to copy Shift+Click on the last cell to copy to Ctrl + Enter (Cmd + Enter on Mac.) (Note that this replaces text if the destination cells aren’t empty)
You can use the index function to select which value to return. So to retrieve the second value from your example you could use: =index(SPLIT(“1.23/1.15”, “https://stackoverflow.com/”), 0, 2) The last argument says which column you wish to retrieve – 1 would retrieve the first value. Alternatively you could use left / right and find to … Read more
UPDATE: As written in this answer, Stackdriver Logging is the preferred method of logging now. Use console.log() to log to Stackdriver. Logger.log will either send you an email (eventually) of errors that have happened in your scripts, or, if you are running things from the Script Editor, you can view the log from the last … Read more
To solve this issue, try to: Create a service account: https://console.developers.google.com/iam-admin/serviceaccounts/ In options, create a key: this key is your usual client_secret.json – use it the same way Make the role owner for the service account (Member name = service account ID = service account email ex: thomasapp@appname-201813.iam.gserviceaccount.com Copy the email address of your service … Read more