I want to sum all the quantity sold in all orders here so that sheet will search for Q in column header if its there the sum the below no.
below is a link for my sheet
https://docs.google.com/spreadsheets/d/1viATMfTjVHSLrC1HTYKArmJBnrDfeNVj7oSIgdVzLH4/edit?usp=sharing
You can use SUMPRODUCT().
=SUMPRODUCT((C5:BJ)*(C4:BJ4="Q"))
Related
I have two spread sheet 1 is record for customer data and 1 is use for check the amount for particular month. I would to the calculation sum of the amount from first sheet to second sheet with filtering by month & year
First sheet will look something like this
In second sheets the only things that I would like to show is amount. Does not have to show the date anymore since filtering the amount by month & year
The Formula that failed is
=QUERY('CustomerData'!A:B, "select A, SUM(B) WHERE month(X)=month(date'2021-9-30')")
Try
=QUERY(CustomerData!A:B, "select sum(B) WHERE A>=DATE'2021-09-01' and A<=DATE'2021-09-30' ")
I have a google sheet that contains case number column and MC column. How to count the row of case number based on the MC Column and automatically sum up in the number of cases column. This is the screenshot of my data:
try:
=QUERY(A2:C; "select C,count(C) where C is not null group by C")
I'm trying to put together an investment tracking sheet. For the overview page, I want to query and combine data from each of the account tabs but I'm having difficulty figuring out how to make that work.
Here's a link to my test sheet: https://docs.google.com/spreadsheets/d/14sZmxkM65ax9BKrkjinwOrOQPrS_xhqPPLs68Rggii4/edit
The formula I tried to use is in column J on the Overview tab. This formula works in Excel, but not Google Sheets:
=IF(F2<>"",SUMPRODUCT(SUMIF(INDIRECT("'"&Accounts&"'!"&"$N$2:$N$1000"),F2,INDIRECT("'"&Accounts&"'!"&"$O$2:$O$1000"))),"")
Accounts is a named range with the 4 account tab names
Column N on each account tab has the stock name
Column O on each account tab has the share count
Column F on the Overview tab has the stock names to match
If I run the same spreadsheet in Excel, the above formula works correctly and the share counts are correctly added from the 4 accounts: 120/20/50/101.
In google sheets I understand that INDIRECT doesn't support arrays, so it only shows the share counts from the first account: 100/20/0/0
So my question is if anyone can tell me how to modify the formulas from column J to work in Google Sheets?
Thank you.
delete your whole column J and use this:
=ARRAYFORMULA(IFNA(VLOOKUP(F2:F, QUERY(
{Account1!N:O; Account2!N:O; Account3!N:O; Account4!N:O},
"select Col1,sum(Col2)
where Col1 is not null
group by Col1"), 2, 0)))
I am looking for a formula that will help me count other google sheet's D column matched with the current sheet row.
wait I am explaining!!!
I want to count the reg no. of D column of the student of (RM responses 20.08.2020) Sheet
according to that students reg no. (A2 row) value of (Attendance Counter) sheet.
So that I can scroll it down according to row.
[1]: https://i.stack.imgur.com/TcMI6.jpg
here is the formula:
=COUNTIF(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1mWtCKQggKUoGAn9td5nkjva6UBK5WHtq_NHBd-lEj8c/edit#gid=1023365212", " Form Responses 1!$D:$D; "A2"))"))
Here are links of the sheets:
Link (Attendance Counter): https://docs.google.com/spreadsheets/d/1PKk0y1yoi0smAYKfGwMkLSUkJLWtb0JwmWIVKdnOKoY/edit#gid=306895548
Link (RM Responses): https://docs.google.com/spreadsheets/d/1mWtCKQggKUoGAn9td5nkjva6UBK5WHtq_NHBd-lEj8c/edit#gid=1023365212
use:
=COUNTIF(IMPORTRANGE("1mWtCKQggKUoGAn9td5nkjva6UBK5WHtq_NHBd-lEj8c",
"Form Responses 1!D:D"), A2)
I have a spreadsheet with 2 sheets in it, I want to summarize the weekly results by date. I'm trying to use the query sum function to summarize everything since I wasn't able to do it with arrayformula.
but I'm not able to do it with a query as well. I don't want to just copy-paste the sum function from each row to the next I want to just type the date I need in column A and get all the results in the different columns.
https://docs.google.com/spreadsheets/d/1ZsKXw32ycO_5KGD2I-Ug_GmqSIB_Z-D3Z1jlGd6fpTE/edit?usp=sharing
link to sheets.
getting the data from the database sheet. I want to display the data-oriented by date and summed.
=ArrayFormula(IFERROR(FILTER(QUERY(DataBase!A2:E,"select A,sum(E)
where A is not null
group by A
label sum(E)''"), WEEKNUM(DataBase!A2:A)=WEEKNUM(A2:A))
))
I tried this formula and it dosent work..
=ARRAYFORMULA(IFERROR(VLOOKUP(A2:A,
QUERY(FILTER(DataBase!A2:E,WEEKNUM(DataBase!A2:A)=WEEKNUM(A2)),
"select Col1,sum(Col5)
where Col1 is not null
group by Col1
label sum(Col5)''"), 2, 0)))