[英]Sum the value in one column based on the value in another column - excel 2013
I have 3 Columns, B,C and D. 我有3列,B,C和D。
Columns B,C,D will be updated periodically and the number of rows will be increased day by day. B,C,D列将定期更新,并且行数将每天增加。
Columns B contains NAME, C contains Quantity and D has Date value. 列B包含名称,列C包含数量,列D具有日期值。
Name Qt Date
SSS 20
SSS 30
NNN 50
PPP 40 13-Jul-15
PPP 20 13-Jul-15
AAA 20
CCC 100
GGG 300
FFF 200
BBB 50 28-Aug-15
AAA 20
GGG 100
BBB 30
JJJ 50
BBB 30
FFF 50
FFF 25 24-Aug-15
CCC 75
JJJ 30
FFF 50
JJJ 36 24-Aug-15
FFF 50 24-Aug-15
I need the result as below. 我需要如下结果。
Name Qt
AAA 40
BBB 30
CCC 175
FFF 300
GGG 400
JJJ 80
NNN 50
SSS 50
Rows with date field(column D) having a value should be omitted from adding. 日期字段(D列)具有值的行应从添加中省略。
Name field can contain any name and future names can vary from current names. 名称字段可以包含任何名称,将来的名称可以与当前名称不同。
The Result can be in the same sheet or in the different sheet. 结果可以在同一张纸中,也可以在另一张纸中。
This may not meet your exact needs but it should get you the data you want in the first instance. 这可能无法满足您的确切需求,但应该可以在一开始就获得所需的数据。
Date (All)
use helper cells next to the date range =isblank(d2) this will return TRUE in E2 在日期范围= isblank(d2)旁边使用辅助单元格,这将在E2中返回TRUE
put AAA in G6, in H6 put the following formula =SUMIFS(C:C,E:E,"TRUE",B:B,G6) 在G6中放置AAA,在H6中放置以下公式= SUMIFS(C:C,E:E,“ TRUE”,B:B,G6)
if there is trash data in the blank cells like random spaces and whatnot use =isblank(trim(d2)) 如果空白单元格中有垃圾数据,例如随机空间,则不使用= isblank(trim(d2))
i loooove pivot tables but sometimes they just make file sizes too big if using a bunch of them in a single workbook, i also get tired of refreshing them. 我松动数据透视表,但如果在单个工作簿中使用一堆表,有时它们会使文件大小太大,我也厌倦了刷新它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.