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

REPT
NOTIF
23:59:52
0:03:04
0:45:580:48:30
0:59:431:06:14
0:59:430:00:00

<colgroup><col style="width:48pt" width="64" span="2"> </colgroup><tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,215,335
Messages
6,124,327
Members
449,155
Latest member
ravioli44

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