Fix Excel for Mac VBA Timer Results and Circular References
Question details
The user is experiencing incorrect VBA timer calculations, such as negative time differences and zero totals, particularly around minute boundaries.

- Product
- Excel for Mac
- Device & OS
- Mac
- Scenario
- Calculating time steps, cumulative seconds, and total time using VBA macros and spreadsheet formulas.
- Observed behavior
- Time calculations appear to lose time around minute boundaries, resulting in negative time differences or a zero total due to underlying formula errors or circular references.
Check the bottom status bar of your Excel window for a 'Circular Reference' warning, as this is the most common reason for timer calculation errors and zero totals.
Resolve Circular References in Time Calculation Columns
Identify and remove circular references that cause formula loops and result in zero totals or negative time calculations.
A circular reference occurs when a formula refers back to its own cell, either directly or indirectly. This halts the calculation chain, often resulting in a zero total and incorrect minute-boundary transitions.
Navigate to the Formulas tab on the Excel ribbon and click the arrow next to Error Checking.
Select Circular References from the drop-down menu. Excel will display the specific cell address causing the loop (e.g., an incorrect reference to 86400 in column F).
Click the cell identified by the tool and rewrite the formula to ensure it does not refer to itself. Press Enter to confirm.
Check your time-difference and cumulative seconds columns to ensure negative values are removed and accurate calculations resume.

Audit Formula Logic for Time Boundaries
Step through your formulas to verify conversion factors and ensure time correctly rolls over across minute boundaries.
Calculate Time and Run Macros Smoothly in WPS Spreadsheet
WPS Spreadsheet provides robust formula auditing tools to easily spot circular references and offers excellent support for advanced time calculations and macros.
- 1. Open your workbook: Launch WPS Spreadsheet and open your macro-enabled time-tracking workbook.
- 2. Find circular references: Navigate to the Formulas tab and click the Error Checking drop-down to locate any circular references in your calculation columns.
- 3. Correct and recalculate: Fix the self-referencing formula errors and allow the spreadsheet to automatically recalculate accurate timer results.

Frequently Asked Questions
Why does my Excel VBA timer show negative time differences?
Negative time differences often occur when a formula fails to correctly calculate the transition across a minute boundary, or when a circular reference disrupts the standard calculation logic of the spreadsheet.
How do I find a circular reference in Excel for Mac?
Go to the Formulas tab on the ribbon, click the drop-down arrow next to Error Checking, and select Circular References. This will display the exact cell addresses involved in the calculation loop.
Why is my SUM formula returning zero in my macro workbook?
A SUM formula typically returns zero if the referenced cells are formatted as text instead of numbers, or if there is a circular reference within the calculation chain that forces Excel to halt the calculation process entirely.




