Hello I need help in creating a formula with query and sum in google sheet
Here are the condition:
count of all(Column A= a certain number or a specific cell) and Column E=either of the states-up to 4 state
Hope someone can assist me on this.
try:
=QUERY(A2:E, "select E,sum(A) where A is not null group by E label sum(A)''")
Related
I'm trying to make a Google sheets document right now - It's basically a roster for work. How can I create a cell in which I can display the amounts of shifts one person has worked?
In other words: What is the function to count the number of times a specific name is mentioned in the sheet?
Thank you very much!!
let's say names are in A column try:
=QUERY(A:A; "select A,count(A) where A is not null group by A label count(A)''")
Hello stackoverflow, i want to fill cell on Sheet B based on Sheet A data. i tried some guide "Max If (Max Value with Condition)" but its doesnt work give 0 (zero) value instead.
thank you
try:
=QUERY(SheetA!B:G; "select B,max(G),avg(G) where G matches '^[0-9]+' group by B")
I have the following query in google spreadsheet (!classement H6)
=QUERY(classement!A2:C367;"SELECT COUNT(B) WHERE B='worry' AND C=2")
This query works and I have good result
If I want to reference a cell with the same value I12=2 my result is empty
=QUERY(classement!B2:D367;"SELECT COUNT(B) WHERE B='worry' AND C= '"&classement!I12 &"'")
here is my google spreadsheet exemple
Do you have an idea ?
Thanks
Noliverte
You just need to remove the ticks (') as in your first the number is not with ticks, but in the second it is, this is because you are looking for a number value
=QUERY(classement!B2:D367;"SELECT COUNT(B) WHERE B='worry' AND C= "&classement!I12 &"")
I have a spreadsheet in Google with the following data:
**Status Amount**
Under Review $120.00
Delivered $50.00
Paid $320.00
Paid $110.00
Under Review $200.00
I want to sum all the column Amount, only but of only of those rows that has a Status on 'Delivered' or 'Paid'
With my example, the SUM should return $480.00.
I was trying with this formula, but it isn't working
=SUMIF(Column Amount,Status={"Delivered","Paid"},Column Amount)
Any ideas? Thanks a lot!
You can also use the following formula:
=SUM(QUERY(A2:B,"select sum(B) where A='Paid' or A='Delivered' group by A"))
One of your columns is incorrect, and you need to use the arrayformula function. Documentation here
=SUM(ARRAYFORMULA(SUMIF([status_column],{"Delivered","Paid"},[amount_column])))
I'm trying to set up the following formula:
I have an Overview sheet where I want to sum the fields in Column B in Sheet named "Accounting", BUT, only sum the Expenses where Column D of the same row in Sheet Accounting is "Expenses"
I've tried a few different formulas, and none worked. Here's the latest one I tried
=search("Expense",(Accounting!B:B)) SUM(Accounting!B:B)
Can anyone help me?
Thanks!
=SUMIF(Accounting!D:D,"Expenses",Accounting!B:B)