[英]Excel: Create sum of list, data validation drop-down list
How can I sum all the cells of a given category, created with Data Validation List? 如何汇总使用数据验证列表创建的给定类别的所有单元格? In Microsoft Office Excel 2011. 在Microsoft Office Excel 2011中。
Example: In the C column, sum every value from that is found from the G column. 示例:在C列中,对从G列中找到的每个值求和。
In Google Spreadsheet, I can do this with this formula: 在Google Spreadsheet中,我可以使用以下公式执行此操作:
=IF(ISBLANK(F3),"",SUM(FILTER($G$3:G,$F$3:F=B3)))
But in Microsoft Excel it doesn't work. 但是在Microsoft Excel中它不起作用。
Take a look at the SUMIF
formula in Excel. 看看Excel中的SUMIF
公式。 and if you need multiple criteria you can use the SUMIFS
formula. 如果需要多个条件,则可以使用SUMIFS
公式。
The Excel equivalent would be something like this: Excel等效项将如下所示:
=IF(ISBLANK(F3),"",SUMIF($F$3:$F$100000,B3,$G$3:$G$100000))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.