google-sheets-formula

sum value from a date range for a specific product

丶灬走出姿态 提交于 2019-12-20 06:41:03
问题 I am looking to sum up multiple values from multiple cells where they will match a date and a product. like below: I have a date set in every cell in row 2 as below, and I have my categories in column A now I want to pick the total value (that is unit costs) from (below picture) this sheet where the date is equal to 1-dec (date) and the category is equal to office. I tried using this formula ( =sum(query(DataSheet!A3:J10, "select a,c,i where a= '"&C2&"' and c= '"&A4&"'",0),0) ) - but it is

Looping through a set of google sheet values

泪湿孤枕 提交于 2019-12-20 06:29:57
问题 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 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 1 1 0 1 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.But if 0 comes in between then it should start again from A1 .. like this Result expected 0 1 A1 1 A2 1 B1 1 B2 1 A1 0 0 1 A1 1 A2 1 B1

Fill ArrayFormula with dynamic IMPORTRANGE

佐手、 提交于 2019-12-20 05:58:33
问题 I have a Google Sheets that collects marks of students from various sheets to create a complete mark sheet. Each teacher enters marks in his/her own spreadsheet with paper number as sheet names. Each sheet of any has just two columns: Roll# and Marks . Using combination of paper number (sheet name), Google Sheets Key, Roll# and Marks I MANUALLY create formulas to collate data using Sort, ArrayFormula and IMPORTRANGE functions. This works. But manually creating formulas is an error prone

How would I import YouTube Likes and Dislikes and a ratio from YouTube onto Google Sheets? [closed]

▼魔方 西西 提交于 2019-12-19 12:20:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago . How would I import YouTube likes and dislikes from a video onto Google Sheets? 回答1: TITLE: =IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","//*[@id='eow-title']") VIEWS: =VALUE(REGEXREPLACE(TEXT(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo", "//*[contains(

Getting the count and unique values of a column of comma separated values?

假装没事ソ 提交于 2019-12-18 16:48:34
问题 Supposing all I have is the column A below + + A | B | C +--------------|---------|----------+ | | X, Y, Z | X | 3 | | X, Z | Y | 2 | | X, Y | Z | 2 + + How do I generate columns B and C - where the B column grabs the unique elements from A, and the C column generates a count of those values. 回答1: =ArrayFormula(QUERY(TRANSPOSE(SPLIT(JOIN(",",A:A),",")&{"";""}),"select Col1, count(Col2) group by Col1 label count(Col2) ''",0)) QUERY function TRANSPOSE function SPLIT function JOIN function 回答2:

Apps Script: how to get hyperlink from a cell where there is no formula

≡放荡痞女 提交于 2019-12-18 07:50:12
问题 I have a sheet where hyperlink is set in cell, but not through formula . When clicked on the cell, in "fx" bar it only shows the value. I searched on web but everywhere, the info is to extract hyperlink by using getFormula() . But in my case there is no formula set at all. I can see hyperlink as you can see in image, but it's not there in "formula/fx" bar. How to get hyperlink of that cell using Apps Script or any formula? 回答1: When Excel file including the cells with the hyperlinks is

Count cells that contain any text

荒凉一梦 提交于 2019-12-17 17:46:30
问题 I want to count the cells that contain anything within a range. Any cell that contain text, or numbers or something else should do a plus one in my result-cell. I found this function, countif(range; criteria) but this doesn't work for me, because I don't know what to type in the criteria. How can I do this? 回答1: You can pass "<>" (including the quotes) as the parameter for criteria . This basically says, as long as its not empty/blank, count it. I believe this is what you want. =COUNTIF(A1

How do you get the formula from a cell instead of the value?

天涯浪子 提交于 2019-12-17 16:05:59
问题 How do you get the literal value (the formula) from a cell instead of the result value? EXAMPLE DESIRED: A2: "Foo" B3: "=A2" - so it displays "Foo" C3: "=CELL("formula", B3)" displays "=A2" Of course, CELL() doesn't support a "formula" parameter, that's just for demonstrating the intent. I've looked over the function list and nothing jumps out at me. USE CASE: I would like to make a reference to another row, and based on that reference get other cells from the row. Putting an explicit row

Sum of every row where two conditions are met

限于喜欢 提交于 2019-12-14 03:29:48
问题 I have two spreadsheets. The first is a list of products, the second is a list of sales. The products spreadsheet includes four columns: "SKU", "Shipment ID", "Quantity Purchased", and "Remaining Quantity." A B C D SKU Shipment ID Qty Purchased Remaining Qty 1 20121 X2992 40 38 2 20121 X8483 40 40 3 71662 X2242 40 39 The sales spreadsheet includes three columns: "SKU", "Shipment ID", and "Quantity Sold." A B C SKU Shipment ID Qty Sold 1 20121 X2992 1 2 71662 X2242 1 3 20121 X2992 1 I want

Leave a cell blank until data is entered in different cell in Google Sheets

此生再无相见时 提交于 2019-12-13 22:10:48
问题 Can someone help me to type this formula: =IF($F5>0,I4/$F5,0) inside this formula: =IF(F5="","",[I-want-to-type-it-here]) The first formula =IF($F5>0,I4/$F5,0) is to calculate the profit margin, and the second is to leave the cell empty until I enter data in a different cell. 回答1: try it like this: =IFERROR(IF($F5>0, I4/$F5, 0), ) =IF(F5="", , IF($F5>0, I4/$F5, 0)) =IF(F5="", , IFERROR(IF($F5>0, I4/$F5, 0), IF($F3>0, I3/$F3, 0))) 来源: https://stackoverflow.com/questions/54843199/leave-a-cell