Calculating ageing in Excel determines how long items—like invoices, inventory, or tasks—have been outstanding or in a particular state. This is commonly used in accounts receivable to track overdue payments or in inventory management to identify slow-moving stock. The process relies on comparing a reference date (e.g., today’s date or a specific cutoff) with a start date, using Excel’s date functions to compute elapsed days, weeks, or months. No add-ins or external tools are required—just Excel’s built-in functions and proper date formatting.

What You'll Need

  • Excel installed (any recent version: Microsoft 365, Excel 2021, Excel 2019, or Excel Online)
  • A dataset with at least two columns: one for the start date (e.g., invoice date, entry date) and one for the reference date (e.g., due date, current date)
  • Basic familiarity with entering formulas and formatting cells
  • Ensure all dates are stored as true Excel dates (not text), or the calculations will return errors

Step-by-Step

  1. Open your Excel workbook and verify your data. In column A, list the start dates (e.g., invoice dates); in column B, enter the reference date (e.g., today’s date for each row, or leave blank to use a single static reference later). Ensure column A is formatted as Date: select the column > Home tab > Number group > choose "Date" from the dropdown.
  2. Enter today’s date in a dedicated cell for consistency. For example, place =TODAY() in cell D1. This ensures ageing updates automatically each day. Alternatively, if you’re analysing data as of a fixed past date (e.g., month-end), manually enter that date (e.g., 45261 for 31 Dec 2023, or type 12/31/2023 and let Excel convert it).
  3. In column C (next to your data), calculate the raw number of days elapsed. In cell C2, enter: =B2-A2 (if B2 holds the reference date) or =$D$1-A2 (if D1 holds today’s date and you want fixed ageing). Drag the fill handle down to apply the formula to all rows. This gives the total days since the start date.
  4. Convert raw days into standard ageing buckets. Create column headers for buckets (e.g., D1: 0–30 Days, E1: 31–60 Days, F1: 61–90 Days, G1: 90+ Days). In cell D2, enter: =IF(AND(C2>=0,C2<=30),C2,""). Copy this across and down for each bucket, adjusting the condition: E2 uses =IF(AND(C2>=31,C2<=60),C2,""), F2 uses =IF(AND(C2>=61,C2<=90),C2,""), and G2 uses =IF(C2>=91,C2,""). This populates only the relevant bucket with the day count.
  5. Alternatively, use the IFS function (Excel 2019+) for a single ageing category per row. In cell D2, enter: =IFS(C2<=30,"0–30",C2<=60,"31–60",C2<=90,"61–90",C2>90,"90+",TRUE,"Invalid"). Drag down. This assigns a text label to each row’s ageing category.
  6. To total values by bucket (e.g., total overdue invoice amounts), add a column E with the invoice amount. Then use SUMIF or SUMIFS. For example, to sum invoices aged 0–30 days: =SUMIF(D$2:D$100,"0–30",E$2:E$100). Adjust the range and criteria as needed.

Common Mistakes

  • Entering dates as text (e.g., typing Jan-23 without formatting). Excel may interpret this as text, causing #VALUE! errors. Always check with =ISNUMBER(A2)—it should return TRUE.
  • Using subtraction without verifying date order. If the reference date is earlier than the start date (e.g., a typo), you’ll get negative days. Wrap subtraction in ABS() or use =MAX(0,B2-A2) to avoid negatives if appropriate.
  • Ignoring time components. Excel stores dates as serial numbers with decimals for time. An invoice dated 12/31 at 11:59 PM and today at 12:00 AM shows as 1 day older than expected. Use =INT(B2)-INT(A2) to truncate time, or =DATEDIF(A2,B2,"d") for full days.
  • Hard-coding dates in formulas (e.g., =TODAY()-A2 with 12/31/2023 typed in). If you forget to update it later, your ageing becomes stale. Use a reference cell (e.g., $D$1) instead.
  • Overlooking leap years or month-end irregularities when calculating months. For approximate month ageing, =DATEDIF(A2,B2,"m") works, but it counts completed months only (e.g., 31 Jan to 1 Feb = 0 months).

