array-formulas

How to auto-convert a whole number into it's 2 decimals points?

限于喜欢 提交于 2019-12-24 06:47:09
问题 Following the previous answers How to make a condition based on the number of decimals a number has with the IFS and AND functions in Google Sheets? The formula given didn't return a result for whole numbers (any number without decimals, for example: 1(.00), 12(.00) etc.). To make it return a result also for inputs with whole numbers, I thought of some formula like this: =IF(A1=(a whole number/number without decimals),A1.00(A1 formatted as a whole number with two decimals),A1(A1 with any

How do I return a string that the built in Google Spreadsheet function can us

老子叫甜甜 提交于 2019-12-24 06:34:48
问题 I have a function that returns a string that are the cells that I need to scan with the UNIQUE() built-in function, but it does not process the returned value. Tried putting them in quotes, didn't help. function GetRange(sheet, ColumnLetter , Offset) { var startColumn = letterToColumn(ColumnLetter); var string = ""; for(var i=startColumn; i <= Offset; i++) { string += sheet + "!" + columnToLetter(i) +":"+columnToLetter(i)+";"; } string = string.substring(0, string.length-1); return string+"";

Google Sheets formula match multiple criteria

£可爱£侵袭症+ 提交于 2019-12-22 17:56:09
问题 I have a spreadsheet like the one shown in the image. What I would like to do is generate a formula that will count how many times MALEs from NEW YORK choose the BLUE color. In column D, the user can enter 1-3 different colors. Column B will be ignored in this case. Can anyone help me with the formula? 回答1: Try this formula in Google docs =ARRAYFORMULA(sum(if(A2:A4="Male",if(C2:C4="New York",If(isnumber(search("Blue",D2:D4)),1))))) you can expand it to as many rows as you need 来源: https:/

Using MIN() inside ARRAYFORMULA()

£可爱£侵袭症+ 提交于 2019-12-22 05:52:33
问题 I've seen some examples of using SUM() inside an ARRAYFORMULA() in Google Spreadsheets (and oddly enough, they all seem like workarounds) but I can't figure out how to apply them to using MIN() instead. Let's say I have columns A , B and C and I just want to get the result of MIN(A:C) on the D column, just for the three cells that would match each row. The straightforward way should be ARRAYFORMULA(MIN(A1:C)) but surely enough that doesn't work. How can I programmatically calculate the MIN()

Multiple criteria for sumif in Google Sheets

喜你入骨 提交于 2019-12-22 05:28:13
问题 I'm trying to calculate the sum of column in google spreadsheet when DataSheet!G:G="solved" AND DataSheet!C:C="May" it must calculate the sum of DataSheet!H:H. I have tried =ARRAYFORMULA(SUM(((DataSheet!C:C)="May") * ((DataSheet!G:G)="solved") * (DataSheet!H:H) )) But it returns N/A can anyone help me with this. 回答1: This formula would only returns N/A if a value on your H column is N/A . Have you checked that? And, are you sure it's N/A and not other kind of error? If so, can you please

Array formula to return an ARRAY without duplicates, without VBA

扶醉桌前 提交于 2019-12-21 03:01:15
问题 I would like to know whether it's possible to return an array from a single cell formula, which is filtered to remove duplicates, and which is built purely on Excel formulas. I'm aware of approaches to return a list of values where the duplicates are removed (see this question), where the list is spread over multiple cells. However I specifically want to return an array intermediate. E.g. For the list in A1:A5 , I can get an array of values {0.1,0.2,0.2,0.7,0.3} , from which I want a second

Array formula to return an ARRAY without duplicates, without VBA

我是研究僧i 提交于 2019-12-21 03:01:08
问题 I would like to know whether it's possible to return an array from a single cell formula, which is filtered to remove duplicates, and which is built purely on Excel formulas. I'm aware of approaches to return a list of values where the duplicates are removed (see this question), where the list is spread over multiple cells. However I specifically want to return an array intermediate. E.g. For the list in A1:A5 , I can get an array of values {0.1,0.2,0.2,0.7,0.3} , from which I want a second

How do I combine COUNTIF with OR

最后都变了- 提交于 2019-12-20 10:25:56
问题 In Google Spreadsheets, I need to use the COUNTIF function on a range with multiple criteria. So in the table below, I would need to have something like =COUNTIF(B:B,"Mammal"or"Bird") and return a value of 4. A |B ------------------- Animal | Type ------------------- Dog | Mammal Cat | Mammal Lizard | Reptile Snake | Reptile Alligator | Reptile Dove | Bird Chicken | Bird I've tried a lot of different approaches with no luck. 回答1: One option: =COUNTIF(B:B; "Mammal") + COUNTIF(B:B; "Bird")

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(