Reputation: 1979
I want to implement some code in excel macro to group some data for me and then calculate the sum of grouped column. please look at below data.
I want to check instead of writing macro is there any way to implement it via excel formula? I mean via excel formula I group them and calculate the total time in another column?
Fix.No Duration Expected result
111 00:00:55 Fix.No Total Duration
111 00:59:15 111 01:02:25
123 00:10:55 123 00:10:55
111 00:01:15 265 00:00:45
265 00:00:45 214 01:00:05
214 01:00:05
Upvotes: 0
Views: 8915
Reputation: 43
To get data similar to how SQL gives the output can be done in excel using the following steps
Upvotes: 1
Reputation: 10950
If you're willing to manually (or via macro) enter the first column values (each distinct value as you have it there), then you can just use the SUMIF function to calculate the totals.
Upvotes: 0