How to SUM Data from non-regular rows

Copper Contributor

I am collecting data from source which omits categories with zero values. Therefore, number of rows will never be the same. Columns will always remain the same. I need to create an annual report based on monthly (or even daily) reports. The data will come like this (these are 3 separate reports combined already, one with XA-XD range, one without XB and one without XA, also some of them are with conditional value of Y or N):

  ABCDETotal
XAY000101
XBY010001
XCY020002

XD

N001102
XAY010203
XCY011204
XDN110204
XBN001203
XCN100001
XDN01000

1

 

In the end I need report that contains summary for all rows with for each condition (IE XA with Y and XA with N) and then the same but for each condition in columns A to E. 

It all must be done with functions as I am working with around 50 columns and endless number of rows. 

I appreciate all help such as ready function as well as ideas (including VBA). 

Thanks

1 Reply

@Andy_Przybysz 

In the attached file, the formula in C15 is: 

=SUMPRODUCT(C$2:C$11,
($A$2:$A$11=$A15)*
($B$2:$B$11=$B15))

Please confirm if the foregoing formula returns your desired results.