Good morning, I need to find the Median from a list that has been generated from a Business Objects crosstab (its 'equivalent' of a pivot table). Also, this is only test data so it's not great. Basically there is a month Column, "C" that corresponds to dates in Row 1, a location Column, "A" that corresponds to Column "H" and a length of stay Column, "B"; so there will/may be several entries for each month and location for different lengths of stay.
At present I use this to get the SUM:
Looking at the above formula the second array shows me {1;1;0;0;0;0;....}, which is where the location in Column "A" matches the location in Column "H" ("CCU") - but I'm not sure if that's of any real help!
Any thoughts?
Many thanks,
D€$
Ward Spell LoS Month Discharge
CCU 1 01/07/2015
CCU 3 01/07/2015
G1 5 01/08/2015
G4 1 01/07/2015
G4 4 01/08/2015
G5 1 01/07/2015
G5 1 01/08/2015
G5 4 01/08/2015
G5 5 01/08/2015
G8 1 01/07/2015
G9 14 01/08/2015
G9 15 01/08/2015
G9 28 01/08/2015
At present I use this to get the SUM:
=SUMPRODUCT(--($C$2:$C$24=$I$1),--($A$2:$A$24=$H2),($B$2:$B$24))
Looking at the above formula the second array shows me {1;1;0;0;0;0;....}, which is where the location in Column "A" matches the location in Column "H" ("CCU") - but I'm not sure if that's of any real help!
Any thoughts?
Many thanks,
D€$