Please explain this formula and what -index() stands for rather than the normal index().
WINDOW_SUM(SUM([New Cases]),-INDEX(),0)+WINDOW_SUM(SUM([ReOpened]),-INDEX(),0)-WINDOW_SUM(SUM([Closed]),-INDEX(),0)
Related
The data that i have is in a 2D fashion
I want the output in this type of schema using a Single Formula!
I've tried PIVOT and SUMIF,SUMIFS,QUERY functions. But, Alas unable to figure out the same. Can anyone please help me with this
You can use SUMPRODUCT for this task.
Formula B12 dragged right and down:
=SUMPRODUCT($B$5:$I$8*($A$5:$A$8=$A12)*($B$3:$I$3=B$11))
Result:
Pay attention at all those $ when adapting to your ranges.
you can also try this single formula to create the summary table.
=LAMBDA(x,y,{{"",y};x,MAKEARRAY(COUNTA(x),COUNTA(y),LAMBDA(r,c,SUM(FILTER(FILTER(B3:I,B1:I1=INDEX(y,,c)),A3:A=INDEX(x,r)))))})(FILTER(A3:A,A3:A<>""),UNIQUE(FILTER(B1:I1,B1:I1<>""),1))
I am wondering if someone with Google Sheets expertise can help me figure out how to write a formula to find percentages based on 2 parameters.
For Example, please see screenshot below, we want to figure out what percentage of the cost is included(Y/N) within each fruit (oranges/apples). What would be the best formula to solution for this?
Thank you!
Thanks in advance!
im am still doing my google sheets test and need help finding the answer to the question: what proportion of products are discontinued. i have to express my answer in a formula on google sheets
you can find the link to the data stack here:
products list:
https://docs.google.com/spreadsheets/d/1m67VmLZispyTwFTmPdppsdJNtbvnZsZK2LBCSchUWmU/edit?usp=sharing
my idea was to count the 0 in the column J(discontinued) with the formula: =Countif(J2:J78,"0"). in the next step i would have to show a proportionality and i have no clue how i am supposed to do that. could anyone tell me if the first step is correct and how i should go about the proportionality?
thank you!!
You can also use the formula PERCENTIF:
Returns the percentage of a range that meets a condition.
PERCENTIF(range, criterion)
In this case if you want to know the percentage of 0 this would be:
=PERCENTIF(J2:J78;"0")
You do not need any formula, just build a pivot table
I have the following formula in cell D2 in a Google Spreadsheet:
=IF(ISBLANK(B2),"",B2-C2)
How do I apply that formula to the whole column D with ArrayFormula? Because ArrayFormula is the best solution, right?
Thanks
Enclose the formula in the google sheets Arrayformula() function. Then change the reference from B2 to B2:B500 (or leave blank for open ended reference). Same for the second reference.
So =ARRAYFORMULA(IF(B2:B="","",B2:B-C2:C)) should work. Note that I changed ISBLANK to X="" since the arrayformula is bound to find values in the entire array so it won't return blank.
--
Whether this is the best way I don't know. The benefit is that this grows with the dataset and avoids errors when you haven't filled the formula far enough down. However it can sometimes slow sheets down (I've heard but not experienced anything severe myself). If you're experiencing slow sheets I recommend Ben Collin's blog on the topic.
Whithout closed ended references
=mmult( arrayformula(1*(ROW(A2:A)<TRANSPOSE(ROW(A2:A)+1))*(ROW(A2:A)>=TRANSPOSE(ROW(A2:A))) -1*(ROW(A2:A)>TRANSPOSE(ROW(A2:A)))*(ROW(A2:A)<=TRANSPOSE(ROW(A2:A)+1)) ) , A2:A)
I have two questions.
Question #1:
I am using this formula =SUM(E2,F2,G2,H2) for D2 cell.
Where E2, F2, G2, H2 are numbers
I want to repeat this formula for the whole D column. Please help me how to do this.
I see there is ArrayFormula, but I am confused how to use it, since I am not getting any results if I use
For e.g.
I tried,
=arrayformula(E2:E+F2:F+G2:G+H2:H)
But the answer is coming wrong.
Question #2:
I am using this formula =CONCATENATE(N2,O2,T2,U2,AJ2,AK2,BF2,BG2,CH2,CI2) for J2 cell.
Where N2,O2,T2.. all are strings
I want to repeat the same formula to whole cells in J3, J4 etc. automatically when the user enters the data.
I don't even know how to try this. Please help me by proving your answers.
Your first formula seems to work correctly, although if you want to hide zeroes on blank rows then try this formula in cell D2:
=ArrayFormula(IF(E2:E+F2:F+G2:G+H2:H=0,"",E2:E+F2:F+G2:G+H2:H))
To concatenate within an arrayformula, try using the & sign:
=ArrayFormula(N2:N&O2:O&T2:T&U2:U&AJ2:AJ&AK2:AK&BF2:BF&BG2:BG&CH2:CH&CI2:CI)