How to merge these two formulas into the single formula. I have tried but its not working.
Your help will be much appreciated.
=ArrayFormula(UNIQUE(trim(Sheet1!A1:E)))
=ArrayFormula(UNIQUE(trim(Sheet2!A2:E)))
What i have tried is:
=ArrayFormula(UNIQUE(trim(Sheet1!A1:E);trim(Sheet2!A2:E)))
and it throws an error
a bit unclear of the scope but could you try:
=ArrayFormula(UNIQUE(trim({Sheet1!A1:E;Sheet2!A2:E})))
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 tried using the below formula but not getting correct value:
=SUM(SUMIFS(payments!$D$2:$D$1776,payments!$A$2:$A$1776,A7,payments!$B$2:$B$1776,{H7,H7-1,H7+1}))
H7 is a date.
Can anybody please help with how this works?
SUMIFS does not work with an array, you have to use SUMPRODUCT
Try =SUMPRODUCT(payments!$D$2:$D$1776*(payments!$A$2:$A$1776=A7)*(payments!$B$2:$B$1776={H7,H7-1,H7+1}))
Fomula that works:
Fomula that doesn't work:
Hi guys, I encounter a problem.
I use the Inventory template from sheetgo.
I copy the fomula that works and paste it on another sheet.
Unfortunately, it got an error with the arrayfomula.
I have spent a long time investigating all possibilities but still can't solve them.
Is any expert able to help in this matter?
error says it all... in order to expand the results of arrayformula you need to clear range C2:C so that arrayformula could roll out. also, it looks like your formula is wrong but hard to tell for certain because you did not include a copy of your sheet nor formula
Can the following formula be simplified as described in the paragraph below it?
=(ABS(D$3-D5)+ABS(E$3-E5)+ABS(F$3-F5)+ABS(G$3-G5)+ABS(H$3-H5)+ABS(I$3-I5)+ABS(J$3-J5)+ABS(K$3-K5))/-1
The problem is that I don't know how many columns I'm going to end up with, and I certainly don't want to continue manually writing each column into the formula. Is there I way to simplify this formula so that every column in a row is calculated?
I've been trying various formulas to no avail, and I can't get usable results via Google searches. I suppose I don't know how to effectively word the question without writing a paragraph.
Thanks, in advance!
Try this one:
=-SUM(ARRAYFORMULA(ABS(D$3:$3 - D5:5)))
GOT IT:
=ArrayFormula(SUM(ABS(D$3:$3-D5:5))/-1)
I've got a problem in Google Spreadsheets:
I don't know why, but for Google there is a problem to use the SUMIFS formula.
When I try to use the SUMIFS formula for different criteria, for the same column, the output is always zero 0.
I tried aleady other things, but anyways it doesn't work.
Here are my examples:
Example 1
=SUMMIFS('Sheet1'!G1:G100;'Sheet1'!C1:C100;"Criteria1";'Sheet1!C1:C100;"Criteria2";'Sheet1'!D1:D100;"Criteria3")
Example 2
=SUMMIFS('Sheet1'!G1:G100;'Sheet1'!C1:C100;{"Criteria1" ;"Criteria2"};'Sheet1'!D1:D100;"Criteria3")
Example 3
=SUMMIFS('Sheet1'!G1:G100;'Sheet1'!C1:C100;"*Criteria1"&"Criteria2";Sheet1'!D1:D100;"Criteria3")
Non of these work. I dont know what I should do. Anyone has an idea?
Thanks in Advance
This behavior is probably correct. SUMIF criteria are connected AND not OR. This means all criteria need to be true.
So if you have two criteria on the same column it is very likely that only one of them can be true at the same time. Eg. column C can not be "Car" and "Book" at the same time. Therefore it is never count into the sum and always results 0.
To OR connect criteria have a look here: SUMIFS with OR.
this formula works:
=SUM(ARRAYFORMULA(SUMIF('Sheet1'!G1:G100;'Sheet1'!C1:C100 & 'Sheet1'!C1:C100 ;{"Criteria1";"Criteria2"} ; 'Sheet1'!D1:D100;"Criteria3")))
Anyways the bad thing is, that this formula cant disting date criterias.
Example1:
=SUMIFS(G2:G100;D2:D100;">=01.06.2011";F2:F100;"<=30.07.2011")
Does work, but this example 2 doesnt work:
Example 2:
=SUM(ARRAYFORMULA(SUMIF(D2:D100 & F2:F100;">=01.06.2011"&"<=30.07.2011";G2:G100)))
I Dont know why it doesnt work, has anybody a solution for this ?
Thanks in advance.