google-sheets-formula

Adding blank rows in a set of data in Google Sheets

孤街醉人 提交于 2019-12-12 06:38:30
问题 I have a set of data. What i am looking forwards is to add 2 blank rows after each set of 3 values like this Hope to get help in getting this solved. you can find the sample google sheet here : https://docs.google.com/spreadsheets/d/11nMvUWn3xcTfxlk4v30KruPr03HSheMk1jrxZPpJ_p4/edit?usp=sharing Thanks Shijilal 回答1: Solution: IF it's the third row, Add 3 bunnies separated by a space, else keep the values as it is JOIN them all and SPLIT by a bunny and TRANSPOSE Sample: =ARRAYFORMULA(TRANSPOSE

How do I find out the longest run of a number?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 05:38:39
问题 This question was migrated from Cross Validated because it can be answered on Stack Overflow. Migrated 7 years ago . This seemed like a trivial question to me, but I cannot get it done correctly. Part of my dataset looks like this 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 and contains two “runs” of 1 (not sure if that’s the correct word), one with a length 3, the other with a length of 5. How can I use Google Docs or similar spreadsheet applications to find the longest of those runs? 回答1: In

Google Spreadsheets Convert Matrix data into Relational rows

旧巷老猫 提交于 2019-12-12 05:36:02
问题 My Google spreadsheet data is in a matrix form with "holes". See https://docs.google.com/spreadsheet/ccc?key=0Ati5T34RP9mEdGJfcUFzVDV4elZIbExkTGM4aktQT2c&usp=drive_web#gid=0 I'd like to create another sheet from the above data to look like what I've manually done in https://docs.google.com/spreadsheet/ccc?key=0Ati5T34RP9mEdGJfcUFzVDV4elZIbExkTGM4aktQT2c&usp=drive_web#gid=3 Any ideas? 回答1: This should work on the latest version of Sheets: =ArrayFormula(QUERY(VLOOKUP(HLOOKUP('Table Chart'!A2,

Importing data from multiple sheets with Query/ImportRange formula returning ARRAYLITERAL ERROR

余生长醉 提交于 2019-12-11 19:04:22
问题 I have 2 Google Sheets which track class attendance for our two main sites and each tab on the sheet is a different class/course. Each sheet has a "data" tab which pulls all the class/course data. I am trying to pull the data sheets from these two sheets and put them on a 3rd sheet and organize the class data by a program (GED, CDP, ESL). I have had no issues pulling the data from one sheet, but when I tried stacking the Query and Importrange formulas, I keep receiving an ARRAY LITERAL error

How to sum a range based on another range which comes under another range in sheets

可紊 提交于 2019-12-11 18:06:42
问题 I wanted to know how can we sum a range in a sheet based on another range which comes under another range. Example: I want the sum of A2:A10 if corresponding cell B1:B10 value comes under a list which is D2:D or E2:E in Example, Sum of Fruits: ? Sum of Vegetable: ? 回答1: =DSUM({"x", "y"; A2:B}, "x", {"y"; FILTER(E2:E, E2:E<>"")}) =DSUM({"x", "y"; A2:B}, "x", {"y"; FILTER(D2:D, D2:D<>"")}) EU syntax: =DSUM({"x"; "y"\ A2:B}; "x"; {"y"\ FILTER(E2:E; E2:E<>"")}) =DSUM({"x"; "y"\ A2:B}; "x"; {"y"\

Manual data tagging and lookup

五迷三道 提交于 2019-12-11 18:01:43
问题 I need a system that allows to filters entries by different text tags. Say we store info about some products. We have Red Apples, Pears, Watermelons, Cucumbers, Peppers and Bread. We store them in sheet named "Data" in column A. Next columns are occupied by tags, like Red Apples are Red, Sweet, Fruit, Unpacked; Peppers are Red, Spicy, Veggie, Packed; Bread is just Packed. Then on another sheet we have a dedicated range, say A1:A10, which can accept any data tag, like Spicy or Packed. What I

Using indirect to pull from multiple sheets for a Query

拈花ヽ惹草 提交于 2019-12-11 17:05:39
问题 I have a dynamic list of the sheets in a Google workbook. I am hoping to create a query that pulls from these different sheets - although I am often adding and deleting sheets. Right now my query looks like, and it works great: =query({'1.17 invoice'!A25:N;'1.31 invoice'!A25:N;'2.1 invoice'!A25:N;'invoice 2.1 (2)'!A25:N},"SELECT Col1, Col2, Col3, Col7, Col12, Col13 where Col1 <> ''",0) I can create a cell A1 that has a value of: '1.17 invoice'!A25:N;'1.31 invoice'!A25:N;'2.1 invoice'!A25:N;

Looping through a set of values in google sheets

本秂侑毒 提交于 2019-12-11 16:58:09
问题 I have 2 sets of data. One is tank names Tank Name A1 A2 B1 B2 and the next is ON/OFF Data ON/OFF 0 0 1 1 0 1 0 1 1 0 1 0 1 Now the result I am looking is, when the ON/OFF is 1 then the first tank is to be mentioned: when it's 0, no tank to be mentioned. Once all the tanks are mentioned,then it should again start from the first tank ie A1..like this Result expected 0 0 1 A1 1 A2 0 1 B1 0 1 B2 1 A1 0 1 A2 0 1 B1 You can check the google sheet here : https://docs.google.com/spreadsheets/d

Slicer in Google Sheets

 ̄綄美尐妖づ 提交于 2019-12-11 16:42:48
问题 I created a dashboard on Excel but want to move it to Google Sheets. How can I implement slicer like Excel on the spreadsheet? I was using pivot in MS Excel with filters and slicers. I can replace slicer with some filters but in the spreadsheet, the filter isn't as handy as MS Excel and even dicer add-ons aren't functioning well. I am trying to replace it with data validation but that is making my dashboard extremely slow (Maybe because I can't find an efficient way). Can anyone suggest some

How to avoid/bypass/ignore a #N/A #NV Error in Google Sheets?

泄露秘密 提交于 2019-12-11 16:34:31
问题 I need help creating a formula! I want the formula if it contains a #NV error, to ignore the #NV error. Instead, a value should be output, even if there is a #NV error. Do you have any idea how this could work? When a wrong value is inserted in to the Assignment list, there is an #NV error. How can I ignore it? =ARRAY_CONSTRAIN(ARRAYFORMULA(SUMME(WENN(ODER((WENN($B$2="dontcare",1,(Assignment!$E$3:$E$577=$B$2))),(WENN($B$3="dontcare",1,(Assignment!$E$3:$E$577=$B$3))),(WENN($B$4="dontcare",1,