Rowsmith

Asana cycle time and lead time in Google Sheets

How long tasks take from created (or started) to done, per task, per week and per person.

"How long does a typical task take us?" is a better planning question than "how many tasks are open?", and Asana stores what you need to answer it: when each task was created and when it was completed. In a spreadsheet you can turn those two timestamps into a number of days and summarise them any way you like.

What you need: the project's tasks, including finished ones

The formulas assume Rowsmith's column layout: Task (B), Assignee (D), Status (E, Open or Done), Start (G, a date), Completed (H) and Created (I), both a date and time in the spreadsheet's time zone (File → Settings). Replace Tasks with your tab's name (in single quotes if it has spaces, as in 'Website launch'!B2:B).

Step 1: days per finished task

Add a tab called Cycle time. In A1:

={"Task", "Assignee", "Completed", "Lead time (days)";
  FILTER({Tasks!B2:B, Tasks!D2:D, Tasks!H2:H, ROUND(Tasks!H2:H - Tasks!I2:I, 1)},
    Tasks!E2:E = "Done", Tasks!H2:H <> "")}

One row per completed task, with the number of days between created and completed (1.5 = a day and a half). It grows as tasks are finished.

For cycle time instead, use the Start column and keep only tasks that have one:

={"Task", "Assignee", "Completed", "Cycle time (days)";
  FILTER({Tasks!B2:B, Tasks!D2:D, Tasks!H2:H, ROUND(INT(Tasks!H2:H) - Tasks!G2:G + 1, 0)},
    Tasks!E2:E = "Done", Tasks!H2:H <> "", Tasks!G2:G <> "")}

Start is a date without a time, so this counts calendar days, with a task started and finished on the same day counting as 1.

Step 2: the typical task

In F1 Median and G1 85th percentile, then:

F2: =MEDIAN(D2:D)
G2: =PERCENTILE(D2:D, 0.85)

Use the median rather than the average: one task that sat for six months drags an average up, but barely moves the median. The 85th percentile is a fair answer to "when will it be done?": 85 out of 100 tasks finished within that many days.

To look only at recent work, for example the last 90 days:

=MEDIAN(FILTER(D2:D, C2:C >= TODAY() - 90))

Step 3: per week, to see the trend

Add the Monday of each task's completion week in E1 Week and E2:

=ARRAYFORMULA(IF(C2:C = "", , INT(C2:C) - WEEKDAY(C2:C, 3)))

Format column E as a date (Format → Number → Date). Then in I1:

=QUERY(C:E, "select E, count(D), avg(D) where E is not null
  group by E order by E label E 'Week', count(D) 'Finished', avg(D) 'Avg days'", 1)

Finished per week is your throughput. Select the result and choose Insert → Chart, then a combo chart with Finished as columns and Avg days as a line. QUERY can't do medians; for a median per week, list the weeks in M2 with =SORT(UNIQUE(FILTER(E2:E, E2:E <> ""))) and in N2, filled down, use =MEDIAN(FILTER($D$2:$D, $E$2:$E = M2)).

Variations

Per person:

=QUERY(A:D, "select B, count(D), avg(D) where D is not null
  group by B order by avg(D) desc label count(D) 'Finished', avg(D) 'Avg days'", 1)

Read it with care: people who take the long, gnarly tasks will look slow. It's a prompt for a conversation, not a ranking.

Per type of work: if the project has a custom field such as Type or Priority, Rowsmith adds it as a column after Notes (O); the first custom field is column P. Add Tasks!P2:P to the list in step 1 and group by it in the QUERY.

Only top-level tasks: subtasks are rows too and are usually quick, which pulls the numbers down. Add Tasks!L2:L = "" (L is Parent task) as another condition in the FILTER.

Things to know