I've a Google Sheets document with a sheet called "Elenco" and another called…
- User
I've a Google Sheets document with a sheet called "Elenco" and another called "Sommario". In the first sheet "Elenco" I've a column A with dates, a column B with invoices ID, a column C with a product type string, a column I with that product weight. In the second sheet "Sommario" I've a column A with dates, a column B with invoices ID, a column D with the total weight of all product of a kind, a column E with the total weight of all products of all product of another kind. I need a formula for the cells of column D and E in the second sheet "Sommario" to find the sum of all products of a specific type in the sheet "Elenco" based on a specific date, invoice ID and product type.
- Assistant
You can use the SUMIF function in Google Sheets to achieve this.
For column D in the "Sommario" sheet, to calculate the total weight of all products of a specific type based on a specific date, invoice ID, and product type, you can use the following formula:
=SUMIF(Elenco!A:A, Sommario!A1, IF(Elenco!B:B, Sommario!B1, IF(Elenco!C:C, Sommario!C1, Elenco!I:I)))
This formula will sum the values in column I of the "Elenco" sheet where the corresponding date in column A, invoice ID in column B, and product type in column C match the values in cells A1, B1, and C1 of the "Sommario" sheet, respectively.
You can use a similar formula for column E to calculate the total weight of all products of all product types based on specific criteria. Just adjust the ranges and criteria accordingly in the SUMIF function.
- User
Sorry, but gives me an error of formula analysis...
- Assistant
I apologize for the error in the previous formula. Here's the corrected formula for column D in the "Sommario" sheet to calculate the total weight of all products of a specific type based on a specific date, invoice ID, and product type:
=SUMIFS(Elenco!I:I, Elenco!A:A, Sommario!A1, Elenco!B:B, Sommario!B1, Elenco!C:C, Sommario!C1)
This formula uses the SUMIFS function in Google Sheets, which allows you to sum a range based on multiple criteria. The formula sums the values in column I of the "Elenco" sheet where the corresponding date in column A, invoice ID in column B, and product type in column C match the values in cells A1, B1, and C1 of the "Sommario" sheet, respectively.
You can use a similar formula for column E in the "Sommario" sheet to calculate the total weight of all products of all product types based on specific criteria. Just adjust the ranges and criteria in the SUMIFS function accordingly.
- User
I've a Google Sheets document with a sheet called "Elenco" and another sheet called "Sommario". In the first sheet called "Elenco" I've a column A filled with dates, a column B filled with invoices ID, a column C filled with a product type string, a column I filled with that product total weight. The two types of products are "Grissini" and "Lingue". In the second sheet called "Sommario" I've a column A filled with dates, a column B filled with invoices ID, a column D to store the total weight of all products of type "Grissini" based on date and invoice ID, a column E to store the total weight of all products of type "Lingue" based on date and invoice ID. I need the formulas for the column D and E for the second sheet called "Sommario".
- Assistant
To calculate the total weight of all products of type "Grissini" and "Lingue" based on date and invoice ID in the "Sommario" sheet, you can use the following formulas:
For column D (total weight of all products of type "Grissini"): =SUMIFS(Elenco!I:I, Elenco!C:C, "Grissini", Elenco!A:A, Sommario!A1, Elenco!B:B, Sommario!B1)
For column E (total weight of all products of type "Lingue"): =SUMIFS(Elenco!I:I, Elenco!C:C, "Lingue", Elenco!A:A, Sommario!A1, Elenco!B:B, Sommario!B1)
These formulas use the SUMIFS function in Google Sheets to sum the values in column I of the "Elenco" sheet where the product type matches "Grissini" or "Lingue", and the date and invoice ID match the values in cells A1 and B1 of the "Sommario" sheet, respectively.
You can enter these formulas in columns D and E of the "Sommario" sheet to calculate the total weight of products of type "Grissini" and "Lingue" based on the specified criteria.
- User
can you translate this formula from openoffice to google sheets: =SOMMA.PIÙ.SE(Elenco!2:1000;Elenco!2:1000;BBB2;Elenco!2:1000;$C2)
- Assistant
The formula you provided is the SUMIFS function in Italian used in OpenOffice. To translate this formula to Google Sheets, you can use the following formula which is the equivalent SUMIFS function in Google Sheets:
=SUMIFS(Elenco!I2:I1000, Elenco!A2:A1000, A2, Elenco!B2:B1000, B2, Elenco!C2:C1000, C2)
This formula calculates the sum based on multiple criteria in Google Sheets. Just replace the ranges and references with the corresponding ranges in your Google Sheets document.
- User
=SOMMA.PIÙ.SE(Elenco!2:1000;Elenco!2:1000;BBB2;Elenco!2:1000;$C2) can you tell me if there are errors in this google sheets formula? it gives me zero as result and it shouldn't be so.
- Assistant
The formula you provided seems correct and should work in Google Sheets to sum the values based on multiple criteria. If the formula is returning zero as the result when it shouldn't be, there might be a few things to check:
-
Make sure that there are matching values in columns A, B, and C in the "Elenco" sheet for the criteria specified in the formula.
-
Check for any leading or trailing spaces in your data that might be causing the formula to not match the criteria correctly.
-
Verify that the cell references in the formula (e.g., B2, $C2) are referencing the correct cells containing the criteria in the "Sommario" sheet.
-
Double-check the ranges and criteria in the formula to ensure they are correct and there are no typos.
-