ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Comparing data in mult rows then summing unique values (https://www.excelbanter.com/excel-discussion-misc-queries/224479-comparing-data-mult-rows-then-summing-unique-values.html)

Cathy Landry

Comparing data in mult rows then summing unique values
 
Hello,

We currently have a mileage form with roughly 150 rows that we need to sum
total miles by unique loc/dept/modality.....

Example:


Loc Dept Modality Miles
611 960 600 10
611 940 600 10
611 960 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Desired Results:

Loc Dept Modality Miles
611 960 600 20
611 940 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Thank you in advance for any assistance :)
Cathy




Alan

Comparing data in mult rows then summing unique values
 
With the data in columns A2:D150,
=SUMPRODUCT(--($A$2:$A$150=A2),--($B$2:$B$150=B2),--($C$2:$C$150=C2),--($D$2:$D$150))
Regards,
Alan.
"Cathy Landry" wrote in message
...
Hello,

We currently have a mileage form with roughly 150 rows that we need to sum
total miles by unique loc/dept/modality.....

Example:


Loc Dept Modality Miles
611 960 600 10
611 940 600 10
611 960 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Desired Results:

Loc Dept Modality Miles
611 960 600 20
611 940 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Thank you in advance for any assistance :)
Cathy





Cathy Landry

Comparing data in mult rows then summing unique values
 
Hi Alan,

That works!! Thank you :)

"Alan" wrote:

With the data in columns A2:D150,
=SUMPRODUCT(--($A$2:$A$150=A2),--($B$2:$B$150=B2),--($C$2:$C$150=C2),--($D$2:$D$150))
Regards,
Alan.
"Cathy Landry" wrote in message
...
Hello,

We currently have a mileage form with roughly 150 rows that we need to sum
total miles by unique loc/dept/modality.....

Example:


Loc Dept Modality Miles
611 960 600 10
611 940 600 10
611 960 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Desired Results:

Loc Dept Modality Miles
611 960 600 20
611 940 600 10
611 950 300 10
760 940 300 10
653 940 380 10

Thank you in advance for any assistance :)
Cathy







All times are GMT +1. The time now is 12:06 AM.

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