How to Increment Row Numbers Inside an Excel Formula String
Question details
The user needs a way to parse a text string containing cell references, preserve absolute reference markers, and automatically increment the row numbers.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Modifying text strings that contain cell references so the row numbers within those text strings increase dynamically when filled down.
- Observed behavior
- The goal is to successfully extract row numbers from text strings, mathematically increment them, and reconstruct the string while preserving the original column and dollar-sign ($) structure.
Ensure your spreadsheet application supports dynamic array functions such as TEXTSPLIT, TEXTAFTER, and TEXTJOIN, which are required for this advanced string manipulation.
Use TEXTJOIN and TEXTSPLIT to Increment Row Numbers
Combine dynamic array functions to split the reference string, isolate the row numbers, add to them mathematically, and rebuild the text string.
This method is ideal for spreadsheet versions that support modern text functions. It parses the string by common separators, finds the absolute reference marker ($), increments the numeric portion, and stitches it all back together.
Click on the cell where you want the incremented string to appear (for example, cell A5).
Enter the following formula: =TEXTJOIN({":", ".", ","},,LEFT(TEXTSPLIT(A4,{":", ".", ","}),SEARCH("$",TEXTSPLIT(A4,{":", ".", ","})))&TEXTAFTER(TEXTSPLIT(A4,{":", ".", ","}),"$")+1)
Press Enter to execute the formula. Click the fill handle in the bottom right corner of the cell and drag it down to apply the incrementing logic to subsequent rows.

Handle Advanced Array Formulas Seamlessly with WPS Spreadsheet
WPS Spreadsheet offers robust support for complex data manipulation and array formulas. You can efficiently manage text strings, extract references, and perform advanced calculations using WPS Office's powerful built-in function library.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the .xlsx file containing the text strings you want to modify.
- 2. Enter your formula: Select the destination cell and input your string manipulation formula, leveraging WPS's built-in formula auto-complete.
- 3. Drag to increment: Use the drag-fill handle at the bottom-right of the cell to copy the formula down, automatically updating the row calculations.

Frequently Asked Questions
Why does my formula return a #NAME? error?
A #NAME? error usually occurs if your spreadsheet software does not support modern array functions like TEXTSPLIT or TEXTAFTER. Check if you need to update your software version or use alternative legacy functions like MID, FIND, and LEFT.
How can I increment numbers in a string without absolute references?
If the string lacks dollar signs ($), you can modify the SEARCH function to look for letters or specific formatting separators instead, or use a combination of string manipulation functions to isolate the numeric part.
Can I increment columns instead of rows using this method?
Yes. You would need to adjust the formula to isolate the alphabetical column identifiers instead of the numeric row values, and use the CHAR and CODE functions to mathematically increment the letters.
Does this formula work for multiple ranges in the same string?
Yes, because TEXTSPLIT parses the string using multiple delimiters like colons (:) and commas (,), it can separate multiple cell references within the string, increment their row numbers individually, and rejoin them perfectly with TEXTJOIN.




