google-sheets-formula

Google Spreadsheets: Alternating Background Color on Value Change?

浪尽此生 提交于 2019-12-03 20:09:33
问题 there are lots of topics about Conditional Formatting in Google Spreadsheets, but not one like what I'm looking for. All I want to do is set an alternating background color based on the value changing in a column. For example: If there isn't an easy way to accomplish this, does someone know what I'd write for the conditional formatting formula? The values will always be consecutive - the idea is that the coloring is simply a visual aide for when a new value is up. If you're curious, I have a

How can I force a recalculation of cell using ImportRange function in a Google Spreadsheet?

白昼怎懂夜的黑 提交于 2019-12-03 15:33:00
I have a spreadsheet Target that uses ImportRange to get some data from another spreadsheet Source, as in A6 = query(ImportRange("mykey", "Weekly!B:BI"), CONCATENATE("select * WHERE Col1='",B3,"'"), 0) The select clause is to sub-select the data that matches on a value in B3 - if this cell value is changed then the import is updated "immediately". I want to be able to force an update if someone changes something in the Source spreadsheet so that we see it reflected in the Target "immediately". Currently this only happens "after some unspecified time" which is up to a minute or so, and too slow

google spreadsheet: join arrays using function NOT CODE

…衆ロ難τιáo~ 提交于 2019-12-03 10:58:02
问题 I have one array 1 2 3 another array 4 5 6 How do I use one function to join the 2 arrays? 1 2 3 4 5 6 回答1: Let's say your arrays are: A1:A3 = {1;2;3} and B1:B3 = {4;5;6} Write somewhere: ={A1:A3;B1:B3} Semicolons ; are used to separate rows, and commas , are for columns. Here is the documentation: Using arrays in Google Sheets 回答2: TRANSPOSE() //takes matrix as argument and returns transposed matrix SPLIT() //breaks apart a string based on a delimiter character (char(13) here) ARRAYFORMULA()

Sum of row n through last row

不想你离开。 提交于 2019-12-03 10:34:47
问题 I want to create a TOTAL row at the top of my spreadsheet. In this row, each cell should be the SUM of the values in the column below the TOTAL row. So for example, if the total row is Row 1, cell A1 should be the SUM of A2 through the last row in column A. The number of rows in the spreadsheet will grow over time, so I can't just say SUM(A2:A500) because eventually there will be row 501, 502, etc. 回答1: If you want something that just works in Google Spreadsheets (as the title suggests), you

QUERY using cell contents as SQL variables

蹲街弑〆低调 提交于 2019-12-03 10:00:55
Here is what the spreadsheet I'm working with looks like: Summary table (top of sheet) Source data (same sheet, below output) I'm using the QUERY function to populate the appropriate feeds in the summary table with the data starting at A24 needs to be placed into. Here is the formula I'm using in cell C6 (similar formulas are used throughout the summary table): =QUERY($A$24:$D$57, "Select D Where B='ENQ' and A='2/27/14 - Thu'") This gets the right information, but the formula needs to be edited to be unique in each cell it's used in. The problem being unable to quickly populate the cells with

Apply formula to the entire column

我们两清 提交于 2019-12-03 04:00:35
问题 I'm trying to recode all the zip code from Column A into Column B with the formula: =TEXT(A1,"00000") Like this: I want every cell in Column B to be transformed using the formula above. But I have over 40,000 rows, so it is impossible to drag down the formula and apply it to the entire Column B. Is there a formula I could use to solve this problem? 回答1: I think it's a more recent feature, but it works for me: Double clicking the square on the bottom right of the highlighted cell copies the

google spreadsheet: join arrays using function NOT CODE

一笑奈何 提交于 2019-12-03 02:32:28
I have one array 1 2 3 another array 4 5 6 How do I use one function to join the 2 arrays? 1 2 3 4 5 6 Let's say your arrays are: A1:A3 = {1;2;3} and B1:B3 = {4;5;6} Write somewhere: ={A1:A3;B1:B3} Semicolons ; are used to separate rows, and commas , are for columns. Here is the documentation: Using arrays in Google Sheets Mr.Monshaw TRANSPOSE() //takes matrix as argument and returns transposed matrix SPLIT() //breaks apart a string based on a delimiter character (char(13) here) ARRAYFORMULA() //applies the formula within to array vs cell CONCATENATE() //joins each cell in each range with a

Google Spreadsheet multiple column filter using OR

雨燕双飞 提交于 2019-12-03 02:16:32
I have a Google Spreadsheet with 3 columns that are either blank or have a value. I want to get the count of the number of rows that has A and either B or C populated. If I were writing a SQL query it would be select count(*) from Table where A is not null and (B is not null or C is not null) But I can't for the life of me figure out how to get this in a Google Spreadsheet The formula below should do what you are after: =ROWS(FILTER(A2:A, NOT(ISBLANK(A2:A)), NOT(ISBLANK(B2:B))+NOT(ISBLANK(C2:C)) )) And to explain: ROWS counts the rows of the argument (filtered, in our case) FILTER returns the

VLOOKUP multiple times from one row/cell

笑着哭i 提交于 2019-12-02 19:08:31
问题 I am trying to create a sign-up sheet using Google Forms for parents to fill out. Parents have the ability to sign up multiple children in one form. For it to be easier to read I have organized the entries using: =sort(unique({A2:B999;C2:D999})) Now I want to pull the emergency contact information from the submission but for some reason my VLOOKUP can only pull it up for the first child. Here is the simplified response sheet: [goo.gl/soE1PG] 回答1: Pass the lookup off to a second VLOOKUP

Google Sheets: Exclude the current date row from protection

前提是你 提交于 2019-12-02 17:47:28
问题 I have a table in Google Sheets in the format: A B C Day Date inventory demand Day2 Date2 inventory demand etc. Others are required to fill in inventory and demand every day. However, they should only fill out demand and inventory of the current day. They are also not allowed to change previous data or in advance fill in future days inventory and demand. Therefore, I want to protect the whole sheet from being edited by others, except the row with the current date. For example today (23.09)