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.
- Lead time: created → completed. How long a request waits plus how long the work takes.
- Cycle time: started → completed. Only the doing. Asana has no "started" timestamp, but if your team fills in Start dates, those work.
What you need: the project's tasks, including finished ones
- By hand: export the project as CSV from Asana (completed tasks included) and import it into a tab.
- Automatically: Rowsmith syncs the project, completed tasks included, into a tab named after the project and keeps it up to date. This guide needs only the current tasks, so the free plan is enough for one project; Pro refreshes it on a schedule.
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
- Asana keeps the latest completion time. A task that was completed, reopened and completed again counts from creation to the last completion.
- Tasks created long before anyone meant to work on them (a backlog) make lead time look long. That's real waiting time, but if it's not what you want to measure, use cycle time with Start dates, or look only at tasks created recently.
- Timestamps and TODAY() both follow the spreadsheet's time zone (File → Settings). Change it there and the next full refresh rewrites the times.
- Charts of what was open on each day need a history: see the burndown chart guide. Who has what open right now: the workload report. Points per sprint: the sprint velocity report.
- More ways to get Asana data into Sheets: Asana to Google Sheets.