Tips

  • Use conditional formatting to highlight ageing visually: select your ageing column > Home > Conditional Formatting > Highlight Cell Rules > Greater Than > enter 90 > choose red fill. Repeat for other thresholds (e.g., 60 = yellow).
  • For accounts receivable, combine ageing with payment status. Add a column with =IF(C2<=0,"Paid","Overdue") or link to a payment date column.
  • Group rows by ageing category using Excel’s Filter or PivotTables. Select your data > Insert > PivotTable > drag Amount to Values, Ageing Category to Rows, and sort ascending.
  • Use named ranges for your date columns (e.g., name A2:A100 as InvoiceDate) to make formulas more readable: =TODAY()-InvoiceDate.
  • When ageing inventory, pair with quantity. Use =IF(C2>180,C2*0.5,"") to flag items older than 180 days for discounting or write-down.
  • Lock references with $ for static dates: =$D$1-A2 ensures dragging down keeps D1 fixed.

Troubleshooting

  • #VALUE! error: Check if any date cell contains non-date text. Press Ctrl+F to find errors, or use =ISNUMBER(A2) to spot invalid entries. Fix by re-entering dates or using Data > Text to Columns.
  • All ages show 0 or negative: Verify reference date is later than start date. Swap columns or use =MAX(0,B2-A2) to force non-negative results.
  • Formulas return #NAME?: You likely typed a function name incorrectly (e.g., ISDATE instead of ISNUMBER). Re-type the formula or use Formula > Insert Function.
  • Ageing doesn’t update daily: If you used a static date, replace it with =TODAY() in a reference cell. Also, ensure Excel’s calculation is set to Automatic: File > Options > Formulas > check "Enable iterative calculation" is OFF, and "Calculation options" = Automatic.
  • PivotTable ageing buckets out of order: Excel sorts text alphabetically (e.g., "0–30" after "90+"). To fix, add a helper column with numeric codes (e.g., 1 for 0–30, 2 for 31–60) and sort by that column in the PivotTable.
  • Leap year issues in month calculations: Use =DATEDIF(A2,B2,"yd") for day-of-year differences, or stick with INT((B2-A2)/30) for approximate months (30-day month assumption).

Frequently Asked Questions

Can Excel calculate ageing in months instead of days?

Yes. Use =DATEDIF(start_date,reference_date,"m") for completed months, or =INT((reference_date-start_date)/30) for approximate 30-day months. For more precision, combine YEAR and MONTH: =(YEAR(reference_date)-YEAR(start_date))*12 + MONTH(reference_date)-MONTH(start_date).

How do I ageing inventory by days on hand?

First, calculate days since entry: =TODAY()-EntryDate. Then, divide total quantity by average daily usage to get days on hand: =Quantity / (TotalUsage / DaysInPeriod). Ageing here is the time elapsed since stock was received.

Why do my ageing buckets miscount certain dates?

Check boundary conditions. For example, if a date is exactly 30 days old, does it fall into "0–30" or "31–60"? Adjust your criteria (e.g., C2<=30 vs C2<30) or use =IFS(C2<31,"0–30",C2<61,"31–60",...) to avoid gaps.

Can I ageing by business days only (excluding weekends)?

Yes. Use =NETWORKDAYS(start_date,reference_date)-1 to count working days (Monday–Friday), excluding weekends. Add holidays with a third argument: =NETWORKDAYS(A2,$D$1,holidays_range).

How do I prevent #NUM! errors in DATEDIF?

DATEDIF returns #NUM! if the start date is after the end date. Wrap it: =IF(A2>B2,"Invalid",DATEDIF(A2,B2,"d")) or use =MAX(0,DATEDIF(B2,A2,"d")) if you want absolute value.

Is ageing the same as days sales outstanding (DSO)?

No. Ageing lists overdue amounts by time buckets. DSO calculates average collection period: DSO = (Accounts Receivable / Total Credit Sales) * DaysInPeriod. Ageing supports DSO but isn’t identical.