Average Formula Time Based Calculation

mianmazher

Active Member
Joined
Jan 24, 2004
Messages
412
Book2
ABCD
1TimeConsumption
2Start10:0045
315:2546.2
420:2547
540:00:0048
650:10:0046
7End60:00:0045.25
8
9Average46.464525
Sheet1


In Column B I have the time values in the text format which represent minutes and seconds

in Column A I have to write the start and the Stop as shown

If start and stop are in the position as shown above then the average should be 46.464525

If the start is entered in A3 and End in A7 then the Average should be

46.664525

in the same way if the end is shifted up or down the average changes automatically


Hope that u people understand what I trying to say


Waiting for someone to help


Regards

Mian Mazher
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
mianmazher said:
...Problem solved as I desired...

That sounds great.

Here is another attempt after you specified how the average must be computed...
WeightedAvg 2.xls
ABCDEF
1Case2Start3End5
2Actual TimeConsumptionConverted TimeTarget TimeDiffsAvg
310:004510.0020.4247.18756229
415:2546.215.4219.58
5Start20:254720.4210.17
640:004840.00 
7End50:104650.17 
860:0045.2560.00 
9
Sheet1


Formulas...

C1:

=MATCH(B1,$A$3:$A$8,0)

E1:

=MATCH(D1,$A$3:$A$8,0)

E3:

=IF(ROW()-ROW($E$3)+1<=$E$1-$C$1+1,INDEX($D$3:$D$8,ROW()-ROW($E$3)+$C$1),"")

E4, which must be copied all the way down:

=IF(ROW()-ROW($E$3)+1<=$E$1-$C$1+1,INDEX($D$3:$D$8,ROW()-ROW($E$3)+$C$1)-INDEX($D$3:$D$8,ROW()-ROW($E$3)+$C$1-1),"")

F3:

=SUMPRODUCT(E3:INDEX(E3:E8,COUNT(E3:E8)),INDEX(C3:C8,C1):INDEX(C3:C8,E1))/VLOOKUP(D1,A3:D8,4,0)
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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