Calculating aging in Excel is achieved by subtracting the start date (such as an invoice date or a birth date) from the current date or a specific end date. The most common method is using the formula =TODAY()-A2, where A2 is the date you are tracking. This results in the total number of days elapsed between the two dates, allowing businesses to track overdue payments or managers to monitor project timelines.
What You'll Need
- Microsoft Excel (any version from 2010 onwards, including Excel for Web).
- A dataset containing dates formatted as "Date" cells.
- A clear understanding of your "aging buckets" (e.g., 0-30 days, 31-60 days, etc.) if you are creating an accounts receivable report.
Step-by-Step
- Prepare Your Data: Ensure your dates are in a single column. For example, put your invoice dates in Column A, starting at cell A2. Ensure these cells are formatted as dates by selecting the column, going to the Home tab, and selecting Date from the Number format dropdown menu.
- Create the Aging Column: In the cell next to your date (e.g., B2), enter the formula
=TODAY()-A2. TheTODAY()function is volatile, meaning it automatically updates to the current calendar date every time the workbook is opened or recalculated. - Format the Result as a Number: When you first press Enter, Excel may automatically format the result as a date (e.g., showing a date in the year 1900). This happens because Excel sees a date in the formula and assumes the result should also be a date. To fix this, select cell B2, go to the Home tab, and change the Number format dropdown from Date to General or Number. You will now see the total number of days.
- Apply the Formula to All Rows: Hover your mouse over the bottom-right corner of cell B2 until the cursor turns into a small black cross (the fill handle). Double-click the cross or click and drag it down to the bottom of your dataset to calculate aging for all entries.
- Categorize into Aging Buckets (Optional): If you need to group these days into categories (like "Current," "31-60 Days," and "90+ Days"), create a new column (Column C) and use a nested IF statement or the IFS function. For example:
=IFS(B2<=30, "0-30 Days", B2<=60, "31-60 Days", B2<=90, "61-90 Days", B2>90, "Over 90 Days"). - Apply Conditional Formatting for Visual Alerts: To make overdue items stand out, select the aging days column. Go to Home > Conditional Formatting > Highlight Cells Rules > Greater Than.... Enter 30 (or your preferred threshold) and select a red fill. This provides an immediate visual cue for items that require urgent attention.
- Summarize with a Pivot Table: To see the total value of aging items, select your entire data range and go to Insert > PivotTable. Drag your "Aging Bucket" field into the Rows area and your "Amount" or "Invoice Value" field into the Values area. This creates a professional aging summary report.
Common Mistakes
One of the most frequent errors is failing to check the cell formatting. Because Excel stores dates as sequential serial numbers (where January 1, 1900, is number 1), subtracting one date from another results in a number. If the cell is formatted as a date, the number 45 might appear as "January 45, 1900," which is confusing and incorrect. Always ensure the result cell is set to General or Number.
Another common mistake is using a static date instead of a dynamic function. If you manually type "10/25/2023" into your formula, your aging report will become obsolete the moment the calendar flips to the next day. Using =TODAY() ensures the report is always current without manual updates.
Users also often forget to handle empty cells. If a cell in the date column is blank, Excel treats it as 0 (which corresponds to the date 0-Jan-1900). This will result in a massive, nonsensical aging number (often over 45,000). To prevent this, use an IF statement to check for blanks: =IF(A2="", "", TODAY()-A2).
Tips
For those who need to calculate aging based on a specific "cutoff date" rather than today's date (which is common for month-end financial reporting), do not hardcode the date into every formula. Instead, type your cutoff date into a single cell (e.g., cell E1). Then, use an absolute reference in your formula: =$E$1-A2. The dollar signs lock the reference to cell E1, allowing you to change the cutoff date in one place and update the entire sheet instantly.
If you are calculating age for something that doesn't follow a standard day count—such as business days only—use the NETWORKDAYS function. The formula =NETWORKDAYS(A2, TODAY()) will exclude weekends and can even exclude a custom list of holidays if you provide a range of holiday dates as the third argument. This is essential for SLAs (Service Level Agreements) where weekends do not count toward the aging total.
To make your aging report more professional, consider using a "Slicer" with your Pivot Table. Once your Pivot Table is created, go to PivotTable Analyze > Insert Slicer and select your aging buckets. This allows you to filter the entire report with a single click, making it easy to present only the "Over 90 Days" accounts to management.
Troubleshooting
If your formula returns a #VALUE! error, it almost always means that the data in your date column is not actually stored as a date. This often happens when importing data from CSV files or other software where dates are stored as text. To fix this, select the column, go to the Data tab, select Text to Columns, click Next twice to get to Step 3, select Date (and choose the correct format, like MDY), and click Finish. This forces Excel to convert the text strings into real date values.
If the aging numbers are negative, it means the date in your cell is in the future. This is common in tracking expiration dates or project deadlines. If you want to see how many days are remaining until a date, simply reverse the formula: =A2-TODAY().
If your TODAY() function is not updating, check if your workbook is set to Manual Calculation. Go to the Formulas tab, click Calculation Options, and ensure Automatic is selected. If it is set to Manual, the aging will not update unless you press F9.
Frequently Asked Questions
How do I calculate age in years, months, and days?
Use the DATEDIF function. For years, use =DATEDIF(A2, TODAY(), "y"); for months, use =DATEDIF(A2, TODAY(), "m"); and for remaining days, use =DATEDIF(A2, TODAY(), "md").
Can I calculate aging for a date that hasn't happened yet?
Yes. If you are tracking a deadline, use =A2-TODAY(). A positive result indicates days remaining, while a negative result indicates how many days the item is overdue.
Why does my aging formula show a date like 01/15/1900?
This is a formatting issue. Excel is treating the result as a date. Change the cell format to General or Number via the Home tab to see the actual number of days.
Is there a way to exclude holidays from the aging count?
Yes, use the NETWORKDAYS function. Formula: =NETWORKDAYS(start_date, end_date, [holidays]). You can list your holidays in a separate range and reference that range in the third part of the formula.
How do I automatically highlight rows that are over 60 days old?
Use Conditional Formatting. Select your data range, go to Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =$B2>60 (assuming B is your aging column) and choose a fill color.