Average of minimum duplicate value.

Joined
Feb 16, 2016
Messages
21
Hello guys,
question regarding averages:

I am looking for a way to average the time in the columns with hours and that for each column. It may only select the lowest value of the lines with duplicates (since this time stamp is relevant).
Any ideas? Been trying with averageifs, min, ... but haven't found a decent solution yet.

Part of the file:


Thanks in advance,
Kind regards
Phil
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You didn't say that your data was in a pivot table. Can't you change the Report Layout to Tabular Form or Repeat All Item Labels?

Welcome to MrExcel, by the way.
 
Last edited:
Upvote 0
Hey Andrew,

I have tried repeating the labels but havent been able to figure out a formula that will average the last columns without taking the along the high values for the duplicates. The time stamps are trucks and each of em have their own line per parcel. The multi load trucks have 2 or more lines, but only the smallest time is relevant for that specific process step.

For instance, the first 2 lines:
Truck has 3.07 h pretime for the first parcel and 4.11 h for the 2nd. That is because the startpoint for the 2nd parcel is the endpoint of the last.

In the averages of the pivot table, all times are taken into account which makes the result wrong.

Hope this clarifies it abit.

And thanks for the welcome, heard about this site on the excel is fun channel on youtube where i am a longtime customer :)

Grts,
Phil
 
Upvote 0
Please post a small but representative sample of your data. Don't post an image as I want to be able to copy the data and paste it into Excel.
 
Upvote 0
First you need to repeat the labels in columns A:C. Then you could put this array formula in a spare column:

=IF(H12=MIN(IF(A$12:A$79=A12,IF(B$12:B$79=B12,IF(C$12:C$79=C12,H$12:H$79)))),H12,"")

confirmed with Ctrl+Shift+Enter. Finally average the column containing those formulas.
 
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