ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Auto sum 2 adjacent row data into 3rd row? (https://www.excelbanter.com/excel-discussion-misc-queries/248681-auto-sum-2-adjacent-row-data-into-3rd-row.html)

Tacrier

Auto sum 2 adjacent row data into 3rd row?
 
I have a list of people's names in column C and cost data for each person in
column M and N.

Is there was to provide a subtotal of all cost data for each person in
Column O?

i.e.:

row 1 Smith, John 100.00 440.00
row 2 Smith, John 300.00
row 3 Smith, John 40.00
row 4 Bird, Joe 50.00 500.00
row 5 Bird, Joe 450.00


Thank you in advance! :)

Sean Timmons

Auto sum 2 adjacent row data into 3rd row?
 
in C2, =IF(C1=C2,"",sumif(C:C,C2,M:M)+sumif(C:C,C2,N:N))

"Tacrier" wrote:

I have a list of people's names in column C and cost data for each person in
column M and N.

Is there was to provide a subtotal of all cost data for each person in
Column O?

i.e.:

row 1 Smith, John 100.00 440.00
row 2 Smith, John 300.00
row 3 Smith, John 40.00
row 4 Bird, Joe 50.00 500.00
row 5 Bird, Joe 450.00


Thank you in advance! :)



All times are GMT +1. The time now is 08:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com