Hi, there.
I need a function that will tell me the average wait and the median wait in a column of about 600 pieces of data. the data is in the format of years months and days (i.e., 1 years, 0 months, 4 days).
The data is excel created. i got it by comparing two strings of dates (start date and end date) using the following function (not sure if that matters, but thought i'd include the info):
=YEAR(E2)-YEAR(D2)-IF(OR(MONTH(E2)<MONTH(D2),AND(MONTH(E2)=MONTH(D2), DAY(E2)<DAY(D2))),1,0)&" years, "&MONTH(E2)-MONTH(D2)+IF(AND(MONTH(E2) <=MONTH(D2),DAY(E2)<DAY(D2)),11,IF(AND(MONTH(E2)<MONTH(D2),DAY(E2) >=DAY(D2)),12,IF(AND(MONTH(E2)>MONTH(D2),DAY(E2)<DAY(D2)),-1)))&" months, "&E2-DATE(YEAR(E2),MONTH(E2)-IF(DAY(E2)<DAY(D2),1,0),DAY(D2))&" days"
I was wondering whether I have to now convert it into days to figure out the average wait?
Any help would be much appreciated.
Bookmarks