google-sheets-formula

Google spreadsheet Query Error - column doesn't exist

醉酒当歌 提交于 2019-11-27 14:47:02
问题 Another problem with Google Spreadsheet API. I'm trying to use QUERY() function in order to get all customers from our database who are from Warsaw. Google API seems however to have a big problem with parsing my query. I've checked it few times and everything is OK. Tried semicolons, different apostrophes and column names—it still won't work. I type this code in the sheet cell: =QUERY(IMPORTRANGE("0ArsOaWajjzv9dEdGTUZCWFc1NnFva05uWkxETVF6Q0E"; "Kuchnia polska!A3:G40"); "select B where E

Get the last non-empty cell in a column in Google Sheets

孤街醉人 提交于 2019-11-27 11:09:57
I use the following function =DAYS360(A2, A35) to calculate the difference between two dates in my column. However, the column is ever expanding and I currently have to manually change 'A35' as I update my spreadsheet. Is there a way (in Google Sheets) to find the last non-empty cell in this column and then dynamically set that parameter in the above function? There may be a more eloquent way, but this is the way I came up with: The function to find the last populated cell in a column is: =INDEX( FILTER( A:A ; NOT( ISBLANK( A:A ) ) ) ; ROWS( FILTER( A:A ; NOT( ISBLANK( A:A ) ) ) ) ) So if you

Search a value from another tab/sheet in google sheets based on cell reference

余生长醉 提交于 2019-11-27 08:30:39
问题 I'm trying to create a search page in google sheets where the user enters a value in one cell(s) and then other cells auto-populate with values from another tab/sheet based on the value entered in the search cell(s). I'm trying to use VLOOKUP up in an array but it gives either error or N/A . I have 'sheet1' with data from a google forms (columns from A to BN) and I'm trying to make a search page in 'Sheet2' where on top the user can write for example the ID-number, and I want to grab the

Selecting the last value of a column

牧云@^-^@ 提交于 2019-11-27 03:59:34
问题 I have a spreadsheet with some values in column G. Some cells are empty in between, and I need to get the last value from that column into another cell. Something like: =LAST(G2:G9999) except that LAST isn't a function. 回答1: So this solution takes a string as its parameter. It finds how many rows are in the sheet. It gets all the values in the column specified. It loops through the values from the end to the beginning until it finds a value that is not an empty string. Finally it retunrs the

Conditional formatting based on another cell's value

痴心易碎 提交于 2019-11-26 19:13:50
I'm using Google Sheets for a daily dashboard. What I need is to change the background color of cell B5 based on the value of another cell - C5. If C5 is greater than 80% then the background color is green but if it's below, it will be amber/red. Is this available with a Google Sheets function or do I need to insert a script? Zig Mandel Note: when it says "B5" in the explanation below, it actually means "B{current_row}", so for C5 it's B5, for C6 it's B6 and so on. Unless you specify $B$5 - then you refer to one specific cell. This is supported in Google Sheets as of 2015: https://support

Counting number of occurrences in column?

断了今生、忘了曾经 提交于 2019-11-26 18:58:19
问题 What would be a good approach to calculate the number of occurrences in a spreadsheet column? Can this be done with a single array formula ? Example (column A is input , columns B and C are to be auto-generated ): | A | B | C | +-------+-------+-------+ | Name | Name | Count | +-------+-------+-------+ | Joe | Joe | 2 | | Lisa | Lisa | 3 | | Jenny | Jenny | 2 | | Lisa | | | | Lisa | | | | Joe | | | | Jenny | | | 回答1: Try: =ArrayFormula(QUERY(A:A&{"",""};"select Col1, count(Col2) where Col1 !=

Get the last non-empty cell in a column in Google Sheets

浪尽此生 提交于 2019-11-26 17:59:01
问题 I use the following function =DAYS360(A2, A35) to calculate the difference between two dates in my column. However, the column is ever expanding and I currently have to manually change 'A35' as I update my spreadsheet. Is there a way (in Google Sheets) to find the last non-empty cell in this column and then dynamically set that parameter in the above function? 回答1: There may be a more eloquent way, but this is the way I came up with: The function to find the last populated cell in a column is

Conditional formatting based on another cell's value

折月煮酒 提交于 2019-11-26 08:57:36
问题 I\'m using Google Sheets for a daily dashboard. What I need is to change the background color of cell B5 based on the value of another cell - C5. If C5 is greater than 80% then the background color is green but if it\'s below, it will be amber/red. Is this available with a Google Sheets function or do I need to insert a script? 回答1: Note: when it says "B5" in the explanation below, it actually means "B{current_row}", so for C5 it's B5, for C6 it's B6 and so on. Unless you specify $B$5 - then