In Google Sheet I've this formula to get a specific weight of a product based on a range…
- User
In Google Sheet I've this formula to get a specific weight of a product based on a range of dates, product and selling destination: =SOMMA.PIÙ.SE(Elenco!2:9992;Elenco!2:9992;"Italia";Elenco!2:9992;"Grissini";Elenco!2:9992;">="&AAB3). When the range of dates is not listed in the sheet "Elenco" the cell where lies the formula gives me an incorrect result. Why?
- Assistant
The issue is likely due to how the SOMMA.PIÙ.SE function works in Google Sheets. When the range of dates specified in the formula is not found in the "Elenco" sheet, the function may not be able to retrieve the correct value for the specific weight of the product based on the criteria provided.
One way to handle this situation is to modify the formula to include an additional condition that checks if the date falls within the specified range. You can use an IF statement to check if the date is within the range and return the weight if it is, or return a blank cell if it is not.
Here's an example of how you can modify the formula:
=IF(AND(Elenco!2:9992>=AAB3),SOMMA.PIÙ.SE(Elenco!2:9992;Elenco!2:9992;"Italia";Elenco!2:9992;"Grissini";Elenco!2:9992;">="&AAB3),"")