简体   繁体   中英

Is it possible to sum values in column C into column D, ONLY when all adjacent values in columns A and B are the same?

I want to generate one autosum value for column C, for every instance where there is an equal number of rows in both column A and B, where the value in A does not change and the value of B does not change within that row.

Ie column A contains cost centre numbers, and column B contains supplier numbers. In column C are the values for each payment to a supplier. I want a sum of all the payments to one supplier and one cost centre, to appear in column D.

One possible layout achievable with a PivotTable ( Sum of Payments being in ColumnD):

SO20896543例子

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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