Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default 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



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default 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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing rows based on other column values jonny Excel Worksheet Functions 7 January 28th 09 11:45 PM
Summing values, x rows deep, depending on a criterion klm[_2_] Excel Worksheet Functions 2 August 18th 08 02:02 PM
Summing unique values Bill_S Excel Worksheet Functions 2 September 22nd 06 11:28 PM
Summing Unique data values SydnTex Excel Worksheet Functions 7 July 21st 06 02:58 PM
Transpose unique values in one column/mult. rows into a single row Wil Excel Worksheet Functions 1 May 22nd 05 08:52 AM


All times are GMT +1. The time now is 02:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"