English 中文(简体)
• 满足条件时的厕所
原标题:Cumulative SUMIFS function which resets when a condition is met

我需要计算所有档案(G栏)的运行总量,如果这些档案属于允许的清单上(AD、AM或AO),但每个新运营商的计算也重新编号。 请注意,身份和运营商已受到审查,实际上没有这样做。 Column H是计算G中应出现的内容的人工方法(细胞颜色,我刚刚添加,以直观区分计数)。

希望将受到高度赞赏。

Excel Screenshot:

“entergraph

我尝试了多种不同的<代码>SUMIFS(>)公式改动,准确地计算了允许身份的档案数量,但我无法确定如何在每一经营者之后重新计算这些数额。

问题回答

细微复杂的公式。 Try-

=LET(
tmp,SCAN("",B2:B20,LAMBDA(a,x,IF(OR(x="",x="total"),a,x))),
MAP(D2:D20,C2:C20,tmp,
LAMBDA(d,c,b,
SUM(FILTER(D2:d,ISNUMBER(XMATCH(C2:c,{"AD","AM","AO"}))*(TAKE(tmp,ROW(d)-ROW(D1))=b))))))

“entergraph





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签