Skip to content

How to calculate days sales outstanding (DSO)

Excel & Google Sheets
=IF(B2<=0,"Not defined",A2/B2*C2)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Average accounts receivableNet credit salesDays in period
4500015000090

=IF(B2<=0,"Not defined",A2/B2*C2)27

Both expressions are checked against an independently calculated expected result in HyperFormula. This is a sample execution check, not native Excel or Google Sheets certification.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Use comparable receivables and net credit sales for the same entity, currency and reporting period.
  2. 2Put average accounts receivable in A2, net credit sales in B2 and the period's actual day count in C2.
  3. 3Divide 45000 by 150000 to obtain 0.3, then multiply by 90 to obtain 27 days.
  4. 4The formula reports Not defined when credit sales are zero or negative; it does not convert that invalid denominator into a misleading zero-day DSO.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Should cash sales be included?

This worked convention uses net credit sales because they create receivables. Keep the organization's reporting definition explicit and consistent.

Is zero DSO a safe fallback for zero sales?

No. The ratio has no defined value with a zero denominator; investigate or report it as unavailable.

Sources and compatibility

Reviewed 2026-09-16

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: