Find average positive numbers and negative numbers of duration time(X)?

PhilipeC

Board Regular
Joined
May 1, 2018
Messages
56
Duration time is:


F4:F20 IS ENTRY TIME FROM I4:I20
D4:D20 IS EXIT TIME FROM I4:I20
DURATION TIME(X) IS F4:F20 - D4:D20


Such as if D4= 11:00 AND F4= 12:00 than (EXIT TIME)F4- (ENTRY TIME)D4 = 12:00 - 11:00 = 1:00 , Duration time is 1:00


I want to find the AVERAGE duration time of positive numbers I4:I20 and another formula to find the average duration time of negative numbers I4:I20?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try:
These are array formulas that must be entered with CTRL-SHIFT-ENTER.

Positive
Code:
AVERAGE((IF(F4:F20-D4:D20>0,F4:F20-D4:D20)))

Negative
Code:
AVERAGE((IF(F4:F20-D4:D20<0,F4:F20-D4:D20)))
 
Upvote 0
Hi , What about I4:I20?

I4:I20 all the positive numbers, i want the average duration time(x) which is calculated F4:F20 - D4:D20? So first the formula must determine the positive numbers from I4:I20 than calculate the average duration time(x)F4:F20 - D4:D20 from these columns?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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