How to Sum Changing Daily Ranges in Excel Using OFFSET
Question details
The user needs a method to dynamically sum blocks of 1,440 rows representing minute-by-minute daily data across a 60-day dataset.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Aggregating a continuous column of minute-by-minute energy readings (approximately 84,400 rows) into distinct daily totals without manually adjusting the sum ranges.
- Observed behavior
- A dynamic formula is required to calculate totals for changing 1,440-row ranges continuously as the formula is copied down a column.
Ensure your minute-by-minute data is sorted chronologically in a continuous column with no blank rows or missing intervals to maintain calculation accuracy.
Use the SUM and OFFSET Functions to Total Data Blocks
By combining the SUM and OFFSET functions, you can create a dynamic formula that automatically shifts its calculation range by 1,440 rows for each subsequent cell.
The OFFSET function returns a reference to a range that is a specified number of rows and columns from a starting cell. By pairing it with the ROW function, we can force Excel to shift the summed range down by exactly 1,440 rows each time the formula is copied to a new row.
Identify the column containing your minute-by-minute readings (e.g., Column A, starting at A1). Select a cell in a new, empty column where you want the first day's total to appear.
Type the formula =SUM(OFFSET($A$1:$A$1440,1440*(ROW()-1),0,1440,1)) into your chosen result cell. This formula uses absolute references ($A$1:$A$1440) for the initial block and offsets it based on the current row number.
Click the fill handle in the bottom-right corner of the result cell and drag it downward for 60 rows to automatically calculate the daily totals for the entire 60-day dataset.

Easily Handle Large Data Sets and Complex Formulas with WPS Spreadsheet
WPS Spreadsheet is a powerful, lightweight data analysis tool that fully supports advanced functions like SUM and OFFSET, allowing you to process large datasets of over 80,000 rows effortlessly.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your .xlsx or .csv file containing the continuous daily energy readings.
- 2. Apply the dynamic formula: Select the target cell for your first total and input the exact =SUM(OFFSET(...)) formula used in Excel.
- 3. Autofill to complete calculations: Double-click the fill handle on the cell's corner to instantly populate the daily totals for your entire 60-day dataset.

Frequently Asked Questions
Why does my OFFSET formula return a #REF! error?
A #REF! error occurs if the OFFSET function attempts to reference rows or columns outside the physical boundaries of the spreadsheet. Ensure your multiplier (e.g., 1440) and starting row don't push the reference beyond Excel's maximum row limit (1,048,576).
Can I adapt this formula for hourly data instead of minute-by-minute?
Yes. For hourly data (24 readings per day), simply change the '1440' values in the formula to '24' so it shifts and sums blocks of 24 rows at a time.
Does the ROW() function adjust automatically if I insert rows above my data?
The ROW() function evaluates the physical row number where the formula is placed. If you insert rows above, the value of ROW() changes, which may shift your offset incorrectly. Use a fixed counter or absolute cell reference if you plan to move the formula block.
Is there a VBA alternative to summing daily ranges?
Yes. You can write a VBA macro using a For loop that steps through your data range in increments of 1,440. The loop can apply WorksheetFunction.Sum to each specific block and print the results sequentially into a new column.




