Average / Time Difference on 2 Columns

bwcampbell

New Member
Joined
May 11, 2018
Messages
3
I am in need of advice / assistance

I have a table with 2 Columns showing times . I am trying to show in one cell the average difference of those two columns

I could create another column to show the difference for each row, and then average just that column .. but I would like to not have to add another column if possible.

The example looks like such, I would appreciate any assistance that can be offered


<colgroup><col style="width:48pt" width="64" span="2"> </colgroup><tbody>
[TD="class: xl66, width: 64"]REPT
[/TD]
[TD="class: xl66, width: 64"]NOTIF[/TD]

[TD="class: xl67"]23:59:52
[/TD]
[TD="class: xl67"]0:03:04[/TD]

[TD="class: xl65"]0:45:58[/TD]
[TD="class: xl65"]0:48:30[/TD]

[TD="class: xl67"]0:59:43[/TD]
[TD="class: xl67"]1:06:14[/TD]

[TD="class: xl65"]0:59:43[/TD]
[TD="class: xl65"]0:00:00[/TD]

</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I have a feeling there may be something better but this should work provided you have no empty cells:

=AVERAGE(IF(A2:A5>B2:B5,B2:B5-A2:A5+1,B2:B5-A2:A5))

Enter CTRL-SHIFT-ENTER
 
Upvote 0
It could be written like this. Bit shorter

=AVERAGE(B2:B5-A2:A5+(A2:A5>B2:B5))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top