lee009

New Member
Joined
Nov 4, 2014
Messages
13
Hello,

I need help with a formula. Below is a very small sample size of data I have. Typically, I have thousands of Incident numbers (column A) with hundreds to each Shift-Station(column D). I need to get the median time (column E) for each Shift-Station. Is there an easy formula to type that will give me the median based on when the Shift-Station cells change? My method right now takes way too long; I sort the report based on the Shift-Station (column D); scroll all the way thru the document until the Shift Station changes (example, from 1a to 2b), insert a row and then type use formula

=median(e2:to whatever cell the Shift-Station changes).


ABCDE
Incident NoShiftStationShift-StationTime
1a11a
5:14
2a11a5:55
3a22a6:33
4b22b4:45
5b33b6:11
6b33b5:34
7c4c45:12
8c5c57:45

<tbody>
</tbody>
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi

Data >> Subtotals

At Each: Shift-Station

Use Function: Average

Add subtotal to: Time

Click ok

Now do find/replace (ctrl+H)

Find: SUBTOTAL(1,
Replace: AGGREGATE(12,6,

You can also search and replace Average for Median.

HTH
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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