Calculation Issues

How to Calculate Increases and Decreases in Excel Data Sequences

Chanuka GeekiyanageChanuka Geekiyanage Nov 10, 2026 869 views

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.

How to Calculate Increases and Decreases in Excel Data Sequences
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula for decreases

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.

2
Enter the formula for increases

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.

3
Calculate the aggregate total

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 Comma-Separated Sequence Differences Using Dynamic Arrays
Understanding the Functions: TEXTSPLIT separates the string into workable numbers. HSTACK and DROP shift the array by one position so that adjacent numbers can be mathematically subtracted in memory using the LET function.

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. 1. Open WPS Spreadsheet: Launch WPS Office and open a new or existing spreadsheet containing your data feed sequences.
  2. 2. Input the Dynamic Formula: Select the target cell and paste the provided LET and TEXTSPLIT formula directly into the formula bar.
  3. 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.
100% compatible with advanced Microsoft Excel formulasNative support for dynamic array functions (LET, TEXTSPLIT, HSTACK)Free, lightweight, and fast processing for large datasetsFamiliar user interface requiring zero learning curve
microsoft office alternative - wps office

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.