Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple criteria for sumif in Google Sheets

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.

like image 426
Kool_Kat Avatar asked May 17 '12 11:05

Kool_Kat


People also ask

Can you do a Sumif with multiple criteria?

You need to use SUMIFS function that is by default designed to sum numbers with multiple criteria, based on AND logic. You can also use SUMIFS function to sum number with multiple criteria, based on OR logic, with an array constant.

Can you have 3 criteria in Sumifs?

Using Excel SUMIFS Function To Sum Values With Multiple Criteria. You have to use the SUMIFS function in Excel to sum values with multiple criteria, as the SUMIF function can handle only one criterion at a time.

Can Countifs have 3 criteria Google Sheets?

In Google Sheets, the COUNTIF function accepts only one data range and one criterion.

How do I sum multiple columns based on single criteria in Google Sheets?

Google Sheets SUMIF to sum a data range on a condition SUMIF is a Google Sheets function to return a total of cells that match a single specific criterion. Put simply, the SUMIF function filters the range according to the specified criteria and sums values based on this filter. The syntax is the same as SUMIF Excel.


1 Answers

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 share your spreadsheet, or a sample of it so I can take a look for myself, because I can't reproduce this.

like image 170
Henrique G. Abreu Avatar answered Oct 31 '22 06:10

Henrique G. Abreu