array-formulas

How to list the most frequent 3-word strings on Google Sheets

拟墨画扇 提交于 2020-04-14 12:14:09
问题 I have a list of industries with a adjacent list of industries to categorize them. I would like to know which industries are the most common but I don't manage to make Sheets interpret two-word categories as one. First, I would like to know which 5 categories are the most common overall. Also I would like to know the top 5 one-word (black), two-word (red) and three-word (blue) categories. Plus, I would like to get rid of the commas. Here's what I want to achieve and a link to a google sheets

PHPExcel insert array formula

我的未来我决定 提交于 2020-04-11 04:55:27
问题 I want to insert this array formula: {=SUM(IF(FREQUENCY(IF(T9:T977=1,MATCH(U9:U977,U9:U977,0)),ROW(U9:U977)-ROW(U9)+1),1))} but when I'm using: $sheet->getCell("C1")->setValue("{=SUM(IF(FREQUENCY(IF(T9:T977=1,MATCH(U9:U977,U9:U977,0)),ROW(U9:U977)-ROW(U9)+1),1))}"); It doesn't work, I've checked the documentation, but still haven't found anything. 回答1: I couldn't find any answer so I went through PHPExcel and made myself a solution: in /PHPExcel/Cell.php at row 251 in the switch($pDataType)

PHPExcel insert array formula

懵懂的女人 提交于 2020-04-11 04:55:26
问题 I want to insert this array formula: {=SUM(IF(FREQUENCY(IF(T9:T977=1,MATCH(U9:U977,U9:U977,0)),ROW(U9:U977)-ROW(U9)+1),1))} but when I'm using: $sheet->getCell("C1")->setValue("{=SUM(IF(FREQUENCY(IF(T9:T977=1,MATCH(U9:U977,U9:U977,0)),ROW(U9:U977)-ROW(U9)+1),1))}"); It doesn't work, I've checked the documentation, but still haven't found anything. 回答1: I couldn't find any answer so I went through PHPExcel and made myself a solution: in /PHPExcel/Cell.php at row 251 in the switch($pDataType)

How to use a custom function with an ArrayFormula

会有一股神秘感。 提交于 2020-03-26 05:20:09
问题 I want to write a function that can be used inside an ArrayFormula. My table is like this: | A | B | C | 1| a | | | 2| b | | | 3| c | | | First I wrote a simple function to return the input (so I know it works inside the ArrayFormula): function retAddress(cell){ return cell; } On B1 I wrote =ArrayFormula(retAddress(address(row(B:B),column(A:A),4))) and apparently it worked as expected, it returned each address, like this: | A | B | C | 1| a | A1| | 2| b | A2| | 3| c | A3| | Now, on column C,

Generate a list of combined columns

人走茶凉 提交于 2020-03-24 00:41:39
问题 I need to generate a list of possible outcomes given 5 unique rows of information. say A1=12, A2=34, then B1=Some, B2=sOme, B3=soMe, B4=somE, then C1=56, C2=78 you get the idea all with the final row being E and all the outcomes will be shown in row F I just want to show unique outcomes, how could do I go this in either Google Sheets or Excel? this is an expansion of a previously answered question here Generate all possible combinations for Columns in Google SpreadSheets 回答1: paste in F1 cell

Compare two sheet columns and copy data to first Sheet

南楼画角 提交于 2020-03-06 09:31:05
问题 I'm trying to find out the formula for matching CODE 1 between Sheet1 and Sheet2, then, copy 'Original','Lost' and insert 'Total 2019 Order' columns into Sheet 1 by corresponding CODE 1 , The google sheet is here: https://docs.google.com/spreadsheets/d/1SvMVC0P6eWcmaULEolu0zTr2wv6zlFl9-ttkgaxXcX8/edit?usp=sharing 回答1: use: =ARRAYFORMULA(IFNA(VLOOKUP(B2:B, Sheet2!B2:I, {8, 5}, 0))) spreadsheet demo 来源: https://stackoverflow.com/questions/60161952/compare-two-sheet-columns-and-copy-data-to

Is there a way to sort this Google scripts function numerically/opposite direction?

泄露秘密 提交于 2020-03-04 15:34:05
问题 Here is the script that I'm using to pull all the sheet names of a Google Sheet Document into a list on a front sheet. It is working; however, is there a way to sort this the opposite way? I have the sheets named by date with the oldest date as the furthest sheet and the newest sheet the closest to the front. So it is sorting the newest date first but I would like it to sort with the oldest date first. Also, is there a way to make this function dynamic so it updates as new sheets are added or

How to use a custom function in an ARRAYFORMULA for a range of cells?

陌路散爱 提交于 2020-02-23 07:01:46
问题 I have a Google Form that is populating a Google Sheet. Due to having custom formulas in the sheet to manipulate the data populated from the form I am using ARRAYFORMULA to apply to all rows in a column. I have a custom function to encode rows containing html function base64EncodeWebSafe(input) { try { // Try and fetch the specified url. return Utilities.base64EncodeWebSafe(input); } catch (e) { Utilities.sleep(1000); return Utilities.base64EncodeWebSafe(input); } } When I call this function

How to combine rows with same ID in Google Sheets?

强颜欢笑 提交于 2020-01-30 08:54:04
问题 I'm trying to merge rows with same IDs in Google Sheets From: ID | Category Augur | A1 Augur | A2 Augur | A3 Augur1 | A1 Augur1 | A2 Augur1 | A3 To: ID | Category Augur | A1; A2; A3 Augur1 | A1; A2; A3 Is there an automatic way to do it in Google Sheets itself, using its native functions? 回答1: =ARRAYFORMULA(QUERY({INDEX(QUERY(A1:B, "select A,count(A) where A is not null group by A pivot B", 0), , 1), REGEXREPLACE(TRIM(TRANSPOSE(QUERY(TRANSPOSE(IF(ISNUMBER(QUERY(A1:B, "select count(A) where A

Count checked checkboxes within a query

試著忘記壹切 提交于 2020-01-24 21:25:07
问题 How do I count checked checkboxes within a query in Google sheets (this is part of a group query where I want to count checked checkboxes in column B for each value of column A grouped by column A)? 回答1: try: =ARRAYFORMULA(QUERY({A:A\ B:B*1}; "select Col1,sum(Col2) where Col1 is not null group by Col1 label sum(Col2)''")) 来源: https://stackoverflow.com/questions/59751416/count-checked-checkboxes-within-a-query