google-sheets-formula

How to conditionally format a cell (in Google Sheets) if its content is present in a separate range of cells?

故事扮演 提交于 2021-01-29 06:41:28
问题 I have a list of numeric codes in a range on a tab of a Google sheet. These values are non-consecutive, unsorted. On a separate tab, I would like to conditional format a cell if its content matches any of the individual cells in the aforementioned range. The best I can do in the "Format cells if..." dropdown is selecting "Text is exactly" and typing a single numeric code. Currently, I have a rule for each of the numeric codes. I would like to replace this collection of single rules with one

Techniques to accommodate new entries in google sheets

只愿长相守 提交于 2021-01-29 00:13:20
问题 As you can see I transpose codes into unique column headings so that debits and credits are analysed and summated. Summations are transposed in another sheet to create summary profit/loss account. I need help how to replicate the sum formula in column I to serve any expanded transposed unique codes and whether/how I should use arrayformula for the individual cell output. EDIT Actual output looks like this: My problem is to how to automatically accommodate new entries/codes in the totals row

Google Sheets Completely exclude duplicates

徘徊边缘 提交于 2021-01-28 21:55:59
问题 This formula: =FILTER(SORT(UNIQUE(flatten(C3:H14));1;1); SORT(UNIQUE(flatten(C3:H14));1;1)<>"") Merges all values in C3:H14 into a single column then removes duplicates and sorts the result in ascending order. It is possible to compare the result with a second list and then leave only the values that never repeat? Like, First Range A B Orange Grapes Apple Carrot Flattened Range (A + B) C Apple Carrot Grapes Orange Comparison range D Apple Banana Carrot Grapes Orange Peach So the final result

Google Sheets Completely exclude duplicates

天大地大妈咪最大 提交于 2021-01-28 21:50:43
问题 This formula: =FILTER(SORT(UNIQUE(flatten(C3:H14));1;1); SORT(UNIQUE(flatten(C3:H14));1;1)<>"") Merges all values in C3:H14 into a single column then removes duplicates and sorts the result in ascending order. It is possible to compare the result with a second list and then leave only the values that never repeat? Like, First Range A B Orange Grapes Apple Carrot Flattened Range (A + B) C Apple Carrot Grapes Orange Comparison range D Apple Banana Carrot Grapes Orange Peach So the final result

IMPORTHTML() doesn't work in this webpage structure

会有一股神秘感。 提交于 2021-01-28 21:11:29
问题 I want to import data from a table within an HTML page. I applied Google's example IMPORTHTML("http://en.wikipedia.org/wiki/Demographics_of_India","table",4) to my case, changing various parameters, but it doesn't work after all. Could anyone tell me what is wrong with my following formula? =IMPORTHTML("https://s.cafef.vn/screener.aspx#data","table",1) I want to import the table from https://s.cafef.vn/screener.aspx#data The first 2 rows of the table look like: 1 Công ty cổ phần 32 A32 UpCom

Is there a better way to replicate a column array n times in Google Sheets

杀马特。学长 韩版系。学妹 提交于 2021-01-28 19:02:35
问题 I need to formulaic solution to copy a column range stacking on top of itself a given number of times. I found one ugly solution by incorporating a sequence function (to get 1,2,3...n) into an arrayformula for a text operation (Left). The Left operation does nothing but return the original value, but gives me the opportunity to include the sequence array. There must be a better way to do this. Problem : Write a formula that creates a column where a named column range is stacked on top of each

Google Sheets - Import Range within a Query

浪尽此生 提交于 2021-01-28 17:37:44
问题 Trying to run a query with an import range function built into it, but I keep getting an ERROR message. Here is the formula I am trying to use: =QUERY(IMPORTRANGE("1BJ11UiLyiK3PaS2iwHEsyuMMXomdvrEkYYj_Z7bWWw4","Sheet1!A:C"),"Select Col2 where Col1 = '"A1"' ") I've tested the import range formula without the query and that goes through successfully so it must be something with how I am writing the query. 回答1: You just need to add ampersands (&). Try this: =QUERY(IMPORTRANGE(

Google Sheets - Import Range within a Query

拟墨画扇 提交于 2021-01-28 17:36:28
问题 Trying to run a query with an import range function built into it, but I keep getting an ERROR message. Here is the formula I am trying to use: =QUERY(IMPORTRANGE("1BJ11UiLyiK3PaS2iwHEsyuMMXomdvrEkYYj_Z7bWWw4","Sheet1!A:C"),"Select Col2 where Col1 = '"A1"' ") I've tested the import range formula without the query and that goes through successfully so it must be something with how I am writing the query. 回答1: You just need to add ampersands (&). Try this: =QUERY(IMPORTRANGE(

Join four columns into one according to each row

北战南征 提交于 2021-01-28 11:29:16
问题 A B C D E F G H I J K L M N O P If I chose to join the columns I would ={A1:A;B1:B;C1:C;D1:D} but it would look like this: A E I M B F J N ... and so on I would like it to look like this: A B C D E F G ... and so on How to proceed in this case? Note: It may happen that some of the columns are not complete in data, some may have more values than the others, but I still want to continue following this same pattern. Example: A B D E G H I J K L M N O P Result: A B D E G H ... and so on 回答1: use:

Splitting single column into multiple columns 1000 rows per column

◇◆丶佛笑我妖孽 提交于 2021-01-28 08:12:42
问题 I have an extremely large column of data that I want to split into multiple columns of 1000 rows each. I have combed the internet for any possible answer, and am unable to find a solution. Example: Columns Before I want to take the above column and split it into multiple columns of 3 rows, so that it resembles: Columns After I realize something like this would require a script. Any ideas? I've done it in Excel before, but not Google Sheets. 回答1: =ARRAYFORMULA(VLOOKUP(TRANSPOSE(SEQUENCE