Yes, you can calculate Erlang C in Google Sheets, but there is no built-in function. You implement it with a custom formula that combines the Poisson arrival probability and the Erlang C waiting formula, typically using POISSON and a helper cell for the summation. Below is a complete, copy-pasteable setup that computes the probability a caller waits and the required staffing level for a given service target.
What Erlang C Actually Calculates
Erlang C is a queuing formula used in call centers to estimate how many agents are needed to answer calls within a target time, given call volume, average handling time, and desired service level. It assumes calls arrive randomly (Poisson distribution), agents handle one call at a time, and there is no abandonment. The core output is the probability that a caller must wait before being connected, often written as P(wait).
The formula itself is:
P(wait) = (A^N / (N! * (1 - U))) / ( Σ (A^k / k!) for k=0 to N-1 + A^N / (N! * (1 - U)) )
Where:
- A = offered traffic in Erlangs = (call rate per hour × average handling time in hours)
- N = number of agents
- U = agent utilization = A / N (must be less than 1)
This probability is then used with the service level formula to find the smallest N that meets a target, such as 80% of calls answered in 20 seconds.
Building the Erlang C Formula in Google Sheets
Because Google Sheets lacks a factorial function for large numbers (FACT works but can overflow), you use the POISSON function to compute the summation part. Here is a step-by-step layout:
- In A1: enter calls per hour (e.g., 100)
- In A2: enter average handling time in seconds (e.g., 180)
- In A3: enter target answer time in seconds (e.g., 20)
- In A4: enter number of agents (e.g., 12)
- In A5: calculate offered traffic:
=A1*(A2/3600)(result: 5 Erlangs) - In A6: calculate utilization:
=A5/A4(must be <1)
Now, to get the probability of waiting, use this formula in A7:
=IF(A6>=1, "Utilization must be <1", (POISSON(A5,A4,TRUE) - POISSON(A5,A4-1,TRUE)) / (POISSON(A5,A4,TRUE) - POISSON(A5,A4-1,TRUE) + (1-A6)*POISSON(A5,A4,TRUE)))
Wait—this is incorrect. The correct approach uses the fact that POISSON(A,N,FALSE) gives A^N * e^-A / N!. The summation from k=0 to N-1 is POISSON(A,N-1,TRUE) (cumulative up to N-1). The term for N is POISSON(A,N,FALSE). So the formula is:
=IF(A6>=1, "Utilization must be <1", (POISSON(A5,A4,FALSE)) / (POISSON(A5,A4-1,TRUE) + POISSON(A5,A4,FALSE)*(1/(1-A6))))
But note: POISSON(A5,A4-1,TRUE) requires A4-1 to be non-negative. For A4=0, it fails. So ensure N≥1.
For the example (A=5, N=12, U=0.4167), the formula returns approximately 0.0035, meaning a 0.35% chance of waiting. That seems low because 12 agents for 5 Erlangs is overstaffed. Try N=6: U=0.833, and the formula gives about 0.65, a 65% wait probability.
To get the service level (probability a call is answered within target seconds), use the Erlang C service level formula:
Service Level = 1 - P(wait) * EXP(-(N - A) * (target_time / AHT))
In A8, enter: =1 - A7 * EXP(-(A4 - A5) * (A3 / A2))
For N=6, A=5, target=20s, AHT=180s, this gives 1 - 0.65 * EXP(-(1)*(0.111)) ≈ 1 - 0.65*0.895 = 0.418, or 41.8% service level. To hit 80%, you need to increase N until A8 ≥ 0.8.
Finding the Required Number of Agents
To find the minimum N that meets a service target, you can use a helper column with candidate N values and a formula that returns the service level for each. Then use MATCH or INDEX to find the first N where service level ≥ target.
Assume you put candidate N values in B2:B20 (e.g., 1 to 19). In C2, enter this array formula (but Google Sheets handles it as a normal formula if you drag down):
=IF(B2=0, "", IF(B2<=A5, 0, 1 - ((POISSON(A5,B2,FALSE)/(POISSON(A5,B2-1,TRUE)+POISSON(A5,B2,FALSE)*(1/(1-A5/B2)))) * EXP(-(B2-A5)*(A3/A2)))))
Drag this down to C20. Then in D1, enter the target (e.g., 0.8). In E1, find the first N meeting it:
=INDEX(B2:B20, MATCH(TRUE, C2:C20>=D1, 0))
For the example, this returns 8 (since N=8 gives service level about 0.82). Note: this method assumes you have enough rows; adjust range as needed.
Common Pitfalls and Misconceptions
One frequent mistake is using POISSON with the cumulative flag incorrectly. The cumulative flag (TRUE) sums from 0 to the given value, which is exactly what you need for the summation part, but you must use FALSE for the single term at N. Another pitfall is forgetting that utilization must be less than 1; if A/N ≥ 1, the queue is unstable and the formula breaks—your spreadsheet should return an error or a clear message.
Another misconception is that Erlang C accounts for callers hanging up. It does not. If your call center has significant abandonment, you need Erlang A or a simulation. Also, Erlang C assumes calls arrive at a constant average rate; if you have peak hours, you must calculate separately for each half-hour or hour period.
Excel vs. Google Sheets Differences
Excel has a built-in POISSON.DIST function (with the same syntax as Google Sheets' POISSON), so the same formulas work in Excel with minor name changes. In Excel, you would use POISSON.DIST(x, mean, cumulative). Google Sheets also supports POISSON.DIST as an alias, but POISSON is the original. The main difference is that Excel has a FACT function that can handle larger numbers, but for typical call center sizes (N up to a few hundred), POISSON is more stable and avoids overflow.
For Mac users, the formulas are identical; the only difference is keyboard shortcuts, but none are needed here. Google Sheets works in any browser, so no installation is required.
When to Use Erlang C vs. Simpler Estimates
If you just need a rough staffing number, you can use the simple formula: Required agents = (calls per hour × AHT in hours) / (target occupancy). For example, with 100 calls/hour, AHT=3 minutes (0.05 hours), and target occupancy 85%, you get 100×0.05/0.85 ≈ 5.88, so 6 agents. But this ignores the service level target. Erlang C gives a more precise answer that accounts for the variability of arrivals.
Use Erlang C when you have a formal service level target (e.g., 80/20) and you need to justify staffing. For quick estimates or when call volume is very low (under 10 calls/hour), the simple formula is often sufficient.
Frequently Asked Questions
Can I use Google Sheets' built-in functions to avoid custom scripts?
Yes, the formulas above use only built-in functions like POISSON, EXP, and IF. No Google Apps Script is required. This makes it easy to audit and share.
What if my average handling time is in minutes, not seconds?
Convert everything to the same unit. If AHT is in minutes, use calls per minute. For example, if you have 100 calls per hour and AHT of 3 minutes, then calls per minute = 100/60 ≈ 1.667, and AHT in minutes = 3. Offered traffic = 1.667 × 3 = 5 Erlangs. The target time must also be in minutes (20 seconds = 0.333 minutes).
Why does my formula return #NUM! or a negative number?
This usually happens when utilization ≥ 1 (A/N ≥ 1). Check that your number of agents is greater than the offered traffic. Also, ensure N is a positive integer; if you use a decimal, the Poisson function may behave unexpectedly.
Is there a way to do this without a helper column?
Yes, you can use ARRAYFORMULA to compute service levels for a range of N values in one go, then use FILTER to find the minimum N. For example, with N values in B2:B20, you can write: =MIN(FILTER(B2:B20, ARRAYFORMULA(...) >= 0.8)), but it's often clearer to use a helper column for readability.
Does Erlang C work for chat or email queues?
Yes, the math applies to any system where arrivals are random and service times are exponential. For chat, you might have multiple chats per agent, which changes the formula—you'd need a multi-server queue model. For email, the arrival pattern is often not Poisson, so use with caution.
Can I automate finding the right N with a script?
Yes, you could write a Google Apps Script to loop through N values, but the spreadsheet formula approach is simpler and doesn't require permissions. If you do use a script, remember to save a copy of your spreadsheet before running it, as scripts cannot be undone with Ctrl+Z.
Final Tips for Accurate Staffing
Always validate your inputs: use real call data, not guesses, and recalculate for each time interval (e.g., every 30 minutes) because call volume varies. Also, remember that Erlang C assumes agents are fully occupied with calls; if they have after-call work, add that to the AHT. Finally, consider adding a safety margin of 5-10% for shrinkage (breaks, meetings, sick days) when scheduling actual shifts.
Related
- Flipkart Data Entry Jobs From Home: Real Facts
- How to Add Enter in Excel Cell (New Line)
- Control D in Google Sheets: What It Does
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Where to Make a Brochure in Microsoft Word: StepsTo make a brochure in Microsoft Word, open File > New and search for “brochure” to start with…
- Company Contact List Template for ExcelA company contact list template for Excel is a workbook organized so each row represents one person and…
- Stop Flash Fill in Excel: Turn Off Automatic FillingTo stop a Flash Fill that just happened, press Ctrl+Z in Excel for Windows. To prevent automatic Flash…
- How to Add Audio to a PowerPoint PresentationTo add audio in PowerPoint for Microsoft 365 on Windows, open the slide, choose Insert > Audio >…
- Inventory Usage Spreadsheet: Track Stock and ReordersAn inventory usage spreadsheet is an Excel workbook for recording stock received, stock used, and the quantity currently…
- SQL String Split: Is It Built In Across All Databases?No: SQL does not have one universal built-in string-splitting function that works across every database. Some database systems…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.