How to Calculate Increases and Decreases in Excel Data Sequences
Question details
The user needs a method to calculate cumulative increases and decreases across data sequences that are stored as comma-separated lists or dynamically updating columns.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing incoming data feeds where positive and negative variations between adjacent numbers must be separated and totaled automatically.
- Observed behavior
- Requires a formula-based approach to extract values, compare adjacent elements, and sum the respective positive (increases) and negative (decreases) movements.
Ensure your version of Excel or spreadsheet software supports dynamic array functions, as extracting comma-separated values relies on advanced formulas like LET and TEXTSPLIT.
Calculate Comma-Separated Sequence Differences Using Dynamic Arrays
Use a combination of LET, TEXTSPLIT, and DROP functions to evaluate comma-separated lists in a single cell and sum the negative or positive changes.
This approach is highly effective for data feeds that dump an entire sequence of numbers into a single cell separated by commas. By dynamically splitting the text, offsetting the array, and finding the difference, you can easily isolate the increases and decreases without manual text-to-columns processing.
Select the cell where you want to display the total decreases (e.g., D1). Type the formula: =LET(items,TEXTSPLIT(A1,","),itemsNext,HSTACK(DROP(items,,1),0),delta,DROP(itemsNext-items,,-1),-SUM(IF(delta<0,delta,0))) and press Enter.
Select an adjacent cell (e.g., E1) to display the total increases. Type the formula: =LET(items,TEXTSPLIT(A2,","),itemsNext,HSTACK(DROP(items,,1),0),delta,DROP(itemsNext-items,,-1),SUM(IF(delta>0,delta,0))) and press Enter.
To find the net movement, select a third cell (e.g., C1) and enter the simple sum formula: =SUM(D1:E1) to combine the results of both helper columns.

Calculate Cumulative Changes in Standard Column Data
If your data sequences are arranged sequentially in rows down a column rather than grouped in a single cell, use SUMIF or COUNTIF to track changes.
Seamlessly Analyze Data Sequences with WPS Spreadsheet
WPS Spreadsheet fully supports advanced dynamic array formulas natively, allowing you to execute complex calculations like LET and TEXTSPLIT smoothly. Track the increases and decreases of your live data feeds efficiently in a user-friendly interface.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new or existing spreadsheet containing your data feed sequences.
- 2. Input the Dynamic Formula: Select the target cell and paste the provided LET and TEXTSPLIT formula directly into the formula bar.
- 3. Apply Across Rows: Press Enter to calculate the sequence. Click and drag the fill handle down to apply the calculation to the rest of your updating data feed.

Frequently Asked Questions
Why does the TEXTSPLIT formula return a #NAME? error?
This error occurs if your spreadsheet software version does not support newer dynamic array functions like TEXTSPLIT or LET. Ensure you are using an up-to-date version of WPS Office or Microsoft 365.
How do I calculate differences without using comma-separated values?
If your numbers are in individual adjacent cells across a row instead of lumped into a single cell, you can simply subtract the adjacent cells (e.g., =B1-A1) in a helper row. You can then use the SUMIF function on that helper row to sum only the values greater than zero for increases, or less than zero for decreases.
Will these formulas update automatically with live data feeds?
Yes. As long as your real-time data feed overrides or writes to the cell referenced by the formula (such as A1), the dynamic array formulas will instantly recalculate to show the latest cumulative increases and decreases.




