简体   繁体   English

在Excel表格中使用DATES的SUMIFS

[英]SUMIFS using DATES in Excel Tables

I am encountering a problem using SUMIFS using dates as criteria. 我使用SUMIFS(以日期为标准)遇到问题。 However, the formula I have made works in ranges but not in tables. 但是,我制定的公式适用于范围,但不适用于表格。 Kindly help me out in it. 请帮助我。 Here is the query. 这是查询。

The formula is as follows: 计算公式如下:

=SUMIFS(Table2[Credit],Table2[Date],">="&'Summary Sheet'!$C$7,Table2[Date],"<"&'Summary Sheet'!$D$7,Table2[Account Head],[@[EXPENSE HEADS]])

where [Table2] is the table where data is located. 其中[Table2]是数据所在的表。 [Summary Sheet] is the sheet where the result is required. [摘要表]是需要结果的表。 [EXPENSE HEADS] is the table column in [Summary Sheet]. [EXPENSE HEADS]是[摘要表]中的表格列。

Kindly review and help me out. 请检查并帮助我。

Try specifically formatting all of your dates identically, preferably as integers, in your SUMIFS formula. 尝试在SUMIFS公式中专门对所有日期进行完全相同的格式化,最好将其格式化为整数。 Something like: 就像是:

VALUE(TEXT(Table2[Date], "0"))

and

VALUE(TEXT('Summary Sheet'!$C$7, "0"))

Or post some sample data for a better opportunity to help you. 或发布一些示例数据以获得更好的机会来帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM